[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
/g/ humor thread
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: 255
Thread images: 56
File: image.jpg (23 KB, 459x330) Image search: [Google]
image.jpg
23 KB, 459x330
>>
File: image.jpg (65 KB, 494x396) Image search: [Google]
image.jpg
65 KB, 494x396
>>
>>55384697
I don't get it.
>>
File: image.jpg (60 KB, 469x236) Image search: [Google]
image.jpg
60 KB, 469x236
D E S I G N A T E D
>>
>>55384697
Both work I see no problem
>>
Or people just follow their IDE/editor defaults
>>
>>55384704
I don't get it either and I program everyday.

>>55384697
Are you saying that there should only be one way to write code ? Are you suggesting that the bracket of the if should be placed on line ? or on two line ? Why would you think such thing ? nonsense..
>>
File: image.jpg (56 KB, 279x329) Image search: [Google]
image.jpg
56 KB, 279x329
>>
>>55384734
Why aren't you consistent with your curly braces?
>>
>>55384697
if (Condition){
Statements
/*
...
*/
}
>>
>>55384697
is this spaces vs tabs?
>>
>>55384704
>>55384734
Putting the brace on the if line, or putting it on it's own separate line.

It's just a formatting thing.
>>
>>55384751
I am, but different project have different standards. There is not one best way to write it, that's it what I'm saying. Obvjously, you need to be consistent when choosing your standard.
>>
>>55384697
you missed a type, non-pajeets
>>
File: 1467278456880.png (334 KB, 791x3224) Image search: [Google]
1467278456880.png
334 KB, 791x3224
are you a hacker anon?
>pic related
>>
>>55384837
So you get it?
>>
>>55384875
I guess I am now
>>
>>55384697
Delete your account.
>>
>>55384872
holly shit, im a fucking hacker and i didnt know it
>>
>>55384786
No space after if also
>>
>>55384710
> what is a geometric sequence
You still get to do 25% of your work, Pajeet.
>>
>>55385101
>What is Amhdahl's Law
Gonna go ahead and say two computers won't half your work twice.
>>
>>55385174
Imagine if it was true. I would be popping millions of VM and rule the planet earth.
>>
File: loonix.png (2 KB, 54x18) Image search: [Google]
loonix.png
2 KB, 54x18
>>55384872
>>
File: Iwanttobelieve.jpg (73 KB, 636x477) Image search: [Google]
Iwanttobelieve.jpg
73 KB, 636x477
>>
What drives me nuts is

if ( statement )

Why why why why why
>>
File: image.jpg (32 KB, 400x296) Image search: [Google]
image.jpg
32 KB, 400x296
>>
:^)
>>
>>55385323
Whatever you do, DON'T try to download Lunix. I tried it once and got my browser hacked.
>>
File: virigin.jpg (950 KB, 2304x1728) Image search: [Google]
virigin.jpg
950 KB, 2304x1728
>>
>>55385686
>using the smiley with a carat nose
>>
>>55384697
if (Condition) { Statements /* ... */ }[\codel]
>>
>>55384704
Then you're probably the right kind you fucking faggot.

STOP OPENING YOUR WRAPPERS ON THE SAME LINE AS YOUR IF STATEMENTS THOSE ARE TWO DIFFERENT THINGS THEY GO ON DIFFERENT LINES REEEEEEE
>>
>>55384697
I was taught the second way but I think the first way is cleaner.
>>
>>55384701
>>55384710
>>55384735
>>55385452
Classic ;^)
>>
>>55384701
>>55384710
>>55384735
>>55385452

