[Boards: 3 / a / aco / adv / an / asp / b / bant / biz / c / can / cgl / ck / cm / co / cock / d / diy / e / fa / fap / fit / fitlit / g / gd / gif / h / hc / his / hm / hr / i / ic / int / jp / k / lgbt / lit / m / mlp / mlpol / mo / mtv / mu / n / news / o / out / outsoc / p / po / pol / qa / qst / r / r9k / s / s4s / sci / soc / sp / spa / t / tg / toy / trash / trv / tv / u / v / vg / vint / vip / vp / vr / w / wg / wsg / wsr / x / y ] [Search | Free Show | Home]

is fizzbuzz supposed to be hard or is it just a meme?

This is a blue board which means that it's for everybody (Safe For Work content only). If you see any adult content, please report it.

Thread replies: 29
Thread images: 2

File: fizzbuzz.jpg (210KB, 2181x1237px) Image search: [Google]
fizzbuzz.jpg
210KB, 2181x1237px
is fizzbuzz supposed to be hard or is it just a meme?
>>
It's there to weed out people who can't even do basic programming.
>>
>>60683831
as someone who does scratch for fun in their spare time, what real languages should I pick up?
>>
>>60683862
You should learn x86 assembly, learn how to program like a real man.
>>
>>60683862
HolyC
>>
>>60683862
C++, #C, Java and PHP(MySQL too, even if it isn't really programming) are your best bets for emloyment.

If you want fun, well, I'm not you. I like Rust and it might even be useful in the future but who knows.

Anyhow if you know how to program, you can do it in any language. If you want to program well, do shit on low level with C, for example.
>>
>>60683813
You do realise you fail the interview if you use modulo right?

The whole point is to demonstrate that you don't need mod operations to fizzbuzz.
>>
>>60684070
This is not true
>>
>>60684070
Implying you're even employed
>>
>>60683831
Why the fuck are these people even applying in the first place? There must be thousands of fizzbuzzing autist /g/ NEETs who don't get work because their application gets lost in the sea of these fucktards.
>>
>>60684019
Python
>>
>>60684070
>failing the interview for using the language properly
> trying to impress people by doing things the hard way

kek.
>>
>>60684133
Remember that chad who never did anything himself in Uni but still got his papers?

Yeah he'll want a job which fits his new title as a software engineer just like anyone else who graduated.
>>
>>60684070
So uh, the fuck do you want to do?

Divide the number, then cut it to the decimal separator using string operations and compare that to the uncut number to see if 6.3333 == 6?

Noice!
>>
>PhD in FizzBuzz
>Any job I want
>$300k starting
>>
>>60684186
you don't need modulo if they are integers. if this wasn't the first thing you thought of then it is clear you will never get a job as a code artisan.

You couldn't even get a job as a janitor on 4chan
>>
>>60684019
>even if it isn't really programming
SQL is programming. Why the fuck do people think it isn't? You shouldn't be so dismissive of it. I've always found that the people who understand SQL tend to structure their programs in a very organized way because they understand that embracing data and not treating tables like they're object serializations lets you create smarter data structures that can let you make stupidly easy code in whatever language they're using. A single field can replace dozens of lines of shitty, unneeded code and when they need an aggregation, they don't go off reinventing the wheel with whatever language they're using - they use a goddamn group by.
>>
>>60683813
>Is FizzBuzz supposed to be hard?
If you have to ask, programming is not for you.
>>
>>60684215
So, how without modulo?

While number > 0, subtract number, and after that check if the number's negative?
>>
>>60684250
Because it's different from programming.

Calling it not programming doesn't make knowing SQL any less valuable. It's just a different skill - why are you so touchy about it?

You can also make programs redundant by designing hardware implementations - that isn't programming either, but it's still a very valuable skill.
>>
>>60684312
Of course SQL is programming you Neanderthal. I take it daddy didn't love you enough to show you any declarative languages in your formative years?
>>
>>60684312
>it's different from programming
No it's not. It is programming. It's a kind of programming. Fuck you're dense.
>>
>>60683878
I learned armv7 assembly this semester.

I have a very love/hate relationship with that language
>>
File: fizzbuzz2.jpg (103KB, 1143x891px) Image search: [Google]
fizzbuzz2.jpg
103KB, 1143x891px
>>60684070
so will this get me a job?
>>
>>60684470
Next you'll call HTML programming on this thread.

While laughing at anyone calling HTML programming elsewhere.
>>
>>60684144
The "hard way" is often the more performant way. Mod is expensive.

I don't doubt that some shite firms will accept any old fizzbuzz, but if you were interviewing where I work and it contained a modulo, I'd ask you to re-write it without one. If you couldn't, you wouldn't get the job.
>>
>>60684019
How does doing low-level shit in C differ from low-level shit in C++?

Not shitting or anything, just curious. I always assumed that the low level aspects of both languages are where they're the most similar.
>>
>>60684688
I don't know if you're trolling but mod or division by a constant are relatively cheap, see https://godbolt.org/g/n4Kcgl for example (that's 2 cycles avg on modern processors if you're doing it over and over)

But let's pretend there was an idiv there. Printing to the screen is going to absolutely drown it. Even if it takes 20 cycles it will proceed in parallel with he rest of the shit, much before you've started writing something to the output buffer.

A single L3 cache miss is 10x more expensive than 10 modules.

If somebody told me "mod is not efficient" I'd search for work elsewhere.
>>
>>60684518
you might not want to show your employer pic related, using a learning app for children to show your competence will backfire

at least write that into notepad++/sublime
to look more professional
Thread posts: 29
Thread images: 2


[Boards: 3 / a / aco / adv / an / asp / b / bant / biz / c / can / cgl / ck / cm / co / cock / d / diy / e / fa / fap / fit / fitlit / g / gd / gif / h / hc / his / hm / hr / i / ic / int / jp / k / lgbt / lit / m / mlp / mlpol / mo / mtv / mu / n / news / o / out / outsoc / p / po / pol / qa / qst / r / r9k / s / s4s / sci / soc / sp / spa / t / tg / toy / trash / trv / tv / u / v / vg / vint / vip / vp / vr / w / wg / wsg / wsr / x / y] [Search | Top | Home]

I'm aware that Imgur.com will stop allowing adult images since 15th of May. I'm taking actions to backup as much data as possible.
Read more on this topic here - https://archived.moe/talk/thread/1694/


If you need a post removed click on it's [Report] button and follow the instruction.
DMCA Content Takedown via dmca.com
All images are hosted on imgur.com.
If you like this website please support us by donating with Bitcoins at 16mKtbZiwW52BLkibtCr8jUg2KVUMTxVQ5
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 content originated from that site.
This means that RandomArchive shows their content, archived.
If you need information for a Poster - contact them.