[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

YLYL /pol/ edition


Thread replies: 337
Thread images: 86

YLYL /pol/ edition
>>
>>74997784
But it's true.
>>
>>74997994
>The difference between 1.01 and 0.99 is 0.01.
Ok then.
>>
>>74997784
>5 rupees were deposited into your account
even though you can't give more than 100%
>>
"A student of life" is what makes that picture for sure.
>>
>>74997784
if it makes tyrone work a little bit harder at his job so my neighbor Mark can get his annual bonus that might mean I won't have to look at his wife's cunty gardening skills and he can hire Jose instead
>>
>>74997784
If you don't do "1% of extra effort every day of the year", then wouldn't you be at 1.00^365 and not 0.99^365?
>>
File: kekek.jpg (62KB, 960x527px) Image search: [Google] [Yandex] [Bing]
kekek.jpg
62KB, 960x527px
>>74997784
at least his teeth are british
>>
https://www.youtube.com/watch?v=Rl4QMS0Zh_w
>>
File: 1356068555362.jpg (21KB, 290x314px) Image search: [Google] [Yandex] [Bing]
1356068555362.jpg
21KB, 290x314px
>>74997784
why are we multiplying the effort we make each day with the effort we made in previous days?
isn't it additive?
shouldn't this be .99 * 365 instead?
>>
>>74999425
Leap year.
>>
>>74999641
Not really. The more money you have, the easier it is to make money. A day's work is worth more on the 7th day than the first.
>>
>75000000
>>
>>75000000
fuck
>>
>>74997784
1% of extra effort a day would be 1.01 x 365, wouldn't it?

so you end up with - surprise surprise - 1% extra
>>
File: 1444607377354.jpg (43KB, 604x533px) Image search: [Google] [Yandex] [Bing]
1444607377354.jpg
43KB, 604x533px
>>75000008
but then it's (1 + .99)^365, like compound interest or something
>>
>>75000008
>The more money you have, the easier it is to make money
Only if you invest, and even then you need hundreds of thousands, if not millions, for it to make a tangible difference.

That equation might hold up at the very top, but for the general public, putting in that 1% extra is simply not going to be worth it if it's inconvenient.

Also, on a completely different note, why do "redistribute the wealth" lefties always gravitate towards the extremes? You don't hear them talking about the middle class, it's all about the impoverished and the billionaires for them.
>>
>>74998206
American educational system everyone.
>>
File: 1463949948861.jpg (226KB, 869x1776px) Image search: [Google] [Yandex] [Bing]
1463949948861.jpg
226KB, 869x1776px
>>74997784
>>
File: CAN'T.jpg (396KB, 960x640px) Image search: [Google] [Yandex] [Bing]
CAN'T.jpg
396KB, 960x640px
>>75001902
>>
File: bergxit.png (380KB, 738x441px) Image search: [Google] [Yandex] [Bing]
bergxit.png
380KB, 738x441px
>>74997784
this is actually pretty nice picture
>>
File: studies.jpg (49KB, 630x721px) Image search: [Google] [Yandex] [Bing]
studies.jpg
49KB, 630x721px
>>75001902
pol is just about the last place I thought I'd see the carmack inverse square root today
>>
File: daRTZSddw.jpg (36KB, 300x300px) Image search: [Google] [Yandex] [Bing]
daRTZSddw.jpg
36KB, 300x300px
>>75001902
>>
>>75001902
wtf is that hex shit going on the the sqrt function
>>
>>75003916
https://en.wikipedia.org/wiki/Fast_inverse_square_root#Overview_of_the_code
>>
File: 1461444026422.jpg (57KB, 584x960px) Image search: [Google] [Yandex] [Bing]
1461444026422.jpg
57KB, 584x960px
>>
>>75001902
Don't post this evil here
>>
File: IMG_633230195028477.jpg (41KB, 504x662px) Image search: [Google] [Yandex] [Bing]
IMG_633230195028477.jpg
41KB, 504x662px
>>
File: 1457979103910.jpg (179KB, 748x823px) Image search: [Google] [Yandex] [Bing]
1457979103910.jpg
179KB, 748x823px
>>
File: signal.webm (249KB, 640x360px) Image search: [Google] [Yandex] [Bing]
signal.webm
249KB, 640x360px
>>74999549
>C
>U
>K
>>
>>75004348
the fuck is "cherry blossom traffic"
>>
>>75004629
Everyone heading out to the popular parks to see the cherry blossoms falling in the spring. It is like holiday traffic on steroids.
>>
>>75002716
joke was originally made by a british man
>>
File: MetalPaperClips.jpg (111KB, 650x733px) Image search: [Google] [Yandex] [Bing]
MetalPaperClips.jpg
111KB, 650x733px
>>
File: WeaponsSweep.jpg (123KB, 600x803px) Image search: [Google] [Yandex] [Bing]
WeaponsSweep.jpg
123KB, 600x803px
>>
>>
File: CreepyAssSilhouette.jpg (124KB, 960x732px) Image search: [Google] [Yandex] [Bing]
CreepyAssSilhouette.jpg
124KB, 960x732px
>>
>>75004046
Lost.
>>
>>74997784
How is this related to exponential growth?

If anything you should be multiplying it
>>
>>75005020

They need to ban toenails that are too long. They can get pretty sharp sometimes.
>>
>>75002716
that hull design is shit for a one man craft powered by oars.
>>
>>74997784
Why would you use power in this situation, not to mention that's 2% difference, not 1%. Come on now Pratik
>>
>>75005020
>>75005069
>>75005095
>>75005121
You're doing good work, leaf. Post more. I love all of these.
>>
>>75005020
that's actually a sensible idea in a hospital. Even a tiny cut is a thing you really want to avoid when you're working around infectious diseases.

>>75005069
for Americlaps' benefit I'll point out that 'estate' is generally roughly equivalent to 'section 8 housing' (unless it's in the context of a country estate). Hence the rather strict policing
>>
>>75004508
>calls someone a cuck
>posts anime
>>
>>74997784
AMERICAN EDUCATION

https://m.youtube.com/watch?v=1I2MbXHLAss
>>
>>75005121
lost
>>
>>75001365
he is saying that the image is retarded because the person in it thinks that 1.01-.99 is .01 and not .02 ya dumb cuckfuck
>>
>>75003259
Hahaha, clever
>>
>>75004348
Omg that stupid fuck.
>>
File: 1437738295942.jpg (25KB, 323x454px) Image search: [Google] [Yandex] [Bing]
1437738295942.jpg
25KB, 323x454px
>>75001902
>(a > b && b < a)
>returns 5 when the two inputs are equal
>>
>>75006217
>because im so random yay :D

thats why
>>
>>75001902
The indentation makes me crazy

also
>a > b && b < a

why
>>
>>75001902
I don't understand code, what's going on?
>>
>>75001902

not a loser nerd here

can anyone explain this? obviously i get the XD IM A GURL HEY GUYS PART but what about the code?

thanks
>>
>>74997784
Assuming that extra 1% contributes 100% to the 1% for the next day
>>
>>75006408
The grey text isn't functional code its just an explanation in the coding used to tell other programmers who might try messing with the code what it does. Since the code on the right already is super simple in its operation you don't need the grey text for most of it. Like we already know that if a>b return b means that if a is greater than b b is returned. You don't need to grey text it. Also the code on the left is a simple number function as well, which needs no explanation.
>>
>>75006217
>>75006322
Always double check your work anons XD
>>
>>74999425

Wouldn't it be multiplication...
>>
>>75000008
Surely it's the opposite, at day 0 you have 0 money, so whatever you earn on day 1 is an infinite increase, day 2 the increase is 2x, day 3 it is 1.5x etc.
>>
>>75001902
Wheres the "//what the fuck?" in the fast inverse square
>>
File: 1441577875180.jpg (240KB, 1656x1009px) Image search: [Google] [Yandex] [Bing]
1441577875180.jpg
240KB, 1656x1009px
>>75004046
>>
>>75005627
fapping to anime girls is the most alpha thing you can do.

I bet you fap to real women being fucked by real men, you're the cuck, getting off to people having sex.
>>
>>75006350
the one on the left is a clever way to quickly compute inverse square roots, which is really useful when you need to normalize a bunch of vectors (eg, computer graphics stuff).
the one on the right doesn't really do anything useful (that's the joke)
>>
>>75000008
>>75000000
Damn, close but no cigar.
>>
File: 1366706119011.jpg (207KB, 1024x768px) Image search: [Google] [Yandex] [Bing]
1366706119011.jpg
207KB, 1024x768px
>>75001902
>there's a pic of her "coding" by fucking up cd .. in command prompt
>bitches think she is literally programming the matrix
>mfw everything
>>
>>75007493
That picture makes me so fucking mad
>>
File: image.png (556KB, 849x632px) Image search: [Google] [Yandex] [Bing]
image.png
556KB, 849x632px
>>
File: 1461082929678.png (311KB, 652x669px) Image search: [Google] [Yandex] [Bing]
1461082929678.png
311KB, 652x669px
>>75001902
>>
>>75006408

First one
https://en.wikipedia.org/wiki/Fast_inverse_square_root

second one is just basic shit you learn within 10 minutes
>>
>>75006618
the code on the left isn't really a simple number function, what it's doing is actually pretty weird.
>>
>>74997784

He can't be that stupid...
>>
>>75007616
no shit, that's why it was my face
>>
>>75004348
He looks like an honest bro, too. What a shame.
>>
>>75005975

He's also missing the fucking coefficient.
>>
>>74998206
if you give 1% more instead of slacking 1% more you faggot
>>
>>75007714

Maybe I'm retarded, but what is it actually doing? Wikipedia article was greek to me.
>>
File: 1463094235281.png (204KB, 394x523px) Image search: [Google] [Yandex] [Bing]
1463094235281.png
204KB, 394x523px
>>75007792
Are you fucking mad right now too?
>>
>>75007807
>faggot beta
>bro

come on, theres no one to blame but him for this. if he actually had some balls he would have asked to fuck instead of being an orbiter
>>
>>75005975
He's obviously referring to a 1% extra effort with 1 being the baseline you retard
>>
>>75005020
Isn't manchester one of those cities with active muslim rape gangs targeting english children?

Way to go, bongs. Be sure to focus on what's important.
>>
File: briannawucode.png (55KB, 534x344px) Image search: [Google] [Yandex] [Bing]
briannawucode.png
55KB, 534x344px
>>75001902
>>
>>75006408
Newton-Raphson approximation for inverse square root.
>>
>>75007890
Calculating an approximation x^(-1/2) using a weird but fast method.
>>
File: 1367473534378.jpg (79KB, 600x400px) Image search: [Google] [Yandex] [Bing]
1367473534378.jpg
79KB, 600x400px
>>75007938
yes
>>
>>75005095
Do you think you could even cut your skin with that if you tried?
>>
>>75006939
Trap on female or trap on trap is the only non-cuck porn out there
>>
File: 1368073403438.jpg (259KB, 1280x1175px) Image search: [Google] [Yandex] [Bing]
1368073403438.jpg
259KB, 1280x1175px
>>75008002
>=
>>
File: 1430186690609.jpg (101KB, 526x567px) Image search: [Google] [Yandex] [Bing]
1430186690609.jpg
101KB, 526x567px
>>75008052
Good.

Anyone else?
>>
>>75007688
kek
>>
>>75007688
Does anyone remember that hilariously bad code that used to get circulated around /g/? It was like 5000 lines of stuff like this to do something very basic like a calculator
>>
>>75006350
>>75006408
The guys code is a strawman, the code is hard to read because of many useless lines and "overly complicated" lines that do literaly nothing. the code could just be
return 1 / sqrt(number);
The girls code contains way too much useless comments (the grey text) and contain many useless code lines as well.
The code could and should be
if(a < b)
return b;
else
return a;

Also, the girls' code is wrong as if a and b are equal, the function should output a ( or b), and not 5
>>
>>75007680
what the fuck is going on in this picture explain australia
>>
>>75001902
This makes me want to beat some random girl and I'm not even muslim.
>>
>>75008288
I remember. I think it was just a troll, but who knows? Nobody, that's who.
>>
>>75007890
https://blog.dave.io/2011/10/0x5f3759df-true-magic-number/
>>
File: 1458417673597.png (111KB, 314x314px) Image search: [Google] [Yandex] [Bing]
1458417673597.png
111KB, 314x314px
>>75008246
Im angrier n' hell
>>
>>75007983
Yes, so it should be 1.01 vs 1 you retard.
>>
>>75005627
The capital letters on the sign spell "CUK", dipshit
>>
File: ahhh.gif (2MB, 256x144px) Image search: [Google] [Yandex] [Bing]
ahhh.gif
2MB, 256x144px
>>75008002
>using assignment statement instead of comparison
>supposed game developer
>supposed woman
>>
>>75007714
https://en.wikipedia.org/wiki/Fast_inverse_square_root
>>
>>75007695
>Basic shit.
Doesn't even qualify as that good.
>>
>>75007493
I hate you.
>>
>>75008315
retard baby with sad parents trying to be happy
>>
File: 1434307099579.png (49KB, 1000x1000px) Image search: [Google] [Yandex] [Bing]
1434307099579.png
49KB, 1000x1000px
>>75008395
What are you mad about?
>>
>>75008020
Only the last line is the approximation. The rest is CS fuckery.
>>
>>75007688
HOW THE FUCK CAN YOU WRITE CODE THIS FUCKING BAD
>if the wage gap existed this would be why
>>
>>75006789
This

>all these idiots missing the point
>>
>>75008675

This is /pol/. You don't get to post unless you've got an ulcer from meaningless, directionless anger.
>>
>>75008308
assuming this isn't bait, and you actually haven't read the wikpedia article that's been posted like five times in this thread, there's a really good reason it's not just "return 1/sqrt(number)".
>>
>>75008002
I mean if gamergater or negative are variables that should work.

But yeah it's stupid as fuck.
>>
>>75008567
the baby is pretty strong to hold up that selfie stick like that, the baby looks fucked up big time too, i feel bad for the parents. Anyone know what kind of retardation?
>>
>>75008424
it is
>>
File: 1461032345850.jpg (62KB, 421x834px) Image search: [Google] [Yandex] [Bing]
1461032345850.jpg
62KB, 421x834px
>>75001902
>>
>>75008815
Most of us detour that meaningless, directionless anger to silly things.
>>
File: 1454983622338.jpg (65KB, 960x960px) Image search: [Google] [Yandex] [Bing]
1454983622338.jpg
65KB, 960x960px
>>75008675
THE FUCKING MARVEL THREAD
>>
>>75007890
I have learning disability and i understand it easily. You are certainly retarded. As if you are wymyn or some kind of negro.
>>
>>75008460
Posting anime is still a very highly regarded cuck move though
>>
>>75008795
>Missing the point.
No, you're missing the point. No one can give 101% effort anyway. He's missing the coefficient to even make this interest formula meaningful.
>>
>>75001365
Btfo
>>
>>75008884
>should work.
Look at the operators this time.
>unless of course her goal is to make all tweeters gamergaters and all tweets negative
>>
>>75008468
And the program doesn't do anything except print text. Sounds about right for an SJW and a "woman."
>>
File: 300k.jpg (51KB, 506x337px) Image search: [Google] [Yandex] [Bing]
300k.jpg
51KB, 506x337px
>>75008308
>The guys code is a strawman
No, it is not just obfuscation and wankery, it avoids floating point computation to calculate square roots much faster. Enjoy your shit tech service job resetting passwords.
>>
File: oh my fucking god.gif (2MB, 480x270px) Image search: [Google] [Yandex] [Bing]
oh my fucking god.gif
2MB, 480x270px
>>75007688
AHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHH
HHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHH


WHAT


THE


FUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUCKKKKKKKK
>>
File: 1451523885796.jpg (27KB, 640x640px) Image search: [Google] [Yandex] [Bing]
1451523885796.jpg
27KB, 640x640px
>>75009016
HOLY SHIT YOU TOO? GOD FUCKING DAMN WHY IS EVERYTHING NOWADAYS POLITICAL PROPAGANDA?!
>>
>>75008884
no, it's assigning the value of 'Gamergater' to 'Tweeter' and 'Negative' to 'Tweet' when it should be comparing them. Basic stuff that this abomination fucked up, like """"""""""""her"""""""""""""" gender
>>
>>75000000
KEK IS HERE
>>
>>75006408
The code on the left is supposed to return the greater of two numbers. it does that most of the time, but if both numbers were say, 6, then it would return 5, making it incorrect as a solution and a failed first assignment in your cs 108 class. Also, she is redundant on the else if statement by having the compiler check if a is less than b, followed by checking if b is greater than a. If its passed through once, its inconsequential. Its just a couple of fractions of a millisecond long cycle of a spinning disc in your computer. If its part of a function called millions or billions of times then it is doubling the time needed for that particular line before it gets to the part about checking if they are the same value.

Anyone who isn't retarded would just write it as
if a > b
return a
else
return b
>>
>>75009257

You wouldn't give a shit if it was political propaganda in favor of your positions, shitcunt.
>>
File: 1463634965909.jpg (581KB, 1329x1917px) Image search: [Google] [Yandex] [Bing]
1463634965909.jpg
581KB, 1329x1917px
>>75007493
>>
>>75008308
>The guys code is a strawman, the code is hard to read because of many useless lines and "overly complicated" lines that do literaly nothing.
Hello miss. How's your Gender Studies degree helping out getting women in STEM?
>>
>>75009159
>>unless of course her goal is to make all tweeters gamergaters and all tweets negative

I mean maybe that's her point
>>
>>75004629
Could be high traffic on road named cherry blossom
>>
>>75005712
Thanks for saying it. I was embarrassed for a moment when i read his name. I thought he was an Indian
>>
>>75008308
>the code could just be return 1 / sqrt(number);

No you fucking idiot, the man's example is much more faster to run on the computer's side
>>
>>75009214
naw he's right, it is a strawman, just not in the "it's overly complicated" reason.
It's a red herring.
It's basically one of the VERY few places where magic word numbers make sense, and it's being used in a "programming is tough!!!" to outsiders, while making the girl's code look readable to outsiders.
>>
>>75009386
he probably wouldn't notice. not that he wouldn't care.
>>
>>75008424
are you mentally disabled?
serious
>>
>>75008308
>Doesn't know about "black magic/voodoo" code.
You're not fooling anyone, female.
>>
>>74999549

Well, the mans teeth seem to confirm he is indeed british.
>>
>>75009386
I don't support political propaganda on things that are simply for entertainment/leisure.
>>
File: her.png (2MB, 1500x1948px) Image search: [Google] [Yandex] [Bing]
her.png
2MB, 1500x1948px
>>75009429
>cd code
>cd: no such file or directory: code
lol
>>
File: Goose 1.png (193KB, 493x809px) Image search: [Google] [Yandex] [Bing]
Goose 1.png
193KB, 493x809px
>>
>>75004348
Then she sucked off 3 niggers.
#blacked
>>
>>75009622

Of course you don't, sweetie.
>>
>>75009532
So simultaneously magic numbers make sense here but it is also a straw man of ingenuity from 2-3 decades ago.
>>
File: gladimirputin.gif (4MB, 347x244px) Image search: [Google] [Yandex] [Bing]
gladimirputin.gif
4MB, 347x244px
>>74998206
>not understanding that 0.01 is 1%

>burger maths
>>
File: WHITEPEOPLE.png (296KB, 860x456px) Image search: [Google] [Yandex] [Bing]
WHITEPEOPLE.png
296KB, 860x456px
oc
>>
>>75009777

>1.01 - 0.99 == 0.02
>>
>>75009843
quality oc.
>>
File: 1362529856388.jpg (115KB, 400x400px) Image search: [Google] [Yandex] [Bing]
1362529856388.jpg
115KB, 400x400px
>>75009429
>kill me now
>>
>>75009315
Hell, in most languages you can syntactic sugar that shit down to one fucking line:

>a > b ? return a : return b;

Boom, done.
>>
>>75007688
how is this code bad? it does what it is supposed to do. I assume that was some entry level coding class homework assignment

doing a for loop that loops b times and adds a another time would have worked better though
>>
>>74998206
You're starting from 100%. You either drop 1% to 99% or you raise 1% to 101%.

Why is this so hard for amerifats to understand? (Canadian visiting)
>>
>>75010014
(You)
>>
>>75010014

Spotted the female...

>Product of a and b...
>Literally just (a * b)

Gee, couldn't tell you why it's bad...
>>
>>75003259
Carmack didn't invent it. And Quake wasn't the first implementation of it
>>
File: dat face.png (812KB, 1000x1100px) Image search: [Google] [Yandex] [Bing]
dat face.png
812KB, 1000x1100px
>>75010014
>>
>>74999549
I actually like these immigrants. Instead of honor killing and what not, they're trying to assimilate at a basketball game. Good for them.
>>
>>75010093

>>75009934
>>
File: nien-2_3299e232.jpg (80KB, 800x339px) Image search: [Google] [Yandex] [Bing]
nien-2_3299e232.jpg
80KB, 800x339px
>>75007680
>>75008315
>>75008567
>>75008954
>>
>>75004348
What if they *are* dating, though?
>>
>>75010143
The instructions in the picture state you can't use the * operator. The person who you replied to gave a correct response.
>>
>>75010143
To be fair it did say you can't use "*".
You'd recursively add "a" up "b" times right?
>>
>>75010143
the instruction specifically said not to use ' * ' you fucking schlub
>>
>>75010143
>//Calculate a and b's product without using the operator *
>just do a*b

kill yourself retard
>>
>>75010143
>the point is to not use *
At least read the whole thing nigga.
>>
>>75010143
the first comment makes it seem like it was supposed to be done without multiplication.

>>75010014
it's not robust at all, a for loop would have been better, that's the point. It's a pretty big tell that the person writing it doesn't understand the basics of programming at all.
>>
File: mywifesboi.png (223KB, 640x640px) Image search: [Google] [Yandex] [Bing]
mywifesboi.png
223KB, 640x640px
>>
>>75010314
learn to loop
>>
>>75010014
>doing a for loop that loops b times and adds a another time would have worked better though

There's your answer. This is a field where anything less than perfect gets your fat ass fired.

Also, not sure where you learned math, but for most of us 11 * 11 isnt an impossibly large number.
>>
>>75010292
>>75010314
>>75010323
>>75010343
>>75010350
>>75010361

Thanks for the (Yous)

>Real code would be (a ^ b)
>>
>>75001902
I searched for this tweet, it doesn't seem exist?
>>
>>75010314
just use a for
>>
>>75010143
You can't use a*b.

HOWEVER, there's 100502502905 faster/less retarded ways to do this
>>
>>75008861
>>75009214
I was writing a correction post after reading the post too late and realising I was a dumbass, elegant code can be hard to understand at first glance, although I have ashamed myself it could still be considered as a strawman as she removed the comments and picked the most complicated but efficient version of the code over the slower but simple one, which would have been more fit for such a comparaison.
However it's kind of funny comparing a man's elegant code and a woman's non functional
>>
>>75009741
Well then give me an example of some conservative propaganda I would unintentionally support
>>
>>75010093
from the picture:
>"It's that 1% extra effort every day
not
>It's the 1% extra effort on top of not dropping 1% effort
literally some stupid picture designed to get likes on facebook, no one actually thinks that giving only 99% means your yearly productivity is one thirtieth of one day's productivity
>>
>>75010523

Like a power function? Or an exponent function?
>>
>>75001902
>y = number
>const float

whats the point of these lines?
>>
>>75010143
The code is fine, just incredibly impractical and useless.

Her program is kind of like writing a program that multiplies by two as such:

if (input == 4) print {8}
if (input =/= 4) print {critical failure}
>>
File: 1451668558790.jpg (47KB, 647x452px) Image search: [Google] [Yandex] [Bing]
1451668558790.jpg
47KB, 647x452px
TFW everyone in this thread suddenly knows how to code, except for me.
>>
attention everyone, multiplication is just inverse division
>>
>>75009532
I am just curious where they got the magic number from. I am a mechgineer, so some of the more "arcane" programming stuff looks like voodoo.
>>
File: shiggy.png (209KB, 349x408px) Image search: [Google] [Yandex] [Bing]
shiggy.png
209KB, 349x408px
>>75010942
>not knowing how to code in CURRENT YEAR
>>
>>75010755

The reason you'd approximate a sqrt function is to optimize the code or speed it up. By a lot. Using a const is faster than using a literal declaration. Especially if this code is called hundreds of thousands of times... this adds up fast. Say, like, in graphics or physics where you can get away with tiny deviations.

>>75010871

>The code is fine
>just incredibly impractical and useless.
Pick one.

>>75010942

Shit, I barely know entry level stuff out of fucking around as a hobby. But I can clearly see good code versus bad code.
>>
>>75005712
What is she going on about? My drunk grandfather made more coherent sense, and at least he used racial slurs.
>>
>>75011035
I used to be able to code html+css+ a bit of java but I forgot that shit as soon as i didn't need it anymore for my education.
>>
>>75005121
Lost
>>
>>75004629
DC traffic for cherry blossom festival
>>
File: 1463897287097.png (453KB, 737x515px) Image search: [Google] [Yandex] [Bing]
1463897287097.png
453KB, 737x515px
>>75009698
That man was doing God's work. Geese were a fucking mistake.
>>
>>75010942
At least you didn't make a fool of yourself, also it's not hard to learn
>>
>>75010731
>>75010523
>>75010483
>>
>>75010997
From wikipedia and elsewhere it sounds like it was basically arcane knowledge passed down from person to person, no one could find whoever originally bothered to derive the thing.
>>
>>75010731
The obvious answer is a while loop.


>>75010755
>y = number
y is multiplied by i later (after i has been magic numbered and bit shifted)

>const float
Using const for a value that will never change is just good practice. Also, depending on the language, constant values are treated differently than variables that can change at runtime.
>>
>>75011201

There isn't a single reason you'd avoid using a multiplication operator in lieu of a loop. Ever. It's a shit test.
>>
File: WE WUZ SWANGZ.webm (2MB, 640x640px) Image search: [Google] [Yandex] [Bing]
WE WUZ SWANGZ.webm
2MB, 640x640px
>>
File: image.jpg (322KB, 943x943px) Image search: [Google] [Yandex] [Bing]
image.jpg
322KB, 943x943px
>>74999549
Holy shit, that nigga has some Austin Powers teeth
>>
File: cuck.png (853KB, 960x527px) Image search: [Google] [Yandex] [Bing]
cuck.png
853KB, 960x527px
>>74999549
>>
>>75010997

According to the wiki article it's a combination of arcane knowledge about deep levels of computer architecture and trial and erroring constants until they found the one that gave the most accurate approximation.
>>
>>75000298
Kek has spoken
>>
>>75007688
Is the joke that it could have been made with a single loop?
>>
>>75011163
To be frank he didn't even want to, the goose staid absolutely immobile the entire time. In the video he is seen breaking near the end but the end (15ft maybe) but that was not enough to spare the Tiananmen Goose
>>
>>75011331
You almost got me to respond again you master baiter
>>
File: angry_screech.jpg (13KB, 540x296px) Image search: [Google] [Yandex] [Bing]
angry_screech.jpg
13KB, 540x296px
>>75008002
Brianna we get that you're a woman but you're taking this "I have no idea how to code" thing too far.
>>
>>75011445

The sqrt function provided by the compiler is usually slow.

>>75011491

:^) I hope you learned something.
>>
Anyone unironically suggesting using for loops hopefully doesn't work with a job that requires programming.
>>
>>75011201
>Python
Ew, gross.
>>
>>75007688
or..