for fuck's sake what kind of half-senile baby boomer laughs at this retarded shit?
>>
Both are settled by language style guides. I use one for C and the other for Java.
>>
>>55385452
Roflmao
>>
Someone post the pic of the female programmer who just writes cd, ls etc into her cmd getting encouraged by her amazed female friends. That one gets me every time
>>
File: 1465404889509.jpg (19 KB, 340x260) Image search: [Google]
1465404889509.jpg
19 KB, 340x260
>>
File: oooo .png (39 KB, 150x102) Image search: [Google]
oooo  .png
39 KB, 150x102
>>55384701
>>55384710
>>55384735
>>55385452
stop
>>
>>55385781
<prettyprint>
if (condition)
{ Statements /* ,,, */ [\kode] }
</prettyprint>
>>
>>55385824
Bazinga
>>
>>55384701
Id give her my floppy if ya know what I mean :P
>>
>>55385832
I kek'd
>>
>>55385813
the half-senile baby boomer kind
>>
File: fim++.png (58 KB, 1277x876) Image search: [Google]
fim++.png
58 KB, 1277x876
Fresh OC
>>
>>55384697
Languages without brackets are my faves.
Python and Genie, please.
>>
>>55385861
>>
>>55385902
>an team
>>
File: 1451695792948.jpg (1 MB, 1225x1748) Image search: [Google]
1451695792948.jpg
1 MB, 1225x1748
>>55384872
I assume this must had been some viral campaign or at least a humorous article.
>>
>>55385902
>Cereal Velocity

I met this guy at a Convention is Las Vegas a few years ago.

I should have smacked him in the head so he wouldn't have come up with this dumb idea
>>
>>55385902
Fucking genius. I wish I could waste my time like that.
>>
>>55385902
http://www.ponyos.org/
>>
File: enc.jpg (33 KB, 572x410) Image search: [Google]
enc.jpg
33 KB, 572x410
>>
>>55385781
There's a special circle in hell reserved for assholes like you.
>>
>>55384872
This is priceless. I dearly hope this is legit, considering it was posted in "Internet Idiocy" in 2001, it could only ever be a copy-pasta from some forever lost blog. In my heart, I'll believe it's true and feel for the poor Peter whose parents were completely offtrack about computers like so many of us during the end of the 90s.
>>
>>55385910
That aint gonna do shit
>>
>>55385781

if ( condition )
{
Statements /* ... */
}
>>
>>55386075
it compiles, that's what's important
>>
>>55385202
That could still be done, considering you give a machine the ability to perform human-reserved tasks... Let's meet sometime.
>>
File: ILl59.jpg (33 KB, 578x663) Image search: [Google]
ILl59.jpg
33 KB, 578x663
I once worked on an embedded product which began development in the early 1980s. They used Whitesmiths "style", which is a style in the same sense that pic related is a "style".
>>
File: glitch.jpg (29 KB, 407x404) Image search: [Google]
glitch.jpg
29 KB, 407x404
>>
>>55384872
>>55386071
http://www.adequacy.org/stories/2001.12.2.42056.2147.html
>>
>>55386087
>it compiles, that's what's important
Until somebody else has to maintain the spaghetti you dropped all over the place.
>>
>>55386124
Cool, but is it really the origin of the text? Clearly it is meant as humorous on this page considering it is under the topic "Internet Idiocy".
>>
File: 1374459679069.jpg (37 KB, 500x442) Image search: [Google]
1374459679069.jpg
37 KB, 500x442
>>55385706
>everything is the same brand
>all peripherals are spaces oddly far apart
>speakers not even aimed at user
>jesse pinkman's soulless stare into the camera
>>
>>55386128
It's sad to see that in practice, refactoring is rarely done consistently and such code would just be rewritten anyways.
>>
>>55386149
> Posted:
>Dec 02, 2001
it probably is, but I have no idea
>>
>>55386122
Stop it you fucking piss bucket.
>>
>>55386159
>such code would just be rewritten anyways
At a really high cost and wasted time just because some "lol it compiles" ass couldn't be arsed to write clean code.
>>
>>55386162
Either way it's gold, thanks for the link anon.
>>
File: gpu.jpg (59 KB, 446x338) Image search: [Google]
gpu.jpg
59 KB, 446x338
>>
>>55386173
I really meant that large sections of code gets rewritten anyways rather than refactored. Too many people just make it werk and won't spend time reading through modules of codes written 10 years ago, quality or not.
>>
>>55385999
>PonyOS uses its own kernel, built from scratch.
I'm going to try this, wish me luck
>>
>>55386189
>>55386122
>>55386023
stahp
>>
>>55384697
Opening bracket on the following line is fucking disgusting and anybody who uses that coding style should be shot. Your code is ugly to look at and you should be ashamed.
>>
File: FRICK AS HECK MAN.gif (397 KB, 315x223) Image search: [Google]
FRICK AS HECK MAN.gif
397 KB, 315x223
>>55385706
WHY IS HIS COMPUTER SO FAR AWAY FROM HIM, ALSO WHY DOES HE HAVE ONLY ONE (ALSO SMALL) MONITOR I DONT UNDERSTAND REEEEEEEEEEE
>>
>>55386204
It doesnt have networking so its basically useless at this point.
>>
>>55384872
>Linyos Torvoltos
my sides
>>
>>55386128
Its literally an example, I always make my shit multiline
>>
>>55385706
He looks like a young Matthew Mcconaughey
>>
>>55386220
It's PSR-compliant in PHP, apparently. I do it that way for work, but outside of work or when using any other C-like language, opening brace goes on the same line

