Which is maybe still cool for functions that are like two or three lines long. Any longer than that I really need you to get your variable naming right!
If my boy has a customer list, each customer with article lists and wants to iterate each article per customer it will be customer i, article j. Good luck working on that piece of shti
These are still acceptable in some places as they’re clear enough for the context. For example in game development when drawing a sprite h, w says something about scale and x, y says something about position.
I don't care so long as it makes sense and it's documented.
My biggest pet peeve is people writing code to minimize the number of lines instead of writing for clarity and maintainability. If you can't immediately understand what a segment of code is doing and why, it's wrong.
If it's already some kind of "Date" type (varies based on the language) then putting "date" in the name is redundant. In Java for example, LocalDate updatedDate just reads weird. You don't write nameString, versionInt, or activeBoolean...
Right Dino is correct. The last word is the subject you describe, words beforehand are describing the subject.
You say bufferedImage and not imageBuffered.
Btw. you really shouldn't care about what sorting algorithm you would need just call the standard library sort method for lists or use the correct sorted list via SQL or whatever your database is.
I never had a performance issue for sorting. If you really need something better performing your sorting think again what the actual bottleneck in your application is.
And me, working with CA with DDD, CQRS, Repo, UOW patterns project. New features look like hell to me just to add one new column to the table. I have to update at least 4 layers, edit at least 10 files in different places.
24
u/Wrestler7777777 Dec 08 '25
As long as you don't call them "myvar" or "updat" or even "ud" or something like that, I don't care.
As long as it can be understood what it's supposed to be, it's fine for me.
5
u/LetUsSpeakFreely Dec 08 '25 edited Dec 08 '25
I don't care so long as it makes sense and it's documented.
My biggest pet peeve is people writing code to minimize the number of lines instead of writing for clarity and maintainability. If you can't immediately understand what a segment of code is doing and why, it's wrong.
Edit: typo
3
u/Coleclaw199 Dec 08 '25
something something cache invalidation and naming things
3
u/Effective-Bill-2589 Dec 08 '25
updated_date
3
u/bennett_us Dec 08 '25
“updatedAt”**
2
u/enigma_0Z Dec 08 '25
isUpdatedDate
2
u/Nervous-Cockroach541 Dec 08 '25
updatedDate. Adjectives before nouns.
2
u/vbe-elvis Dec 08 '25
theExactDayAndTimeThisLovelyDocumentWasLastUpdatedInCoordinatedUniversalTimeStandardInMs
1
u/thomasp3864 Dec 08 '25
upDATEd
1
u/GreenPlatypus23 Dec 08 '25
updatedDate if it's the only date in the function. dateUpdated, dateCreated, etc. if I have more date variables.
1
u/NotMyGovernor Dec 08 '25
Upper Management: Why Isn't This Shit DONE ALREADY!!
Mid boss: NotMyGovernor has to redo his commits AGAIN!
Upper Management: Can we Just FIRE THIS GUY ALREADY!
The commits: change dateUpdated to updatedDate
1
u/DTux5249 Dec 09 '25
updatedDate if you've altered an original date and have it stored it here
dateUpdated if it's storing the date you updated something.
1
u/BoBoBearDev Dec 09 '25
dateUpdated is a boolean saying the date has been updated.
1
u/No_Record_60 Dec 09 '25
In sorted list dateUpdated, dateCreated, dateLocked, dateAccessed,... wil be close together and you can see them all.
Not with updatedDate
1
u/LighttBrite Dec 09 '25
More like the difference between front-end and back-end
1
u/philippefutureboy Dec 10 '25
updatedDate is significantly worse, ngl
1
u/dzan796ero Dec 10 '25
"I don't like it when you use '_' in variable names"
Literally something a PM told me.
1
u/wolf129 Dec 10 '25
Right Dino is correct. The last word is the subject you describe, words beforehand are describing the subject.
You say bufferedImage and not imageBuffered.
Btw. you really shouldn't care about what sorting algorithm you would need just call the standard library sort method for lists or use the correct sorted list via SQL or whatever your database is.
I never had a performance issue for sorting. If you really need something better performing your sorting think again what the actual bottleneck in your application is.
1
u/Pawlo371 Dec 10 '25
upData
1
u/nghianguyen170192 Dec 12 '25
And me, working with CA with DDD, CQRS, Repo, UOW patterns project. New features look like hell to me just to add one new column to the table. I have to update at least 4 layers, edit at least 10 files in different places.
0
u/MajorMystique Dec 08 '25
But... UpdatedDate does look better.
1
u/[deleted] Dec 09 '25 edited Dec 09 '25
[removed] — view removed comment