[Boards: 3 / a / aco / adv / an / asp / b / biz / c / cgl / ck / cm / co / d / diy / e / fa / fit / g / gd / gif / h / hc / his / hm / hr / i / ic / int / jp / k / lgbt / lit / m / mlp / mu / n / news / o / out / p / po / pol / qa / r / r9k / s / s4s / sci / soc / sp / t / tg / toy / trash / trv / tv / u / v / vg / vp / vr / w / wg / wsg / wsr / x / y ] [Home]
4chanarchives logo
:^)
Images are sometimes not shown due to bandwidth/network limitations. Refreshing the page usually helps.

You are currently reading a thread in /g/ - Technology

Thread replies: 64
Thread images: 7
File: 1457970554.jpg (150 KB, 869x1776) Image search: [Google]
1457970554.jpg
150 KB, 869x1776
:^)
>>
>inb4 it's fake

she deleted it, you fucking mongs
this was very real
>>
Fuck yeah let's multiply the amount of garbage produced by mentally dislocated people by 4!
>>
this is fake

and probably gay misogynist propaganda
>>
File: angry_moth_noises.gif (309 KB, 480x360) Image search: [Google]
angry_moth_noises.gif
309 KB, 480x360
>I'm so random yay :D
>>
File: 1356848942379.jpg (72 KB, 520x853) Image search: [Google]
1356848942379.jpg
72 KB, 520x853
Stuffing the code full of Mr. Obvious comments
>>
daily neckbeard jelly of supermodel thread

>you will never hang out with taytay while writing awesome code
>>
Sesame street level of coding right here

Fuck me how do you live your life acting like you're talking to 3 year olds perpetually
>>
>>53559242
nah, those people who answered are just bots. just look up Shalom Ayash, that accounts is full of bot/spam
>>
>>53559213
The one on the right is literally more cancer than LOLCODE.
>>
I'm so random yay! :D

I got smelling vagina ;/
>>
>>53559368
Well, western women are allowed to act like overgrown children because men basically treat them as such.
>>
//printing hello world
printf("hello world");

Why the fuck do idiots do this?
>>
>>53559415
>western
you should check our eastern women some day
>>
>>53559436
Rather not, thank you
>>
>>53559436
more like woman in general are allowed to act like children because men basically treat them as such
>>
Honestly, company coding should be like right minus the cringe, except with algorithm of left.

Because let's be honest, that function on the right is completely useless.
>>
>>53559213
>using the smiley with a carat nose
>>
>>53560607
never comment the how, only the why

nobody fucking needs // THIS IS AN INCREMENTER
// INCREMENT UNTIL THING HAPPENS
// END OF FUNCTION
>>
>>53560632
:^)
>>
>>53560649
Oh boy, that's because you're either lucky to have competent co-worker or that they're not asking you for every retarded shit.

Because I can tell you that a lot of people do need to know the how and aren't exactly the sharpest tools in the shed.
>>
>>53560632
:^)
>>
>>53560672

If you have to explain self-explanatory code via comments I'm sorry but you're working with retards
>>
>>53560632
;^)
>>
>>53560687
Now, as much as I'd like to say people are retards, the code on the left is far from self-explanatory.

But yes, you can come to work with complete retards.
>>
>>53559434
Profs/instructors stress the importance of good commenting
They usually don't stress the importance of not overcommenting

I actually had a prof at a shitty community college once who actually wanted people to comment like that. Maybe it just made grading easier idk but it was fucking stupid.
>>
>>53560719
Sure, but you could just describe what the function does in one comment line and that should be enough even for retards
>>
>>53560719
The code on the right goes too far with its explanations though. If you can understand the meaning of the code without a comment it doesn't need one. As the other anon said, comment the why not the how
>>
File: sourcecode1.png (69 KB, 1050x774) Image search: [Google]
sourcecode1.png
69 KB, 1050x774
>stripped the original comments
not that they're helpful but still

also, post cute code
>>
>>53560756
    i  = * ( long * ) &y;                       // evil floating point bit level hacking
i = 0x5f3759df - ( i >> 1 ); // what the fuck?


Indeed, not that helpful.
>>
>>53560719
If you don't recognize the code on the left, you haven't been around enough.
>>
>>53560756

