Ranter
Join devRant
Do all the things like
++ or -- rants, post your own rants, comment on others' rants and build your customized dev avatar
Sign Up
Pipeless API
From the creators of devRant, Pipeless lets you power real-time personalized recommendations and activity feeds using a simple API
Learn More
Comments
-
navitas29316yI agree with her on this. How can you write code and not understand the code you just wrote?
-
-
Root825996yHow can you not understand your own code?
I don't understand?
Unless you're dealing with arcane hacks that you just happened to discover? -
drekhi18586yThat's what happens when you don't comment your code, man. Start commenting, I feel you on this though. But it all improves after you start commenting .
-
Alright everyone stop judging, i’m sleep deprived and running on just coffee rn, i literally don’t even remember what i had for dinner (2h ago) i did actually write the code myself without smacking stackoverflow answers together 😁
-
It's easy to write code and then not seeing through it anymore only a little later. (*) I am with @drekhi12 her, comments help. At least note *why* you did something.
And please, get some sleep. That is not healthy!
(*) I think about stuff like physics, or JIT compilers, maybe ray tracing... These things are nasty. -
@jelleken I didn't mean "She's absolutely right" by "she has a point", merely that in an ideal world, the programmer know exactly what's going on in their code. That's not always the case though :)
-
You’re not doing complex algorithms or anything are you?
If it’s your project, you should understand every line you write. Your gf is right.
Not understanding is just strange. It seems like you’re trying to come up with experiences that don’t happen in reality but think it applies to all devs. -
@phreakyphoenix Had to get it done by tomorrow (which is why im so tired) so I just wanted to get it working, refactoring it tomorrow after we pushed to production ..
-
@phreakyphoenix That reminds me of a quote I read the other day :
"Always write your code as if the guy who will maintain it later was a violent psychopath who knows where you live!" -
To everybody that says that she has a point: yes she has a point, but we live in 3d space and points are useless there...
-
@Gregozor2121 I like how you used 9 points in the comment stating they are useless
-
@Codex404
But they exist on R^2 so the are infinitley more important than in R^3 -
@Gregozor2121 Are you saying 3D is pointless...?
@SoulSkrix why would you write without a plan...? WHY do you write it then? "let's just write and see where it leads us to" is a very, VERY bad practice -
@Gregozor2121 everything in 3D exists on a 2D plane. The points you used also have depth.
-
@SoulSkrix Seriously, 300 LOC in one night is a "code in hurry"? I'd understand if that was 10k LOC. But DEFINITELY not 300.
My unit-test methods are longer than that -
Uhhhh comments solves headaches and makes you have written more lines of code unless you comment out code
-
Semmel946yYes - this should not happen. But sometimes when you have deadlines and you're tired and do not have enough coffee - this just happens.
-
@Semmel yea sometimes my energy drops below a level that it makes my brain give no meaning to most simple things. (for example, there is "body" written there but my brain thinks its not "body") when that happens I simply go to sleep.
Related Rants
My girlfriend clearly doesn’t understand our struggles
rant
struggles