It doesn't bother me nearly as much as some of the other stupid shit people do, like formatting blocks like this in Ruby:

something = { one:       "one",
two: "two",
three: "three",
seventeen: "seventeen" }
>>
File: image.png (561 KB, 1334x750) Image search: [Google]
image.png
561 KB, 1334x750
>>55386023
>>
>>55386220
spoken like a true east coast faggot. rot in hell.
>>
>>55385432
People coming from bash
>>
>>55386199
AOE II HD developers would disagree
>>
>>55384872
>"AMD is a inferior third-world based company that makes knock off american processor chips"
>>
>>55386361
DESU my guess is they rewrote the whole graphics engine and kept the underlying model and controller logic. But eh, good thing if they could grab some stuff and were intelligent enough to abstract a thing or two from their original rendering engine.
>>
File: cab.jpg (29 KB, 600x536) Image search: [Google]
cab.jpg
29 KB, 600x536
>>55385999
>they are building their own kernel with experimental features
HOLY FROZEN TURD ON A STICK ABORT ABORT SHUT DOWN THE INTERNET IT'S GETTING TOO POWERFUL IT HAS GAINED SENTIENCE
>>
>>55386394
What did she mean by this?
>>
>>55386398
Probably she meant exactly what she said.
>My little pony was a mistake.
Kinda hard to missunderstand the meaning
>>
File: BillGatesRape.jpg (298 KB, 2000x1000) Image search: [Google]
BillGatesRape.jpg
298 KB, 2000x1000
>>
>>55386422
What do you mean by this?
>>
>>55386398
>>55386422
it's a meme you summerfags
>>
>>55384697
I never figured out why the right one is even a thing. Is it some remnant of some old days?
>>
>>55384735
>>55384701
>>55385452
>>55386023
DELETE THIS
>>
>>55386422

moron
o
r
o
newfag
>>
>>55386446
The left one adds one line, was good when programmers were paid by LOC.
>>
>>55384697
if(condition)
{ Statements
/*
...
*/
}
>>
>>55386508
you a fucking scumbag. You remind me of these assholes who write their if statements like this in shell scripts:
if [[ condition ]]; then
statements
fi


SERIOUSLY? IT ACTUALLY REQUIRES YOU TO PUT A SEMICOLON, WHICH SHELL SCRIPTS REQUIRE TO LINE UP TWO SEPARATE COMMANDS ON THE SAME LINE, AND YOU STILL PUT THEM ON THE SAME LINE. REEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEE
>>
>>55386224
If I had obnoxious leds and a clc, I wouldn't want it next to my face either.
>>
File: 1389017073302.gif (484 KB, 450x319) Image search: [Google]
1389017073302.gif
484 KB, 450x319
>>55386533
>>
>>55386553
>my emotion of the moment is most accurately represented by some white trash dirtbag who had incest babies

