[–] jay_kyburz 3y ago ↗ I really like using the singular for an instance, capitalized singular for the class, and plural for lists of things. card = Card(); cards = {card}Every now and then there is no plural so you just have to add and s on the end anyhow. sheep = Sheep(); sheeps; Or you can get creative. flock? herd? [–] boxed 3y ago ↗ Yea, the pluralization rules of English are not perfect for programming unfortunately. Even when it works with the `s` at the end, it can be too small a difference visually, making it easy to miss.
[–] boxed 3y ago ↗ Yea, the pluralization rules of English are not perfect for programming unfortunately. Even when it works with the `s` at the end, it can be too small a difference visually, making it easy to miss.
2 comments
[ 3.0 ms ] story [ 17.7 ms ] threadEvery now and then there is no plural so you just have to add and s on the end anyhow. sheep = Sheep(); sheeps; Or you can get creative. flock? herd?