Jow Forums humour
Jow Forums humour
Other urls found in this thread:
Is this a criticism of the language or a criticism of poor use of the language? Because golang's error handling is pretty great albeit too vebose.
Its a criticism of the language, but a bad and unfunny one
MUMMYYYYYYYYYYY I DON'T LIKE HANDLING "ERRORS" I PREFER TO JUST CRASH WITH AN UNHANDLED EXCEPTION BECAUSE A CONFIG FILE DOESN'T EXIST
>humour
I'm laughing already
Found the Americlap
mutt
.DeepEqual()
what
deepest lore
>gophers actually believe their error handling and exceptions are the only two ways to do it
>programming in such a way that even requires handling errors
what a pleb, real men dont have any errors in their programs
>gopher forgets to handle a non-nil error
>compiler happily ignores it as well
wow it's shit
El goblino...
My errors are implicitly handled, Haskell 4 lif
>they look ugly
What did he mean by this?
he is autistic
>look at me I'm a math guy I write a lambda expression instead of a noob loop
what the absolute fuck
javascript not even once
...
...
C is the fastest, most power-efficient, nearly the smallest memory too.
I will never understand choosing brevity over readability, unless it is also usefully more efficient.
t. el ogro de las americas
>normal
Dios mio...
I love this memes so much xD
LA ABOMINACIONA DEL CREATURA DISTURBATOR
invidio.us
this shit is incorrect. number zero is neither odd nor even.
that's handled inside the 'is-even' lib
Zero is even, you absolute retard. Even the first sentence of a fucking Wikipedia article on parity of zero states this.
>you must be over 18 to post on this website
why are you using greentext as a way to quote...?
0 is even bro.
it is divisible by 2? check.
odd numbers are not divisible by 2.
since it is an integer and it is not odd, it must be even. QED
>2 contributors
that is the best part
what the fuck
But the code sample in the OP is good. That's C-like syntax but with multi-valued returns (which is great for error handling).
if an error actually occured why would it always return nil in the second argumen?
who are you quoting?
To indicate that no error occurred? Same reason malloc () returns NULL when it fails
Whoops, misread what you said. If an error did occur, then it wouldn't return nil, that's the point.
N is even iff N mod 2 = 0 //definition of even
N mod 2 = 0 //it is indeed even
Lol, really captures Jow Forums in a nutshell
>C programmer is a uneducated manual worker
>all those replies
>I was merely pretending to be retarded
rules, nigga
Who is more retarded here: the person obviously baiting with obvious bait or those who are too low IQ to realize that's bait?
Guys I need some sock buying advice, what should I keep in mind?
What the fuck is this even supposed to do
that's not the definition of even you code-camp subhuman faggot
the definition is:
An integer n is even iff there exists an integer k such that n = 2k
0 = 2*0
I don't know Go, but if I had to guess I would say it's a contains function for a container of generic types. The reflection is only necessary if you have polymorphic items in the container.
congratulations, now you are as smart as a 3rd grader.
k = 0.
k ∈ Integers.
0 = 2 * k.
Thus,
0 ∈ Evens.
Do you even fucking math
Are you trying to put me down for trying to explain 3rd grade math to someone else?
fucking kek this is pajeet
Also, you clearly don't understand the definition of modulo, either:
x mod y = z is the same as saying x = yn+z, so the two forms are mathematically equivalent.
x=0, y=2, z=0 --> 0 = 2*n+0
This is solvable, so 0 is even.
if an error actually occured your computer would crash, returning NULL is not an error, that is correct behaviour if it couldnt do it.
That's the same definition with a slightly different wording, mouthbreather
What a comfy syntax
>humour
Finally, a quality thread.
>there are no dumb people on the internet
literally means the same thing
>I watched numberphile video on it I know what I'm talking about
I get that Go is a pointless language but how is its style of error handling a problem at all? It's the exact same thing as guard clauses.
>others are cartoon characters, 2D is superior
Weeb
>ask stackoverflow for python help
>get a bunch of retarded lambda code golf answers
I get that haskell and other functional programming languages are unnecessarily obtuse, but you should definitely learn some basic functional programming language concepts like map, filter, bind and fold if you want to consider yourself a good programmer.
Nani the fuck?