damn that really rustles my jimmies my aninomous friend. well memed.
>>
>>55386431
Look dipshit, i already jad a long hard day fealing with the god awful high functioning retards, bareley functioning asspies, sperglords, and just plain fucktarded autists that somehow manage to pass themselves off as real people.
I seriously would love nothing more than to don a hokeymask and proceed to go stalking thru the night taking an axe to anyone and everyone who argues with or interrogates their waiter about a fucking milk shake flavor that they have never tried before, because doing so wpuld bring the best and brightest smiles to my face and the heartiest of santaclause laighs to my belly and the warmest of satisfactions in the knowledge that i had truly blessed thw world by riding it of the vermin who go about wearing human skin on the outside while barely even having the remotest form of sentience or concious thought. Oh sure she may be good for a blowjob and have one hell of an amazing pair of tits, and a pussy to fuckyourself to death in, but the fact remains they are nothing more than animals with a slight comprehension and command of speech.
So dont bother asking what i fucking mean! Or i swear i will trace your ip and mail myself special delivery to your door and chop up tje first person that opens the box and grind up their bodies into sausage and feed it to the homeless!

Tl;dr
Fuck You.
>>
>>55384697
if condition:
statement
>>
(code)condition && fuckyou;</source> alright i'm done time for lunch with the other g
>>
if condition then
statement
end if

Basic is so pretty. And it doesn't let you fuck around with line spacing. I hope it becomes the language of tomorrow.
>>
File: hahahaha.jpg (41 KB, 468x361) Image search: [Google]
hahahaha.jpg
41 KB, 468x361
>>55386569
>>
>>55384697
Clearly the only civilized way is on the right.
>>
>>55386815
>It makes perfect sense to put the opening brace 20 columns further to the right of the closing brace

Objectively wrong.
>>
>>55384697

>imperative programming

pajeet detected
>>
>>55386912
neet detected
>>
>>55385706
>razer shirt
>>
>>55386795
Well... glad i could make someone laugh.
>>
File: fox_poop_ice_cream.jpg (33 KB, 480x480) Image search: [Google]
fox_poop_ice_cream.jpg
33 KB, 480x480
>>55384872
>I'm scared of hackers because...
>...
>They smell bad - 58%
>58%
>>
>>55384872
>wife Carol
>son Peter
>youngest daughter Cindy

Is this Brady Bunch fanfiction?
>>
>>55386086
i found the gnutard
>>
File: 1462066147523.png (15 KB, 468x240) Image search: [Google]
1462066147523.png
15 KB, 468x240
>>55385399
>>
>>55384697

if(!(inputFile = fopen(fileName,"r"))){
printf("Unable to open: %s\n\n", fileName);}
>>
>>55385999
it says its a april fools joke on the bottom of the page.
Checked tho
>>
>>55385399
is that even legal?
>>
>>55384872
Is this shit fucking real? My jimmies are so rustled right now
>>
File: Screenshot_2016-07-03_01-26-14.png (186 KB, 1024x792) Image search: [Google]
Screenshot_2016-07-03_01-26-14.png
186 KB, 1024x792
>>55387714
>>
>>55385706

His eyes are so empty
>>
>>55384697
please go pajeet
>>
>>55387804
You don't want to get caught with this in your possession
>>
>>55385942
>1.44MB
nice
>>
>>55384697
Three types of people.

return ayy?'lmao':'nope';
>>
>>55384751
The C Programming Language isn't even consistent in which format it uses.
>>
File: 1425839984001.jpg (204 KB, 900x1200) Image search: [Google]
1425839984001.jpg
204 KB, 900x1200
>>55385706

What's the point of that thing his mouse wire is going though?
>>
>>55386023

