[Boards: 3 / a / aco / adv / an / asp / b / bant / biz / c / can / cgl / ck / cm / co / cock / d / diy / e / fa / fap / fit / fitlit / g / gd / gif / h / hc / his / hm / hr / i / ic / int / jp / k / lgbt / lit / m / mlp / mlpol / mo / mtv / mu / n / news / o / out / outsoc / p / po / pol / qa / qst / r / r9k / s / s4s / sci / soc / sp / spa / t / tg / toy / trash / trv / tv / u / v / vg / vint / vip / vp / vr / w / wg / wsg / wsr / x / y ] [Search | Free Show | Home]

Brutal honesty - How many of you can genuinely read your code

This is a blue board which means that it's for everybody (Safe For Work content only). If you see any adult content, please report it.

Thread replies: 13
Thread images: 1

File: Hero.jpg (89KB, 1280x854px) Image search: [Google]
Hero.jpg
89KB, 1280x854px
Brutal honesty -

How many of you can genuinely read your code 6 months later and make use of it?
Hard mode: read it six months later and immediately start adding to it


If so: which language do you use and how comment dense is your stuff?
>>
>>59123569
Make use of it? Yes.
Immediately start adding to it? No, that would take a few minutes to get my shit together and figure out what I was doing. Not more than 15 minutes though.

The language is SQL - which is also why I can do it. You don't define your own behavior in SQL, so everything you see comes from a pretty limited set of possible key words and the structure is the same every time, although maybe nested inside itself. Figuring out what I was thinking is then just a matter of seeing what each subquery produces, what the whole query produces, what the tables being used look like and what's calling the query. Queries tend to not be more than a few hundred lines at most, so yea... pick it back up in a few minutes.

Zero comments usually.
>>
Yes to both. I use AutoIt as my primary language. I comment everything that isn't brain-dead obvious specifically for this reason.
>>
I don't comment anything when I come back to see my code after not looking at it for a while I often see straightaway improvements I can make to it
>>
>>59123569
thanks for this thread OP I always thought I was just retarded


not that I'm not
>>
>>59123569
best way to comment your code
>write code
>don't look at it for 6+ months
>add comments as you figure out how it works
>>
I use Ada and I can read code from 1984 and immediately start adding to it without problems.
>>
Yes to both, but only because of how autistically detailed my comments are. I'd estimated that 70% of the text in all of my programming is comments and notes.
>>
>>59123569
I use the comment feature so I know what is going on.
>>
>>59123851
Same.

>>59123874
This too.
>>
>>59123569
Yes to both, if you can't read your own code you fucked up. As for comments, I just comment whenever what I'm doing isn't immediately obvious through variable/method names. Once in a while I tell a little joke to lighten the mood.
>>
I can read and add to my code years later and I barely use comments because I'm not a fucking idiot
>>
>>59123569
six months is nothing when you've worked on the same thing for four years

going back to work on "old" stuff is pretty common in my job

we use c++14 and don't make a lot of comments (and don't need them, we're kinda obsessive about readability and cleanliness)
Thread posts: 13
Thread images: 1


[Boards: 3 / a / aco / adv / an / asp / b / bant / biz / c / can / cgl / ck / cm / co / cock / d / diy / e / fa / fap / fit / fitlit / g / gd / gif / h / hc / his / hm / hr / i / ic / int / jp / k / lgbt / lit / m / mlp / mlpol / mo / mtv / mu / n / news / o / out / outsoc / p / po / pol / qa / qst / r / r9k / s / s4s / sci / soc / sp / spa / t / tg / toy / trash / trv / tv / u / v / vg / vint / vip / vp / vr / w / wg / wsg / wsr / x / y] [Search | Top | Home]

I'm aware that Imgur.com will stop allowing adult images since 15th of May. I'm taking actions to backup as much data as possible.
Read more on this topic here - https://archived.moe/talk/thread/1694/


If you need a post removed click on it's [Report] button and follow the instruction.
DMCA Content Takedown via dmca.com
All images are hosted on imgur.com.
If you like this website please support us by donating with Bitcoins at 16mKtbZiwW52BLkibtCr8jUg2KVUMTxVQ5
All trademarks and copyrights on this page are owned by their respective parties.
Images uploaded are the responsibility of the Poster. Comments are owned by the Poster.
This is a 4chan archive - all of the content originated from that site.
This means that RandomArchive shows their content, archived.
If you need information for a Poster - contact them.