[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
Programming
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: 59
Thread images: 7
File: Eu2qOSv.jpg (40 KB, 402x480) Image search: [Google]
Eu2qOSv.jpg
40 KB, 402x480
Does anyone subscribe to the theory that drinking will improve one's ability to program? Personally I feel like it helps me create code, or at the very least quickly create skeleton code.
>>
>>51524749
Nope. I use green tea and weed for focus, it's much more reliably.

Drinking is great for brainstorming sessions, if you can bring up enough discipline to write your ideas down.
>>
File: RGLFim0.png (41 KB, 890x670) Image search: [Google]
RGLFim0.png
41 KB, 890x670
>>51524749
I don't think my boss will fall for this
>>
>>51524813
oh god that's terrible.
>>
>>51524813
i guess 102 is odd.
>>
>>51524749
I did some of my thesis simulations drunk. Worked out pretty well for me
>>
>>51524813
I refuse to relieve this isn't ironic shitprigramming
>>
>>51524813
>someone took the time to write this, even as a joke
>>
>>51524813
no, anon. you're odd.
>>
>>51524855
>>51524879
>>51525253
>i'm same-anon
>I didn't write this.

I would write this (php, i choose you!):
echo('The number is '.($n%2?'odd.':'even.');
>>
In my personal experience moderate drinking can increase the ability to produce working code but will reduce your ability to produce maintainable code.
>>
>>51525009
They might be a first-week CS student with no prior knowledge of programming and a total lack of common sense.

You'd be shocked how common this shit is.
>>
File: hCCxSCE.png (78 KB, 461x549) Image search: [Google]
hCCxSCE.png
78 KB, 461x549
>>51524813
>>
Actually, most of my engineering thesis and project was written after 1-2 beers.

It was one of the better things I've ever written.
>>
>>51527059

>php

worse than the OP picture desu
>>
>>51527228
My sincere apologies.
I assumed it was obvious that the code is written like this on purpose.
You are mostly wrong in your post except student.

I'm a second year programming student.
I know php, javascript, java, c#, (my)sql, regexp.
And for shits n giggles i'll throw in a microsoft word certification, a microsoft excel certification and a microsoft windows 7 certification (all 3 issued by ms).
i know my shit when it comes to networks to.

I saved that pic (and some others) from a thread here on /g/.
>>
itt: alcoholics
>>
>>51527321
I admit, php!=godtier.
But hey, it gets shit done.
i like my girls how i like my programming languages:
>quick, intelligent, nice personalities, weak type-stuff (forgot the name) and dirty
>>
>>51527262
I think i can top that.
sudo apt-get install nvidia* -y && sudo reboot
>>
File: l8nTHqq.png (426 KB, 1101x1029) Image search: [Google]
l8nTHqq.png
426 KB, 1101x1029
What is even going on here?
>>
>>51527424
ctrl+a
delete
ctrl+s
>>
>>51527424

Oh sweet jesus.
>>
>>51527341
I'm not sure what you're saying. I'm not saying that students can't program, just that people who are new to programming often write this kind of shitty code. I wrote some similarly cringeworthy things when I was a total beginner to programming.
>>
I drink and program pretty much every day.

Sometimes I come back from drinking and I solve some problem I've been struggling with. Most of the time it makes me lazy and I end up on 4chan, though.
>>
>>51527443
more like ggdG
>>
For the sane reason it's easier to text everyone in your contacts when drunk.
>>
>>51527370

> php!=godtier
> weak type-stuff (forgot the name)

1st year comp sci?
>>
>>51527424
Object oriented programming is what's happening there.
>>
>>51527841

As terrifying as it looks, it's very readable. It is still likely poorly designed but one of the great things about OOD is that often it's purpose is self evident.
>>
>>51527816
Wrong af
>>
>>51527906

oh, then kill yourself senpai
>>
>>51527913
why tho?
Bc i said php!=godtier?
>>
>>51527865
Despite not being deliberately obtuse, its likeness to verbal diarrhea makes it hard to read and even harder to understand when drunk.
>>
>>51527321
>le PHP is the worst language ever made maymay

PHP is not a good language by any means but getting this triggered when people mention it is borderline autistic.
>>
>>51524813
couldnt you just say if number % 2 == 0 then the number is even?
>>
>>51524813
I mean obviously this code is retarded, but what is the use of the convert.toint32 method, why would you not just int.Parse?
>>
>>51528040
yes
>>
>>51528040
>>51528046
>>51528057
I did not wrote that.
I just posted it.
I wrote (in this thread on my phone) this >>51527059
>>
>>51527945
try parsing that senpai
>>
>>51528081
for fucks sake no-one thought you wrote that stop sperging out
>>
>>51528046
def isEven(num):
even_nums = [0, 2, 4, 6, 8, 10, 12, 14, 16, 18, 20, 22, 24, 26, 28, 30, 32, 34, 36, 38, 40, 42, 44, 46, 48, 50, 52, 54, 56, 58, 60, 62, 64, 66, 68, 70, 72, 74, 76, 78, 80, 82, 84, 86, 88, 90, 92, 94, 96, 98, 100, 102, 104, 106, 108, 110, 112, 114, 116, 118, 120, 122, 124, 126, 128, 130, 132, 134, 136, 138, 140, 142, 144, 146, 148, 150, 152, 154, 156, 158, 160, 162, 164, 166, 168, 170, 172, 174, 176, 178, 180, 182, 184, 186, 188, 190, 192, 194, 196, 198, 200, 202, 204, 206, 208, 210, 212, 214, 216, 218, 220, 222, 224, 226, 228, 230, 232, 234, 236, 238, 240, 242, 244, 246, 248, 250, 252, 254, 256, 258, 260, 262, 264, 266, 268, 270, 272, 274, 276, 278, 280, 282, 284, 286, 288, 290, 292, 294, 296, 298, 300, 302, 304, 306, 308, 310, 312, 314, 316, 318, 320, 322, 324, 326, 328, 330, 332, 334, 336, 338, 340, 342, 344, 346, 348, 350, 352, 354, 356, 358, 360, 362, 364, 366, 368, 370, 372, 374, 376, 378, 380, 382, 384, 386, 388, 390, 392, 394, 396, 398, 400, 402, 404, 406, 408, 410, 412, 414, 416, 418, 420, 422, 424, 426, 428, 430, 432, 434, 436, 438, 440, 442, 444, 446, 448, 450, 452, 454, 456, 458, 460, 462, 464, 466, 468, 470, 472, 474, 476, 478, 480, 482, 484, 486, 488, 490, 492, 494, 496, 498, 500]
if num not in even_nums:
print "That is not an even number."
else:
print "That is an even number!"


def isEven(num):
i = 2
while i < 2147483647:
if i == num:
print "The number is even."
i += 2
return
print "The number is false."
return
>>
>>51524749
You mean like the Ballmer Peak or something more?
>>
>>51527424
don't get it. Seems an accurate implementation of how games were programed before people knew how.
>>
>>5152742
Whenever I code 2d game this shit happens and I hate it, any advice on how to avoid it?
>>
>>51528446
the second one is just gorgeous
>>
>>51524802
Weed kills my already small short-term memory. Green tea seems like it would help though. Any specific brands you recommend?
>>
drinking is fun, and coding drunk can be fun, but alcohol has an impairing effect on the brain. don't dress up drinking like it's functionally helpful. that's the kind of retarded juvenile shit that potheads say in a desperate bid to legalize their hobby.

drinking - within some limits and moderation - is fun. just let it be that.
>>
>>51524802
I do this, but if I go overboard on the weed I become useless. It's not too hard to find a good stopping point, though.
>>
>>51527395
Oh man, that brings back some memories.
"Goddamnit I installed every amd driver, why isn't my Linux working? fuck this!"

Good times.
>>
File: sup.jpg (496 KB, 2560x1440) Image search: [Google]
sup.jpg
496 KB, 2560x1440
I take loads of drugs you've probably never even heard of

Doesn't really help me code but its a nice crutch against the mindless bullshit that society imposes on me. Probably just daddy issues imho
>>
>>51524749
I'll admit I'm sometimes so anxious about unrelated things that I can't get started if I don't drink a bit to calm down first.
>>
>>51530213
I can't find anything conclusive that supports the idea that pot harms short-term memory. I have an excellent memory and have been smoking pot for about 8 yrs.

Also, TDD is great when you're drunk. Programming? Not so much.
>>
>>51527341
> knows networks
Configuring your local pc ip does not qualify you
>>
Everytime I code drunk it turns out shit.
Thank good git keybindings in emacs are muscle memory know.
>>
File: 1427936584791.jpg (211 KB, 805x945) Image search: [Google]
1427936584791.jpg
211 KB, 805x945
>>51527341
>programming student
>>
File: the-number-is-false.png (55 KB, 571x553) Image search: [Google]
the-number-is-false.png
55 KB, 571x553
>>51528446
>>
>>51524749
In my experience, drinking makes writing shitty oppressive enterprise code less shit
>>
>>51531809
ok, this one was fun.
>>
>>51527734
masterraceeditorneovim
Thread replies: 59
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.