that's bad encryption
>>
>>55385686
1
2
3 4
>>
>>55388072
It creates some slack in the mouse cord and prevents it from sliding down from the table so you wouldn't be able to move it as well.
>>
>>55386119
jesus christ
while (x == y)
{
something();
somethingelse();
}

finalthing();
>>
>>55384697
if (Condition)
{ Statements
/*
...
*/}
>>
if (condition) then
OP can go
-- fuck himself.
end
>>
>>55386569
What do you mean by this?
>>
>>55385930
well they are not exactly rocket scientists...
>>
File: world.jpg (202 KB, 1280x720) Image search: [Google]
world.jpg
202 KB, 1280x720
>>
>>55384697
not
if (condition) {
statements;
/*
...
*/
}
else {
else_statements;
}


left one is pajeet-tier who get paid by LOC
>>
File: totally_not_me.jpg (34 KB, 343x443) Image search: [Google]
totally_not_me.jpg
34 KB, 343x443
>>55386235
FUCK YOU CIA NIGGER
>>
>>55388293
if (condition)
{statements;
/*
...
*/}
else {else_statements;}
>>
>>55388317
is this a bait?

>>55388293
it slightly fucked up the formatting
>>
>>55388351
It has less lines of code and you still can get all of the context from indentation. There's a reason lisp is such a great language.
>>
>>55384697
I don't get it I program in python.
>>
I'm not sure if people would hate me for doing it my way but I love Python and got used to it. When I moved to C#, for code blocks inside functions, I do something like

if (condition){
statements;
/*
...
*/}


This way I don't have to deal with unnecessary spaces or things looking like they stream together. And it has that general look that I'm used to.
>>
>>55384697

Left side master race.
>>
File: average day in bongistan.jpg (218 KB, 528x1239) Image search: [Google]
average day in bongistan.jpg
218 KB, 528x1239
>>55387804
You just need to get a licence for it.
>>
>>55388356
You can write Lisp however you'd like. It's not bound by Ranjeep formatting.
 (
if (
lmao-p ayy
)(
baka lol
)(
desu senpai
)
>>
>>55388603
>>
>>55388630
HERETIC
(print
(if (is-fag-p op)
"OP is a fag"
"Who are you kidding?"))
>>
>>55385824
ZIMBABWE.
>>
File: image.jpg (61 KB, 600x450) Image search: [Google]
image.jpg
61 KB, 600x450
xDDD so true :^)
>>
>>55385813

Never worked in tech support have you? Stuff like this and worse happens over and over all the time.
>>
>>55388704
>spouse
>open sores
Top kek senpai.
>>
>>55388704
Lost
>>
>>55387901

Safer than Damn Vulnerable Linux or not? How easy is it to make it crash? I might use it for my experiments.
>>
>>55385942
Good ol' times
>>
>>55387621
>>55385399
>>55387804

The CSC0101A is a one way chip, only translates USB to PS/2.

Are you people born yesterday?
>>
>>55388288
Ubuntu would be a small state inside Debian country.
>>
>>55389434
Noone knows what that is tbhwu senpai
>>
>>55384697
if condition {
statement;
/*...*/
implicit_returning_statement
}

Rust master race.
>>
>>55386023
the stupid kinda burns
>>
>>55388288
>red hat commonwealth
LONG LIVE THE COMMONWEALTH.

>>55389445
more like ubuntu would be a tumor growing inside debian and bursting out the side in a cancerous metastasized mess.
>>
>>55384697
Ants?
I'm assuming this post is about ants.
Because they are obviously the only things small enough to fucking read this shit.
>>
>>55386023
what's the fucking joke here
>>
>>55384697