for {i=1; i<b; i++) { a+=a; }

if you really don't want to use the multiplication sign? jeez..
>>
>>75011596
shit i'm messing up languages again.

replace end with brackets around the function and this should be good
>>
>>75011689
imagine, suddenly, b is negative. and your loop is broken.
>>
>>75011077


10^[log(a) + log(b)]
and
a*b

are both valid, but one is clearly simpler
good code =/= valid code
>>
>>75007680
>>
>>75011596
>>75011689

It also doesn't check the size of the inputs. Or have error handling.

>>75011818

Canada strikes again!
>>
File: 1457154139935.png (332KB, 858x725px) Image search: [Google] [Yandex] [Bing]
1457154139935.png
332KB, 858x725px
JUST return 1/(1/a/b); REEEEEEEEEEEEEE
>>
>>75011924
>Suddenly floating point error!
>>
>>74997784
>multiplicative instead of additive
Who is this faggot think he's tricking?

Doing 99% every day is equivalent to doing 99% over the entire year.
>>
File: 1439635580617.png (624KB, 590x1263px) Image search: [Google] [Yandex] [Bing]
1439635580617.png
624KB, 590x1263px
somewhat related i guess
>>
>>75012054

>How do interest formulas work?

You and that guy are on par, apparently.
>>
>>74998206
Haha btfo. I showed off American intelligence. Dumb fuck.
>>
>>75011924
>1/a/b
>(1/a)/b
>>
File: 123.png (44KB, 788x525px) Image search: [Google] [Yandex] [Bing]
123.png
44KB, 788x525px
>>75011596
pic related
>>75011658
suck my dick
>>75011689
>>
>>75012141
>GIB ME MONEY OR UR SEXIST

