Any fool can write code that a computer can understand. Good programmers write code that humans can understand.
A.properly.defined.object.should.be.a.complete.sentence.so.it.is.easy.for.humans.to.read
return x
sorry, not capitalized, therefore not a sentence
return sex
Too late. Long gone for you.
None
NullPointerException
Error: sex has not been initialized before return
Return ret;
Remove the dots and you have the minimum required java class name
With the dots, it's the minimum required java namespace.
Remove dots everywhere and you have the average redditor that doesn't use interpunction
function calculateStatisticsForHrOnSundaysWithExtraIndentationForGertrude(A.properly.defined.object.should.be.a.complete.sentence.so.it.is.easy.for.humans.to.read x) {
if (false !== not !(isUntrue(x))) {
// TBD
}
return false;
}
This is horrible. I love it
js unit test frameworks be like
missing a period
literate programming
i'm a pro-grammar programmer
Oldtimers as me remembers ”Clean Code” by Robert C. Martin.
ForSaleBabyShoesNeverWorn.cs
What do complete sentences end with?
now do it again with Hungarian notation
Az.pröpely.défíned.öbject.sud.bi.az.kumplét.szénténcé.szö.it.iz.ézé.för.húmánsz.tü.ríd
Azure PowerShell PTSD intensifies.
These dots are composition btw, not accessors
I got you:
class FieldString {
constructor(str) {
return new Proxy(this, {
get(target, prop) {
if (typeof prop !== "string") return target[prop];
if (prop === "toString") return () => `${str}.`;
return new FieldString(str ? str + " " + prop : prop);
},
});
}
}
var { A } = new FieldString();
console.log(`${A.properly.defined.object.should.be.a.complete.sentence.so.it.is.easy.for.humans.to.read}`);
// A properly defined object should be a complete sentence so it is easy for humans to read.
A complete sentence is a subject and a predicate. Objects should cover the subject only. The predicate is covered by functions.
If IsACompleteSentence(aProperlyDefinedObject) {
easyForHumansToRead = true;
}
Or
easyForHumansToRead = isACompleteSentence(aProperlyDefinedObject);
My friend at uni once said looking at my code "why tf are you programming in sentences? Like that's just so fancy and unnecessary like what?"
Admittedly she knew she wasn't particularly great at the course, that being said, this is why I'm not really proud of having my degree now when this is how people graduate...
And vibe coders are writing comments that computers understand so the computer can write code the vibe coders don't understand.
vibe coders
It's gotta be difficult to write good code with a battery-operated dildo up your ass!
If they didn't want me to put it in my arse why did they call it a joy stick?
Computers are deterministic stupid, brains are randomly idiotic. I'd rather deal with something I certainly know is dumb and work around it rather than something that thinks it's smart.
So no, my code comments are probably gonna be unhinged schizoid rants about having to implement workarounds for some Microsoft bullshit...
TODO: describe rare conditions that cause invalid return
Deterministic, not simple.....
Just give AI a few cycles at enshittification.
Yesterday I spent 4 hours trying to decipher how to interpret a variable, k3, in terms of what I knew approximately its intended output format should’ve been
The coding bad habit I can't shake is making variable names slightly less readable so they'll be the same length as similar variable names and make key parts of consecutive lines of code that use them in similar ways vertically align. Could I accomplish the same thing with superfluous whitespace? Yes. Is it a stupid thing to worry about in the first place? Also yes. And yet here we are, with me still using [obj_0, obj_1] instead of [raw_object, transformed_object] or whatever.
Adjust all you variables along the widest one
raw_________object
transformed_object
thanks, i hate it
a variable, k3
Found the problem!
Maybe with all the help that IDEs are giving us, but try that without any help (pure text editor or paper), and I bet your statement would not be correct for 100% of people :D (excluding those who are not fools).
this manual was written by someone being paid per word
They wanted to get paid less?
But nobody is capable of writing code they can understand themselves
After 6 months, I can understand my code just enough to know that it was written by an idiot.
Jokes on you, I know it's written by an idiot the moment the characters appear on my screen
We have no rules regarding comments. I always add some, when:
Not a criticism, but you can put a space after dash “-“ to make a bullet list.
Or put double space at end of line then newline to create new line within paragraph
We're doing comment reviews now? This shit's gone too far
You have forgotten to put a full-stop at the end.
Other than that: approved.
[nitpick] imho this should have been a nitpick
+1
[nitpick] You forgot capitalization and a period.
Other than that, 🚀.
Lgtm
Just fucking send it
I was gonna do that but didn't notice I fucked it up
Champ comment-reviewed you and you applied the changes, that must be a good sign about your work style :)
Atleast they arent having a meeting about it.
We should discuss that in the next retrospective.
Comment migrated for integration testing.
Testing failed, please advise.
I use them for self affirming messages when I know future me is going to have to dig through this shit later
I'm pretty sure I accidentally once published code in a scientific paper that had at least one comment like
# this is bad. don't do what I did here
# it works tho, so I'm not changing it
In high school I remember submitting an assignment where I yelled at 3 functions the entire night before they became 12 functions with even less clear purposes. I was so tired the next day I forgot to delete the comment at the top that said "don't go in there, here be dragons"
a = 4; // this sets the variable a to 4, you are loved and worthy of love
print(a); // this prints the value of a (should be 4), you are good and getting better each day
I definitely prefer to comment any logic checks. Specifically for why the logic check is needed. Because those usually are edge/special cases. "Make sure x>0" is always a stupid comment, why must it be!?
Yeah. A recent one I wrote is "Check if the contract is not locked and unprocessed". The module crashes if these conditions aren't true.
Yeah, I comment out the logic explanations like that too so I know why I did that 6 months later when I have to edit the code next because I do it so infrequently at my job
Yeah, my goal (not always what I do, but my goal) is to leave comments in places where someone with familiarity with the language can't simply read the code and understand how/why it's doing what it's doing in less than like 30-60 seconds. If it's gonna take more than that long to figure a given line, extra explanation can help.
But if the purpose and function of a code is evident based on a quick read of the code itself and possibly the function(s) it's calling, it's not really something that needs to be explicitly written out because the code is right there and it's just as quick to read as a comment.
Also situations where blood has been spilled and time was spent determining that doing things another seemingly obvious way isn't appropriate for various reasons. Those kinds of warnings to future devs about what doesn't work have merit too at times.
To quickly navigate to certain areas (so you can Control+F the comment - we have some long-ass files)
Oh my god, you poor soul.
gonna play devil's advocate here: How can you prove your comments are correct?
Tests confirm that your code is correct, but there is nothing that ensures that a comment is correct or not misleading.
None of these comments make logical claims:
Leaving behind a history of bugs that a piece of code had, or the edge cases that were considered, can be quite useful to understand its design.
Comments designed as navigaton aides for people doing a text search are just for convenience. Files, Classes and functions should only have one name after all, but sometimes people may not know or have forgotten the naming scheme chosen, so giving them a brief description with typical search tags like synonyms can be sueful.
Code review should confirm that.
Let's be realistic.
Your flair is something else.
How are you going to prove you tested the right thing?
Who watches the watchers?
Yeah, essentially when I’m doing something unorthodox but for a reason or what I did isn’t clear by the code because the API interface of the object I’m using isn’t clear (ie a dependency’s object interface).
I have to do stuff one would not expect (eg. special constraints need to be met for function X)
IMO, this is where comments shine the most. For example, if you have a loop with a start index of 1 - you need to make it clear that it isn't a mistake. A comment is the easiest way to explain why you did it.
To quickly navigate to certain areas (so you can Control+F the comment - we have some long-ass files)
I do similar in my discord link sharing/docs server I keep lol. I'll put in simple phrases that I think I'll remember later so I can search for content again.
Thank to these comments, I definitely do understand that part of the fast inverse square root implementation in Quake III Arena, yes.
i = * ( long * ) &y;
// evil floating point bit level hacking
i = 0x5f3759df - ( i >> 1 );
// what the fuck?
The full version of that function includes a constant float threehalfs = 1.5f
, which makes me wonder why they didn't give a name to this constant.
Probably because they didn't even know what to call it.
It was also a (potentially) reused variable, and this was in an old system with less aggressive optimisation in the compiler, so chances are there was some random performance gain if you declared it as a constant rather than in-line it twice.
I find it likely the dev who wrote it didn't know how it worked either, probably found it somewhere. Bit difficult to name variables when you don't know what they are for.
const float evil_magic_float = 0x5f3759df;
i = evil_magic_float - ( i >> 1);
Another comment successfully murdered 🫡
According to Wikipedia:
William Kahan and K.C. Ng at Berkeley wrote an unpublished paper in May 1986 describing how to calculate the square root using bit-fiddling techniques followed by Newton iterations. In the late 1980s, Cleve Moler at Ardent Computer learned about this technique and passed it along to his coworker Greg Walsh. Greg Walsh devised the now-famous constant and fast inverse square root algorithm. Gary Tarolli was consulting for Kubota, the company funding Ardent at the time, and likely brought the algorithm to 3dfx Interactive circa 1994.
...
Quake III Arena, a first-person shooter video game, was released in 1999 by id Software and used the algorithm. Brian Hook may have brought the algorithm from 3dfx to id Software.
here are mine...
python
delay = 0
delays = {
# Alien came before Aliens...
1 : 0.0050,
2 : 0.0025,
3 : 0.0001
}
and
python
if not txt:
return [] # that's an empty list... I don't know why I said that... I mean wrote...
Ive found that comments are only useful when:
Honestly the best way to write code is usually, try to dumb it down as much as possible, and to always consider how it would feel to work with the code for an outsider. Comments always deprecate, and the only real solution is to keep the codebase as simple and readable as possible. For example, "If i name this list "placeholder22", and i randomly use indexation to access the list across various classes, what would it be like for someone else to work with the code?"
Read somewhere recently that even a solo project is a group project with past, present, and future you. Don't let your past self pass tech debt to your present and future selves. The outsider perspective comment is very nice.
Yeah nothing like coming back to your old code 3 years later and going wtf. I absolutely try to consider myself as a later outsider when writing code.
Highly disagree. I've had to rely on my comments when I'm the sole maintainer of my code, where there was no bug, and where it's a stand alone script or query.
Any time you have to modify code you have to go relearn it, comments help you get on the right path again.
Also any time I have to do advance logic to get the result I need, I'm not going to remember that shit, just write it down.
Yea, that's what I don't quite understand about "self-documenting code". Is following abstract logic written for a machine really easier than reading a quick summary of what code does?
Right? I'd much rather have someone's chain of thought as they're writing like "Now I need to call this other piece of code to do X" and "Now the data is aligned to match the formatting of this other data so we can finally join it with any issues" than to deal with actually deep reading the code and wonder why the fuck this guy uses three letter variables, or he's using what seems like a very clear term but in a specific jargon which is different than how it's normally used ever so slightly.
Fuck me, I don't even remember my chain of thought when looking at code I wrote 6 months ago. Comments help me regain that chain of thought super fast. So now my updates/edits/etc can be much more efficiently performed.
And I can pass that off to other team members who definitely have no clue what my train of thought was at the time I was writing the code.
Is following abstract logic written for a machine really easier than reading a quick summary of what code does?
Sometimes, yeah.
Because I've absolutely come across situations where the comments about what the code should do didn't match what the code actually does, either due to the code being edited but not the comment or because the person writing the comment misunderstood a nuanced aspect of the code.
Code never lies, it'll always be the ultimate truth of what's actually running (even if it's not quite what you thought it was, but that's human error rather than the code lying to you like comments can).
And if the code is clean and logical, it can often be just as quick to read a line or two of code as it is to read a sentence or two of comments to explain it.
I mean, that's fair, but just do both, then? If my device doesn't work, I might open it to see if it's broken, and I'll appreciate it if it's designed well to make that process easy. But I'm still going to read the manual first.
2 can apply even without code spaghetti. Sometimes you have to do something weird and you don't want to come back to it later, "fix" it, and create the same problem you already fixed before.
Sometimes is being very optimistic.
I use documentation to say what the parameters mean.
Yeah, I just love "param person The person handled in this method". Who would have expected this from a person parameter of the class Person?
And you keep that religiously updated (and so does everyone else) every time there's a change? Right?
Yup. Because I firmly believe in doing future me a favor. Even if I'm not the person who has to touch that piece of code in 5 years - if the junior member of the team can't update the code without my assistance, then I'm still the person updating the code and it's taking away from other, bigger projects, I need to be working on.
All these people in the comments "My code should be easy enough for anyone to read it cold". Maybe for you it's easy to read cold - You know what you were building. I sure as fuck don't. And the Jr members of your team have no fucking clue.
Stop being lazy and write comments.
I completely agree, i was more meaning that i found it better and more reliable to comment than rely on external docs being current.
If you don't you are a bad programmer.
I write it like
// Gets the number of extensions supported by the graphics card. output - the names of the extensions.
int vkGetExtensions(const char** output);
Commenting code... Another age-old topic of disagreement. Here's my reasons for documenting things. Disclosure, I was a developer for 27 years. I started with Perl/CGI making 'dynamic' websites and weba pps back in 1996. In that time I worked with a myriad of language, platforms, tools and IDEs, etc. etc.
Anything non-trivial, anything that is expected to have a lifetime, have others working on it or with it should be documented. APIs, tools, applications, runbooks, build processes, test suites, etc. If it's important to something or someone, document.
Documentation is as much a component of any system as anything else, including the source code. If the code is maintained, so is the documentation. When you change a vehicle's oil do you just drain the oil and refill or do the filter too? Basically, don't half-ass the job
Do you use an IDE? Do you like how it tells you a method or function parameters and some detail about it? Hovering over a class or interface and seeing information? Where do you think that comes from? Sure you could jump to the source and read the whole function but is that really efficient when a concise definition could be available?
Do you leave vague, short commit comments because it's too much work to properly document your changes? Because, hey, someone can just pull up the diffs and go through it right?
Everyone lives in the age of build/test/deployment automation (back in the day we had to write our own), but that all still requires documentation. Your company's process is different from another's. And the tools and platforms themselves, be it Azure, AWS, etc. certainly is documented by someone so you can learn to use it.
The simple fact is, documentation at all levels is not only important, it is integral to the process, maintenance, and operations of a given system. You, as a professional, are obligated to keep that information current and valuable/useful. It should be a given that documentation is written well, clearly, and meaningful. Otherwise, it IS wasted time and effort in both the authors and readers.
The places I've worked that have been the best and most enjoyable were the ones where people cared about quality and professionalism. You didn't have to go find 'that guy' who had 1/2 the institutional knowledge in his head or struggle through some poorly written or maintained wiki last updated in 2013. Guess which places were miserable? Hint, they often had 'self-documenting' code written by people who poo-poo comments that was brittle, logic-dense (think single methods with lots of interesting paths and possibilities based on various inputs) and exemplary of many bad patterns and structure.
Thanks for reading my newsletter. Stay tuned for part 17, Night of the Living Deadlocks.
I generally hate docgen comments. They're supposed to be there to generate documentation, but they just add another layer of complexity that makes code hard to parse, and generate documents no one reads. Of course they do have a use case if your writing a library for multiple vendors to uae, but generally docgen style comments annoy me.
Hey, thanks for the reply. I get your take on those. Documentation is as much an art form as writing code is. It takes experience and the ethic to do it well. And there are many places it's actually not necessary or at least not imperative.
I may be skewed in my adherence to documentation having grown up before information was widely and easily available. You had books when you could find one on the subject or just lore from those before you. In my last years before semi-retiring to work wood and other fun jobs, I worked on very large systems compromised of hundreds of services, thousands of components and millions of lines of code going back decades. Documentation was divine when present and archaeology to pure torture when not.
Thanks for reading my newsletter.
I would like to subscribe to this newsletter. It seems interesting and well thought out.
I started with Perl/CGI making 'dynamic' websites and weba pps back in 1996.
Shot in the dark here, collegeandprowebwear?
If you don't get it, nevermind :)
Believe it or not, I worked for a small consultancy that made porn sites. Whatever the new tech of the day was/is the porn people are among the first there. These guys were also early into Real Audio and Video. Remember that?
My next job after that was looking tricky for references and prior experience. Luckily I had an inside friend and just had to prove competence. Would have been awkward explaining that I made a strip poker game on a site called The Pleasure Dealer.
Real Audio and Video. Remember that?
Wow, blast from the past!
From one Perl guy to another: Cool story - glad stuff worked out for you!
Am I the only one using comments mostly to be able to search it more easily in the future lol
Arent your function/file names explictit enought?
Nah my file names are too tame to be explicit
But the guy asked about it being "explictit", too shy about the tits too?
unfortunately not at a glance and from the name, self taught, write some automation once or twice a year guidelines are being followed lol
def functionToRunWhenThingsGetMessy (x: Any):
My code was hard to write, it should be hard to read!
I've looked at code and been like "Who wrote this?! I have no idea what any of this is even doing." only to discover it was me like 2 years ago at 2 in the morning.
// Close the file.
file.Close();
Every LLM ever
One of the best tips I ever heard was:
Don't write comments to explain your code. Write code to justify your comments.
In other words, when you write a function, you start by writing comments describing the steps you're going to take, in a way that a human could understand. Then, you write code in-between the comments.
For example, to implement quicksort, start with:
// Check if we're done recursing
// Take a pivot item
// Move everything smaller than the pivot to the left
// Recursively sort the left half
// Recursively sort the right half
And then you insert code in between the comments that does those steps.
This makes it much easier for others to review your code for accuracy; they can first double check "does the algorithm make sense" by just reading the comments, and then they can check the block-by-block implementation to make sure you don't have any off-by-one bugs or similar.
This also plays very nicely with LLMs; instead of vibe-coding the entire function and having no idea what it's doing, you've forced the bot to abide by your logical constraints and made it easier for yourself to verify it didn't hallucinate.
Code tells you what.
If your comments also tell you what, that's kind of redundant.
I've seen so many juniors go through a phase of being told to comment their code, only to go out of their way to document the behaviour of a for-loop before someone gives them a better explanation.
Do NOT look at epic's unreal engine documentation, it's actually just that pic
If everything was as intuitive as that pic, that would be great. You wouldn't even need the documentation to use it.
That's what you get for mandatory comments where not really required. Like the classic bullsh*t Javadoc for getters and setters.
People at my current employer seem to take great pride in having never written a comment, even though half the code bases are 20+ years old and have never gone through tech debt remediation because the stakeholders constantly demand so much work that the IP sprint is literally just another sprint full of normal work.
Some decent commenting of the balls of yarn we're dealing with would make it so new people could feasibly get up to speed in days instead of weeks. But nooooo, the only comments in the code are copyright headers and boilerplate, auto-generated javadoc with that's literally nothing but
/**
*
* @param parameterOne
* @param parameterTwo
* @param parameterThree
* @return returnValue
*/
We used to call those codebases Jenga Towers. Just keep piling up the levels of blocks, removing/moving bits here and there hoping it never collapses**.
In most cases, catastrophic implosions are rare, but you absolutely get degrading performance, increasing surface area of security risks, bugs, and the number one issue, harder and harder, more and more expensive to maintain. If only time was spent on really good design in the beginning when it was exponentially cheaper.
Explain the intent and edge cases in comments.
I had a professor who taught that one the hard way in an assembler class.
People learned to comment well FAST.
did he explain how to comment well too or is this the uni classic of "do what i tell you to do, not what i show you"
Comments should give easily parseable examples of plausible data that the code might transform, and how they change at different points in the program. > 50% of the time that is the only explanation needed.
I need to know what the phone symbol means.
When your localization budget is $0
This is how LLMs comment their code.
Yall haven’t read Code Complete and it shows. Your code should be named clearly enough where you don’t need comments in majority of cases. Descriptive variable names and functions!
Comments also describe things that clean code can't describe at that point. Things like "this event only actually fires when the FuckingShit service restarts". Things that took 10 hours to find out because nobody knows where that event comes from anymore because the guy who wrote the FuckingShit service and jumped to your team to implement the interop dropshipped it in and left town years ago.
That's a good example of where a comment is useful, it's great as a meta-commentary about the environment the code is working on rather than a description of the code itself.
In theory, sure.
In practice, this is sometimes impossible or impractical, and there are still many situations where adding comments to the code is a more efficient and effective way of clarifying things.
Especially since one programmer's 'descriptive' names might not be as descriptive or as unambiguous as they think, causing confusion later. Or sometimes a function's purpose is so generic that it's hard to give it a descriptive name that isn't also incredibly generic. Or sometimes the codebase is just so large and complex that you run into issues of having several different things with similar descriptive names, making it then difficult to figure out which one of them should be used in which situation.
Are you supposed to be using "validateUserData()" or "validateUserInfo()" or "validateUser()" for this? Or maybe you need all three? Sure, you could open yet another tab, find that function in whatever the fuck include it was pulled from, then read that function to see what it does... or maybe a helpful comment in the code could just tell you.
Disagree, there's no reason to not use clearly named code and comments. I've never been sitting down writing code and thought to myself "Oh man, if only I didn't comment my code I could have finished this today"
Comments are just the thought process that goes into the code, and also ideally the business process you need to perform, that way whoever comes in after knows why you wrote something the way you and and if they know the business function they know how they can change things without causing further issues.
I just dont get everyone being so particular about comments. I'd rather something be overcommented than have no comments at all. I always imagine a brand new intern trying to understand what im writing. They need context of why things are being done how they are. Frankly, I think obsessing over overcommented code is more a sign of a new dev than the overcommented code itself.
I remember first year programming, our prof pulled up a test project he made. Had 23 or 24 defined variables.
It was the fucking alphabet, and everything was an int to handle math equations.
I swapped over to networking after my first year lmao.
What if you hace to work with a decade+ old codebade as one of who knows how many active developers?
And I still think it's useful to comment what it actually means and/or what the requirements were.
Lmao, the real MVP is the person trying to explain the 'code sorcery' with those scribbles. Magic comments don't provide clarity, they're just summoning spells for future debuggers. 😂 #wizardry
I rarely ever comment code. If I feel that I need to comment code (other than actual documentation), then it’s more often than not a sign that the code is way too complex and that I need to rethink the design of the code itself.
Only use case where comments are valid is if you’re consuming from a third party API that has some weird quirks, in that case it’s best to put a small comment so future developers are aware of those quirks.
Im glad I dont have to work with your code. Programmer or not, English is easier to read than trying to work out the logic of every inch of your code just to fix a bug in a very particular spot.
In my line of work, I really only comment when it's someone else's code that I'm being asked to update or when there are separate artifacts driving a single process that have a not so obvious relationship with each other, documenting the other pieces for the inevitable future person who will have to update my code. The rest of the time, I'm writing code that should be immediately readable to anyone who would be reasonably assigned the job of reading and parsing it. My basic rule of thumb is asking myself if I would be able to understand this code, cold. If not, it should either be more readable, be more explicitly documented with comments, or both. Simply commenting every fucking line regardless of need or context actually makes code less readable, for me.
It's perfect 😍
``` // check if {condition} if (condition) { ... } // end of checking {condition}
for () { ... } // for each item
```
Not saying it wouldn't be useful when it's a large block, but still.
Im such a good programmer, that when I borrow lines from the internet that delve into vuuduu, they get commented with like maybe 2 or 3 works for the whole section. If only I could lock future me and people out of touching those lines, since everything breaks if anything is modified & you need to be some machine code whisperer to slightly understand the first line.
got it.
--they pay me to write this.
This is why Stack Overflow created Stack Overflow Docs. It is also the reason why Stack Overflow Docs failed.
I only comment if it's something weird. Otherwise it goes in a design document
My comments are just the pseudo-code that was in my head. Like I'll come up with pseudo-code first, paste it into my Dev environment, and turn every step of it into a comment.
Generally.
Or I'll describe the next 3-4 lines in a comment, if they're all grouped together logically. Winds up looking the same as my pseudocode approach.
I generally put the business requirements in comments before I start coding. I take them verbatim from what I am given. It helps to not miss something that way.
I was reading a physics textbook from a state that uses tax revenue to give Christians long distance reacharounds and encountered (paraphrased) "What is the difference between science and religion? Science asks 'how?', religion asks 'why?'"
I consider it more important that science answers that question with compelling proof than that it merely asks it.
i usually just add comments when necessary but like what my professor would say “your code should explain itself”
Comment in abstract way: you should make it plain and simple.
Comment in plain way: your comment is redundant.
I actually saw that page in a manual for an IP office phone.
//increment i
i++;
Always hated having to comment setters and getters.
I'll have you know those comments are language agnostic
I comment stuff to remember what the fuck I’m trying to do
Nah, comments are code you don't need anymore, but don't really want to delete just in case
-- I am what will rise from your ashes
Those precision comments saved money on translation costs too. That's a job worthy of a bonus.
Code tells you what the software does, comments tell you what the software was meant to do.
OrderItemId: The id for the item in an order
When I was still new and learning how to code one of the developers wrote extremely detailed comments everywhere in the code. She explained how each section worked, why she had coded it that way and explained what each section of code did. It was a god send for someone brand new looking at walls of code. It taught me so much.
most comments I leave are just reminds do something I haven't got around to doing yet
I can’t get past peer review unless every operation has a comment, so that’s how we end up here.
my code comments are usually the commandline or shell script equivalent
I hate people who write a comment for things you can clearly read in the code. Like thanks for both wasting my time and insulting my intelligence
The best code, is self documenting code.
Won't run on a smart fridge if you do that.
The comment lmao
// We have asked the question question_asked = 1;
Ah the old pirate software classic
No sub is safe
other than the fact this is stupid, why does he need a global object/struct/whatever
Just the way gamemaker works
ok good to know it's not even more stupidity
We know what you did there :p
Pr title: improves documentarion for various methods
+9,765 lines
File1.java + /** + * Returns the product id + * + * @return the product id + */ public int getProductId()