[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 / qst / r / r9k / s / s4s / sci / soc / sp / t / tg / toy / trash / trv / tv / u / v / vg / vip /vp / vr / w / wg / wsg / wsr / x / y ] [Search | Home]
4Archive logo
>school assignment to recursively solve problem
If images are not shown try to refresh the page. If you like this website, please disable any AdBlock software!

You are currently reading a thread in /r9k/ - ROBOT9001

Thread replies: 17
Thread images: 2
File: 1453410336520.jpg (304 KB, 1280x1274) Image search: [iqdb] [SauceNao] [Google]
1453410336520.jpg
304 KB, 1280x1274
>school assignment to recursively solve problem
>any language you want
>friend dares me to do it in javascript
>ok
>the last 15 hours I've been screaming and crying about why my code gets thrown into infinite for loops
>realize that javascript has no sense of scope, every variable is global
>have to take a zero on assignment tomorrow
>homework is 50% of the grade in that class
>this means I don't get to graduate this year and have another year of this shit
what's the quickest way to kill yourself
>>
>>26266126
That sucks, man.
Are you sure you can't do anything about it?
>>
>>26266126
1, assignment 50% of your grade, cool story bro
>>
>>26266126
>Not killing off loops
>Not using 'if'

Fuck its been too long since I fucked around with javascript

go ask
>>>/g/
>>
>>26266126
> >realize that javascript has no sense of scope, every variable is global
What? Do you ever know about the 'var' keyword?

Anyway, get rekt. You totally deserved it.
>>
>>26266126
But anon, JS has scope. What's the question?
>>
>>26266126
retarded ?
just write the correct code down then

why didnt you just copy it in the first place btw ? take it sleazy
>>
>>26266784
this guy knows what's up
anyway if you're doing anything recursive and you aren't using a language that supports tco then you're a fool
enjoy your stack overflow exceptions
>>
>>26266126
Don't give up anon. Switch to a more sensible language you know and redo the assignment that way instead of complaining on Fijian kava brewing boards
>>
File: 1453511185216.png (168 KB, 748x756) Image search: [iqdb] [SauceNao] [Google]
1453511185216.png
168 KB, 748x756
>this is what "computer" "science" majors do at university
>easiest of all STEM majors and yet they still fuck everything up on the regular
>>
why would you purposefully make an assignment worth 50% of your mark more difficult for yourself knowing if you fucked it up it would cost you another year?
>>
>>26266126
Swap to C or C++ and search Stack Overflow for another fucktard who did the same as you.
How cam you not graduate? Talk to the fucking lecturer/whatever about extension/extra credit.
>>
>>26267880
Shit, the only course we had at uni that had javascript was one from the web design program (we have a common first year and then split into focused programs), everyone who had come from a programming background or did well in the first two programming courses (python and java respectively) HATED it because JS is so terrible, everyone who barely passed those courses or came from a web dev background loved it because their shitty terrorcode actually worked.

Basically what I'm saying is this isn't normal for comp sci, and that javascript is the fucking devil.
>>
>>26267928
>>26267894
it's a troll post.
first, nobody is so retarded as to spend 15 hours trying to solve a problem in javascript when presumably it would take much less in any other language. second, he could just translate the code
>>
Fuckin' feminists.
>>
>>26267944
javascript is fine you turd burglar
just because people are retarded and don't understand closures or continuation passing doesn't make it a bad language
>>
>>26267944
>>26268100
I second this, if you don't understand it your a retread. Prototypes make shit easy as pie.

PS. Web JS is barely programming
Thread replies: 17
Thread images: 2
Thread DB ID: 496083



[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 / qst / r / r9k / s / s4s / sci / soc / sp / t / tg / toy / trash / trv / tv / u / v / vg / vip /vp / vr / w / wg / wsg / wsr / x / y] [Search | Home]

[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 / qst / r / r9k / s / s4s / sci / soc / sp / t / tg / toy / trash / trv / tv / u / v / vg / vip /vp / vr / w / wg / wsg / wsr / x / y] [Search | 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.
This is a 4chan archive - all of the shown content originated from that site. This means that 4Archive shows their content, archived. If you need information for a Poster - contact them.
If a post contains personal/copyrighted/illegal content, then use the post's [Report] link! If a post is not removed within 24h contact me at [email protected] with the post's information.