goo lawd, that looks fucking beatiful *.* i'm touching myself..
>>
>>53560774
I know what code on the left is that.
It's far from self-explanatory, and you can't expect any random guy in a company to know what it is and how it works.
>>
>>53560607
It makes sense for teachers requiring that though. In the same sense math teachers want you to write down your process to your answer, it's just to make sure you understand everything you've done and not just copy pasted it all.
>>
>>53560725
When learning overcommenting is good.
First, it makes you understand what you're doing, in order to write a comment you have to know what the code does, also if you have a wrong gist of it it will let you self-correct.
Secondly, after you leave school, the amount of comments you write rapidly decline, so if you ere taught to comment moderately then you stop commenting at all and if you were verbose at school you become moderate commenter IRL.
Ofc that's huge generalization, not everyne is like that, but majority is, minority will self-suffice anyway.
>>
>>53560814
Meant to quote >>53560725
>>
File: john_530_big.jpg (208 KB, 530x424) Image search: [Google]
john_530_big.jpg
208 KB, 530x424
>>53560773
>>
>if (a > b && b < a)
>>
>>53560864
>call max(4,4)
>returns 5
>>
>>53560864
Always gotta double check. You can never be too sure.
>>
>>53559213
aren't comments in C slowing down the compilation process?
>>
>>53560925
maybe by a few CPU cycles at compile time, but in general it's best to comment your code. If more comments makes it more readable, so be it.
>>
File: 1414064357197.png (77 KB, 694x801) Image search: [Google]
1414064357197.png
77 KB, 694x801
girls cant fucking code cant fucking code
>be in comp. prg 1 lab
>fat ass fuck ugly girl near me
>instructor writes some code so people can try in eclipse
>instructor says here are the comments you dont have to write it
>fat ugly ass fuck girl writing comments
>tell her you dont have to they have 0 effect on conclusion
>she looks into my eyes
>keep typing comment
>give her a look of disgust
>fast forward 3 years later
>finish the school earlier than fat fuck
>also more gpa
>fat girl is still fat also have way more acnes
fuck fat people fuck em more if they are developer
>>
File: 1414054295238.jpg (59 KB, 922x546) Image search: [Google]
1414054295238.jpg
59 KB, 922x546
>>53560978
i mean if they are girl an developer
sorrie me bad
>>
>>53560978
That's a silly, sexist generalisation to make, Anon. A lot of guys can't fucking code either.
>>
>>53560978
>a fat person commented code so they could understand their code later
>i told them not to
>they did anyway, the retard
>continued being fat

the gall
>>
>>53561071
I'd be mad too if even the fat chicks would ignore me.
>>
>>53560910
The function would be so much better if she had used "else".
>>
>>53561097
But then she wouldn't be able to return 5 out of her pure XD randomness.
>>
>>53560725
Your prof would do my head in tbqh
>>
>>53560665
>>53560683
>>53560709
>using the smiley with a carat nose
>>
>>53559364
>calling her "taytay"
kill yourself
>>
>>53559364
>taytay
you know she went for that
b
b
c
doe?
>>
>>53559213
>>53559242
If it isn't a fake, then why wasn't this tweet archived?
Checkmate, misogynists.
>>
>>53561045
But fat guys are alright at coding though
>>
>>53561403
>not using the smiley with a carat nose
:^)
>>
>>53560632
The superior smiley

>:^)
>>
>>53560978
>holding a grudge against someone for 3 years because they ignored your suggestion

On a scale of 1 - 10 how autistic are you.
>>
>>53561596
>>53561602
>using the smiley with a carat nose
>>
(^;
>>
>>53560978

never ever trust a fat person
>>
>>53561892
>using the backward smiley with a carat nose
>>
>>53560773
Holy shit what the fuck is that
>>
>>53562052
https://en.wikipedia.org/wiki/Fast_inverse_square_root
Thread replies: 64
Thread images: 7

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

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.
If a post contains personal/copyrighted/illegal content you can contact me at [email protected] with that post and thread number and it will be removed as soon as possible.
DMCA Content Takedown via dmca.com
All images are hosted on imgur.com, send takedown notices to them.
This is a 4chan archive - all of the content originated from them. If you need IP information for a Poster - you need to contact them. This website shows only archived content.