lol
>>
>>75012372

And they wonder why Notch suddenly went full redpill.
>>
>>75004348
>cuckadoodledooooooooo
>>
>>75005712
What the fuck is that? I can't listen to it.
Can someone tl;dr?
>>
>>75005121
>sides
>orbit
>>
>>75012198
>working is interest
lmao
>>
>>75005121
Yea, that did it.
>>
>>75012697

>He doesn't know the difference between continuous and discreet interest functions.

This is high school level. You should be able to solve this.
>>
Great 2007 /b/ tier bait thread guys.
>>
File: 1439764396668.jpg (153KB, 838x982px) Image search: [Google] [Yandex] [Bing]
1439764396668.jpg
153KB, 838x982px
>>
>>75007680
>potatoe child

The fuck is that thing?!?
>>
>>75012141
Jesus fucking Christ... Society is already over.
>>
>>75007688
I only took CS in high school. She should've used a loop, right?
>>
>>75012440
>Minecons
He saw the hell with his own eyes
>>
>>75012898
Naw mate she should've extended it in excel or something then copy-pasted
>>
>>74998206
the difference is .02. Damn it fellow Amerifats, we need to step it up.
>>
>>75007688
public int Product(int a, int b){
if(a > 0){
return b+product((a-1), b);
} else if (a < 0){
return b-product((a+1), b);
}
return 0;
}
>>
>>75012909