if (blnMyValue ==  TRUE) 
{
statement;
}
>>
>>55384786
if(condition)
statement //
>>
>>55388805
If I understand well, PonyOS was just a pony-themed fork of ToAurOS. You might want to work with that instead:
http://toaruos.org/
>>
>>55388288
This isn't remotely clever.
>>
>>55388317
>>55388630
Most languages don't force you to space it in any specific way. Proper line spacing and indentation is about being an organized, intelligent sapient with consideration for convention and readability both for yourself and for people who will look at your code instead of a retarded bonobo ape on crack who'll run anything that compiles.
>>
File: 1433219477151.jpg (9 KB, 250x215) Image search: [Google]
1433219477151.jpg
9 KB, 250x215
>>55388317
>else {else_statements;}
>>
>>55388687
>conditional inside a parameter
>no else wrapper
>strings just in there without any construct to explicitly pass them as arguments

What kind of nignog language is this?
>>
>>55384697
if(1&&condition){statement1()&&statement2&&...statementN == 1 ? ; : ;}
>>
>>55386086
At least someone in here know how to format.
>>
>>55385706
>Razer Gear everywere
>Uses a Saitek Mouse instead

Good man now all he needs to do is ditch the rest of his razor shit.
>>
File: vKxaMmu.png (2 KB, 290x78) Image search: [Google]
vKxaMmu.png
2 KB, 290x78
>>55385910
Anon, I.
>>
>>55385813

You clearly have never on Pajeet-ridden Facebook "porgramming" groups.
>>
>>55390676
It's a controlled else.

Normally an else is everything that the preceding if statements aren't. This can cause unpredictable behavior.
>>
>>55384872
>before the russian cold war
WHY PARENT
WHY TORTURE PETER LIKE THIS
>>
>>55385323
I'd just like to interject for a moment. What youโ€™re referring to as Lunix, is in fact, GANOO/Lunix, or as Iโ€™ve recently taken to calling it, GANOO plus Lunix. Lunix is not an operating system unto itself, but rather another free component of a fully functioning GANOO system made useful by the GANOO corelibs, shell utilities and vital system components comprising a full OS as defined by XENIX.
Many computer users run a modified version of the GANOO system every day, without realizing it. Through a peculiar turn of events, the version of GANOO which is widely used today is often called โ€œLunixโ€, and many of its users are not aware that it is basically the GANOO system, developed by the GANOO Project. There really is a Lunix, and these people are using it, but it is just a part of the system they use.
Lunix is the kernel: the program in the system that allocates the machineโ€™s resources to the other programs that you run. The kernel is an essential part of an operating system, but useless by itself; it can only function in the context of a complete operating system. Lunix is normally used in combination with the GANOO operating system: the whole system is basically GANOO with Lunix added, or GANOO/Lunix. All the so-called โ€œLunixโ€ distributions are really distributions of GANOO/Lunix.
>>
>>55384872
>Programming with Perl
Not even once
>>
>>55391260
kek

>>55391266
One day Larry Wall will sign my copy
>>
>>55385902
>after being unable to find a pre-existing programming language based on My Little Pony
>>
>>55390698
You can't possibly be serious
>>
>>55384697
Go die in a fire for posting that op.
>>
File: eatshit.png (7 KB, 567x124) Image search: [Google]
eatshit.png
7 KB, 567x124
Obviously the right side is the only way to correct bracketing
>>
>>55390698
What they've written is just

puts(is_fag_p(op) ? "OP is a fag" : "Who are you kidding?");
>>
>>55384872
This was great until Linyos Torovoltos, then there was just no doubt any more that it's fake.
>>
>>55385706
Is that tower going to launch?
>>
>>55386569
Is this pasta?
>>
This is all unfunny shit. All of you should be ashamed.
>>
File: 1428023829188.jpg (123 KB, 902x992) Image search: [Google]
1428023829188.jpg
123 KB, 902x992
>>
>>55391642
>>55391437
Try doing that in C
>>
>>55391996
Try doing what? >>55391642 is C.
>>
>>55384697
Dob't you mean /g/ cringe thread?
>>
>>55392014
Oh.

Fuck me, it compiles.

