News for hackers. Stuff that matters.
Re:Ask HN: How much do you use uppercase vs. lowercase chara... by Jtsummers on Thursday September 15, 2022 @03:35PM (#32857395)
Whatever the language community and the team I'm in do. Anything that goes strongly against the grain is you choosing to be hard to work with. Especially when there's already a convention in place. A variable like this in C would communicate that the value is meant to be a constant (maybe is a constant via a macro definition):

  int CONTACT_ID = 10; // weird if it's meant to be reassigned later
  // elsewhere
  int x = CONTACT_ID;
If I saw this after the initial definition:

  CONTACT_ID = 20;
I'd be very confused as to why they chose to shout the name when that, by convention, marks it as a constant but are now assigning to it.

Choose to communicate poorly at your own peril. Naming conventions (including these typographical elements like capitalization and case style) are how you communicate with other people.

Re:Ask HN: How much do you use uppercase vs. lowercase chara... by theGeatZhopa on Thursday September 15, 2022 @03:22PM (#32857242)
There's something what's called a naming convention. ALL CAPS are usually constant

All other use of CAPS is dependent on the language and it's naming convention.

One does not simply write like preferred.

Why you ask?

Re:Ask HN: How much do you use uppercase vs. lowercase chara... by retrac on Thursday September 15, 2022 @03:51PM (#32857607)
C is a bit of a free-for-all with case, but some languages have well-established conventions for this. E.g. type names are almost always CamelCase in Haskell, and the compiler requires the first letter be a capital. If there's a convention already, I mostly just try to follow it.
Re:Ask HN: How much do you use uppercase vs. lowercase chara... by JAA1337 on Thursday September 15, 2022 @03:19PM (#32857187)
I would respectfully ask for someone to show me EXCLUSIVE UPPERCASE code which was not assembler, fortran 77, nor cobol.
Re:Ask HN: How much do you use uppercase vs. lowercase chara... by marssaxman on Thursday September 15, 2022 @03:42PM (#32857503)
Your list omits BASIC, much of which looked like this:

https://github.com/coding-horror/basic-computer-games/blob/m...

Re:Ask HN: How much do you use uppercase vs. lowercase chara... by simonblack on Thursday September 15, 2022 @08:46PM (#32860532)
Up until about the 80s, lowercase capability was a very expensive optional-extra in I/O computer equipment.

So any language/program/data-entry used in the 30 years before about that era will be (almost) exclusively UPPER-CASE.

Re:Ask HN: How much do you use uppercase vs. lowercase chara... by adamrezich on Thursday September 15, 2022 @03:22PM (#32857236)
I EXCLUSIVE UPPERCASE SQL, not really sure why, just find it more readable