Everyone did.
>>
>>75007688

a/(1/b)

??
>>
File: 1464027336219.png (402KB, 588x598px) Image search: [Google] [Yandex] [Bing]
1464027336219.png
402KB, 588x598px
>>75009698
>>
File: 1457517676183.png (101KB, 250x349px) Image search: [Google] [Yandex] [Bing]
1457517676183.png
101KB, 250x349px
>>
>>75013187
does the compiler turn this into integer multiplication or does it try floating point division?
>>
File: 1462913354741.jpg (298KB, 1404x1024px) Image search: [Google] [Yandex] [Bing]
1462913354741.jpg
298KB, 1404x1024px
>>74997784
Try and prove him wrong faggots
>>
File: 1439845227046.png (432KB, 1304x1818px) Image search: [Google] [Yandex] [Bing]
1439845227046.png
432KB, 1304x1818px
>>75013236

YOU'RE A TRASH HUMAN, PORTUGAL.
YOU'RE TRASH.
>>
>>75013180
He was like God. He created the universe. Then he saw what he created, and it was good.
Then saw what the humans made out of it.
>>
>>75008567
So fucking sad and makes me scared.
I have my first on the way now
>>
>>75013430
If you have 1 set of 1 apples you have 1 apples
>>
>>75011337
this needs sound but manl is that hilariouis
>>
>>75012883
Reminds me of a joke I came up with earlier today.