WHATEVER GEEZE
>>
File: 1467324819056.gif (1 MB, 300x238) Image search: [Google]
1467324819056.gif
1 MB, 300x238
>>55384872
>hacker programs
>bonzi buddy
>flash
>>
>>55384697
Second one
>>
>>55392148
Flash is malware and can be used by hackers in malicious ways
>>
>>55391198
Please correct to something happened
>>
File: Stackoverflow fix.png (17 KB, 672x176) Image search: [Google]
Stackoverflow fix.png
17 KB, 672x176
>>
>>55385824
BOZZANO
>>
File: 1449473592168.jpg (16 KB, 218x290) Image search: [Google]
1449473592168.jpg
16 KB, 218x290
>>55391198
>void main()
>>
>>55388212
What in the fuck
>>
>>55391198
> void main() // invalid main signature
> while (true) {} // undefined behaviour
>>
>>55384697
>>
all hail C++17
if (auto op = get_op(); op.is_faggot())
{
std::cout << op.name() << " is faggot\n";
}
else
{
op.faggotize();
}
>>
>>55392528
That bitch deserves nothing but a slow death.
>>
>>55392571
at least she isn't a filthy casual.
>>
>>55392498
while (true) {} compiles for me. Am I doing something wrong?
>>
>>55392528
>adding useless almost empty lines that don't improve anything
why?
>>
>>55392603
>>
>>55392641
That's not the point. She's being passive-aggressive as fuck
>>
File: over-under.jpg (56 KB, 670x503) Image search: [Google]
over-under.jpg
56 KB, 670x503
>>55384717
>>55384717
>>
>>55392559
What will C++20 look like?

auto auto auto auto;
>>
>>55392660
I don't care about the point. I'm interested in tthe reason why people add useless lines in their programs.
>>
>>55392622
yes
https://stackoverflow.com/questions/3592557/optimizing-away-a-while1-in-c0x
http://blog.regehr.org/archives/161
>>
1
2
3 4
>>
>>55386119
Yakub, is that you?
>>
File: 1465174524532.jpg (17 KB, 260x273) Image search: [Google]
1465174524532.jpg
17 KB, 260x273
>>55392706
>I don't care about the point.

Yeah, you sound like someone who uses K&R alright.
>>
>>55385796
same

i know the one on the right saves a line but i find the one on the left the most clean.

and plus all my professors have always commented on how my code is clean.
>>
>>55392655
I only understand the PHP panel.

What does `5ยด mean?
What is all that shit in Ruby?
What does an AnbstractSingletonProxyFactoryBean actually do?
>>
File: 1460470717803.gif (2 MB, 320x180) Image search: [Google]
1460470717803.gif
2 MB, 320x180
>>55392698
This is retarded because you would have to flip the paper over in your hand before folding. Wall side in is objectively better.
>>
>>55392706
An opening brace is a separate statement from the if statement. It should occupy its own line. It 's prettier because it's on the same column as the closing brace. It increases readability by spacing out the conditional and the statements that depend on it. Most importantly: It helps debugging when there's a problem with missing/extra braces or crossed wrappers.
>>
>>55392733
>orange rectangle
>orange rectangle
>blue/brown square inside orange rectangle >orange rectangle
>>
File: 1439348283926.jpg (49 KB, 576x402) Image search: [Google]
1439348283926.jpg
49 KB, 576x402
>>55392770
'5' is a string that is being interpreted as a number in one situation but not in the other.
>>
>>55392770
'5' is basically the char of 5, but javascript does weird auto-typing shit when you try to use math on what you might consider a char.

In the first case, it assumes you want the code point representation of '5', or 50. In the second, it assumes you're trying to do math with '5' as literally 5.
>>
>>55392822
>>55392842
this is absolute fucking shit. I never used javascript before. Please tell me there are standard conversion methods between chars/strings and numbers.
>>
>>55392770
>does not understand variable types

I hope for everyones sake that you'll never do any programming.
>>
>>55392864
As someone who loves Javascript, I'm sorry you had to see this unsightly side of it. There's absolutely no excuse for this shit.
>>
>>55392864
It happens because + is both a math operator and the "join text" operator.

you have to do parseInt() if you want your text to be interpreted as numbers.
>>
>>55392873
>Doesn't know
>asks
>trying to learn
>You will never and can never learn, You will never be able to program
wat
>>
>>55392655
I think I get it. With that approach, you can concatenate numbers to make a date and, if you start from numbers that would have made 00-01-01 and subtract one to either the month or the day, you'll get an accurate date.

I'm not sure what it does with negative numbers though.
>>
>>55392873
I understand types. I was a bit thrown off by her using ` and ยด instead of ' '. And nobody should be presumed to know the stupid intricacies of implied type conversions in scripting languages that force the use of mixed type variables.
>>
>>55386304
>'s PSR-compliant in PHP
PHP is an awful toylang and was made by a tech illiterate idiot, and PSR, by association, is also awful.