What do you call a white man in jail?

Diversity.
>>
>>74998206

I know you are not serious, murica.
>>
>>75013505

And then he created the creeper.
>>
>>75012141
What a cunt
>>
File: 1452306181910.jpg (106KB, 451x276px) Image search: [Google] [Yandex] [Bing]
1452306181910.jpg
106KB, 451x276px
>>75013712
>>
I fucked with a girl about trump on tinder had some keks I'll share with you

1
>>
>>75012898
That's the point of the exercise, yes.

>>75013177
Cute.
And at this level, obvious plagiarism.

>>75013187
0/10
Completely unreadable language dependent bullshit cludge. There are better solutions.
>>
>>75013855
damn her bants are fucking horrible lmao. Keep at it ausbro
>>
>>75010259
I KNEW that fucking baby reminded me of something
>>
>>75013855
2
>>
>>75013855
>build a wall and lock you on the other side of it
>locking a wall
kek
>>
>>75008036

I got that much, I just don't understand the application.
>>
>>75009934
1.01^365=37.8
1.00^365=1
0.99^365=0.03
One percent extra vs one percent less
>>
>>75013848
You're missing the point.
>>
>>75013973
damn i bet she uses the word bigot everyday and can't even spell it.
>>
>>74997784


Cool. Ill be 40 bucks richer


That'll make me get in there and wage slave with a fucking smile
>>
>>75013855
They are so easily triggered
>>
>>75013973
bigot only has one g.
>>
this
>>75013236
see this
>>75013447
>>
>>74998206
I bet you're a Trump supporter.
>>
>>75004046
lost hard. thanks leaf
>>
>>75013976
>>75013973
>bot thought the same thing
You two should fug
>>
>>75014037
no i got you. it was funny. I just posted the other image to go with the thread and it had diversity in it.
>>
>>75013973
3
It cut off at the top she just said 'still you'
>>
>>75014033

>He doesn't know which is the "percent" value in an interest formula.

Jesus fucking Christ...
>>
>>75010437
It also doesn't handle 1 * 11, 1 * 0, or 1 * any negative number.
>>
File: 1461987341303.jpg (115KB, 676x1410px) Image search: [Google] [Yandex] [Bing]
1461987341303.jpg
115KB, 676x1410px
>>74998206
American education Amirite?
>>
>>75014143
Alright

>>75014184
ey bby u wan sum fuk?
>>
>>75001902
THIS ISN'T REAL IS IT

IS IT
>>
>>75014227

see

>>75014199

Now wonder the Jews control the US. You motherfuckers are dumb as rocks.
>>
File: AmericanLogic.png (112KB, 877x524px) Image search: [Google] [Yandex] [Bing]
AmericanLogic.png
112KB, 877x524px
>>75014227
>>74998206
>>
>>75013973
you are the hero Dolan Trump deserves
>>
>>75011201
bad spacing on first line (a ,b) -> (a, b)