People format codeblocks like that due to being influenced by LISP and it's typical indentation I'd assume. I don't really have any issue with that. If you're bitching about people using indentation to match up the values in the key-value pairs though, I hope you get hit by a truck. There is literally nothing wrong with make sure your code lines up vertically and is readable.

I can understand why you'd be put off by LISP-esque indents though. They weirded me out until I got used to them too.
>>
>>55386617
80s time traveler pls go
>>
>>55390601
Only if you have one statement. Also, it should be: if(condition) statement;
>>
>>55386847
>dedicate an entire line of code to a fucking brace
>ruin readability of code by destroying the speech-bubble
>>
>>55393058
destroying the what?
>>
File: 1467166976720.gif (936 KB, 500x354) Image search: [Google]
1467166976720.gif
936 KB, 500x354
>>55385902
>Anno Domini MMXVI
>MLP is still a thing
>>
>>55385788
Not everybody wants to scroll through metric tons of virtually empty space you fucking queer autist
>>
>>55385706
The joke here is that he still gets more pussy than you do
>>
>>55393344
Then don't become a developer you special snowflake.
>>
>>55392822
>>55392770
>>55392655
With '5' + 3, you concatenate strings. It comes first in the order of operations before add-numbers, so JS assumes '5' is meant to be a string, but '3' also needs to be a string. If you're writing things like '5' + 3 in your code and you aren't actually trying to get that outcome, it's your fault that your shit is weird.

There is literally nothing wrong with a language allowing you to obfuscate your damn code either. Why is 'lol! look at this silly Ruby code!' a reason to dislike Ruby? Instead, you should dislike it for it's obsessive OOP faggotry.

Personally though, I don't really like JS or Ruby. It's just that this is a really shitty example of an issue in them.

On another note, why is 'Plankalkul' being used as a punchline? Because it has a German name so it sounds silly?
>>
>>55390143
A tumor can't get another tumor.
>>
>>55385781
For me it all ultimately depends on what is more readable, so I'm OK with this kind of structure in very certain situations. Like for example when having highly repetitive and similar expressions lined up after each other.

I'd rather have:
void Func(int& i) { i = 0;};

than:
void Func(int& i)
{
i = 0;
};

if repeated, let's say 20 times.
>>
File: 1458345710600.png (357 KB, 454x603) Image search: [Google]
1458345710600.png
357 KB, 454x603
>>55393483
>Personally though, I don't really like JS or Ruby. It's just that this is a really shitty example of an issue in them.
>>55392822
Please tell me you aren't defending that shit!? This is clearly example of why JS is a steaming pile of shit.
>>
if(condition)    statement;
>>
>tfw Go forces
} else {


I feel violated.
>>
>>55385821
>kode
>>
>>55393565
Yes it can
>>
>>55384697
Please keep this for your facebook I'M SUCH A GEEK LMAO group
>>
>>55385823
ot, but he is right about part of that(at least potentially)

DX11 requires the driver to track all resource dependencies, so automatic async compute is possible.
Thread replies: 255
Thread images: 56

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.