poor validation, what do you do if b is negative?

no handling of overflows

why would this print the solution instead of returning it

1/10 wouldn't even give an internship.
>>
>>75014184
4
>>
File: 1449466251177.gif (1MB, 396x216px) Image search: [Google] [Yandex] [Bing]
1449466251177.gif
1MB, 396x216px
>>75014184
>mfw every time I get in an argument like this and bust out that "not very tolerant of you" line I get stonewalled immediately.
>>
>>75014024
floating point calculation used to be expensive back in the day.
So imagine if you needed to do inverse square functions for graphics inbetween frame draws (like in the original quake game). You could bitshift it in 1 instruction then subtract from a magic number, bypassing floating point calculations altogether, for a pretty accurate approximation.
>>
>>75013447
good read
>>
>>75014411
I salute you
>>
>>75014411

>you're Australian
YOUR REPUTATION PRECEDES YOU!
>>
>>75014024
Graphics. You need to know the normal of a surface to calculate things like lighting and reflection angles. That's also why a very fast method is preferred to a very accurate method.
>>
>>75014411
DID YOU GO AWAY??
>>
>>75014411
>goodbye
>can't even fucking resist messaging back
>>
>>75014411
5
Last one just her profile for some context
>>
>>74998206
(you)
>>
>>75014184
it's funny, I rarely had women message me on OkStupid until I put on my profile that I hate political correctness and want a partner who isn't a degenerate feminist. Then I got flooded with chicks asking to be hate-fucked, bitches love a strong and independent man
>>
>>75014549
>I picked curves
keep telling that yourself, whale
>>
File: 1460597400090.jpg (827KB, 2404x1260px) Image search: [Google] [Yandex] [Bing]
1460597400090.jpg
827KB, 2404x1260px
>>75001902
>an int is a number without decimal
Why would you state that? Suppose every programmmer should basically know main data types.

Also, those comments.....
>>
File: 1425042318832.jpg (16KB, 320x322px) Image search: [Google] [Yandex] [Bing]
1425042318832.jpg
16KB, 320x322px
>>75014549

>MAN UP AND MESSAGE ME FIRST
>>
>>75014549
She deleted me after that so couldn't even get a sneaky root off her
>>
>>75010203
C'mon helmet head, get it up, nigga!
>>
>>75014668
yeah that shit is infuriating. The dating game is rigged for women.
>>
File: 1439465283537.jpg (304KB, 850x3851px) Image search: [Google] [Yandex] [Bing]
1439465283537.jpg
304KB, 850x3851px
>>
>>75014645
>lifeofabeta.gif
>>
>>75014735
>19
>pregnant
>thinks these are key selling points
>>
File: cuckstravaganza.png (64KB, 668x249px) Image search: [Google] [Yandex] [Bing]
cuckstravaganza.png
64KB, 668x249px
>>
>>75014735
>19*Central Coast*Beautician*39 weeks Pregnant

I'm stumped.
>>
>>75009016
>>75009257
It's not that bad, they're slowly but surely driving off their longtime readers with their bullshit, and even casuals are getting wise to the constant events and reboots.
>>
>>75012884

That's Lord Varys. His only interest is the realm. Show some respect.
>>
>>75012141
>75012141
This is a blatant example of people trying to abuse their victimized status for monetary gain. That's all this horseshit is or ever was.
>>
>>75005623
when's the last time you got cut with a damn paperclip you stupid moron.
>>
>>75014828
I totally thought the Muslim in the last panel was a wizard shooting a lightning bolt at the dog
>>
File: oh god what.jpg (67KB, 500x422px) Image search: [Google] [Yandex] [Bing]
oh god what.jpg
67KB, 500x422px
>>75001902
>emoticons in the comment code
>>
File: image.jpg (45KB, 680x464px) Image search: [Google] [Yandex] [Bing]
image.jpg
45KB, 680x464px
>mfw working through my first Java class reading this thread
>>
>>75014958
>That hair color
RUN MAN
FUCKING RUN
>>
>>75014277
I'd fuck but don't don't expect a marathon from me or anything mate
>>
File: image.jpg (44KB, 600x485px) Image search: [Google] [Yandex] [Bing]
image.jpg
44KB, 600x485px
>>75007493
Is there a screencap of an anon opening his tower he never cleaned and finding a giant network of spider webs in it?
>>
File: CompSci.png (638KB, 4760x4986px) Image search: [Google] [Yandex] [Bing]
CompSci.png
638KB, 4760x4986px
>>75008288
>>
File: huerhuerhuer.png (89KB, 1272x1152px) Image search: [Google] [Yandex] [Bing]
huerhuerhuer.png
89KB, 1272x1152px
>>75005712
>MUH FREEDOM
>MUH FLAG
Everytime
>>
File: alert.jpg (10KB, 187x204px) Image search: [Google] [Yandex] [Bing]
alert.jpg
10KB, 187x204px
>>75014828
>2nd to last panel
>>
>>75012331
why dont you just ask if b<0? are you retarded? your code is so shit im not even trying to see what it does
>>
>>75015652
What the fuck. I guess that's one way to find a prime number...
>>
>>75014958
>publicly 'keeping him in check'
>>
>>75014411


all of my keks
>>
File: TodayISawWeirdShit.gif (4MB, 450x288px) Image search: [Google] [Yandex] [Bing]
TodayISawWeirdShit.gif
4MB, 450x288px
>>75015652
This... has to be a joke. There's no way someone would actually write that and use it.
>>
>>75005712
what the fuck is this
>>
>>75016004
i don't understand any pussy dude who would even enjoy being in a relationship like this.

women are fucking trash, don't let trash control you.
>>
>>75016110
>program encounters a bug
>debugger can't identify it's location
>>
>>75012141
>imma marginalized!!!!
>>
>>75016110
the code is obviously programmatically generated
>>
>>75008288
Reminds me of that sperg from /agdg/ trying to make a game. He was "self taught" and his entire game code was written in one large block within main().
>>
>>75016197
They are pathetic bottom feeders.

They managed to find a manipulative peice of shit, rejected by everyone she actually values, settled for a worthless beta.

Constantly trying to 'correct' him.

As he constnstly try's to play it all away with 'the ol' ball and chain right guys??' type jokes while dieing inside.

Fuck that life brah
>>
>>75001902
I don't even understand coding language and even I can tell the woman has put useless code in there.
>>
>>75016259
kek it would just give you the line number, good luck figuring out where the problem is

>>75016395
I should hope so. But for what purpose?
>>
>>75013447
That's fucking legendary.
>>
File: solution.png (14KB, 851x330px) Image search: [Google] [Yandex] [Bing]
solution.png
14KB, 851x330px
>>75016751
to produce this meme
>>
>>75016574
I'll be honest I've been like that ONCE. I figured out what was happening and dumped her, went solo for years. I was also like 16.

I just don't understand how anyone can go back to it again and again, making the same mistake of getting manipulated by trash, well into their 30s.
>>
>>75014828
Now I want to throw up
Thread replies: 337
Thread images: 86
[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.
If a post contains illegal content, please click on its [Report] button and follow the instructions.
This is a 4chan archive - all of the content originated from them. If you need information for a Poster - you need to contact them.
This website shows only archived content and is not affiliated with 4chan in any way.
If you like this website please support us by donating with Bitcoin at 1XVgDnu36zCj97gLdeSwHMdiJaBkqhtMK