[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]

Why the fuck should I code in Hipster.js?

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: 88
Thread images: 6

File: reeeeeeeeeeeeeeee.png (193KB, 1072x1044px) Image search: [Google]
reeeeeeeeeeeeeeee.png
193KB, 1072x1044px
Why the fuck should I code in Hipster.js?
>>
Why would you use C?

There's literally no point except being elitist.
>>
>>52308763
if you're writing an operating system, it's the top choice.
>>
Why the fuck would you use a language from the 70s, that has evolved next to nothing, with no automatic memory management, lambdas, functional methods like map or reduce, small as fuck standard library that requires you either pull external dependencies or reinvent the wheel for simple things like doing an HTTP request, and used only in low-level situations? Do you like to be unproductive on purpose just to show your epic skills? Even the C creators have moved to Go, ffs.
>>
>>52308470
because C++ exists
>>
>>52308763
C still has fringe use - when you're writing OS, drivers or generally low level stuff. Oh and sometimes for projects to pass a college classes.
>>
>>52308763
It's more fun than C#
>>
>>52308470

You shouldn't, you should be coding in Object Oriented C
>>
He's right though. If you have better options you SHOULD avoid C. There's no point using C in a situation where C++, C#, or even fucking Java is viable.

In other words C is relegated to the embedded programming world.
>>
>>52308894
>second most popular with >16% (poo-in-loo Java monkeys claimed spot #1, expectedly enough)
>"fringe use"
>>
>>52308945
>use bloated C++ even if a clean C program is better
>>
>>52308979
> >16%
[citation needed]
>>
File: most_used_languages.png (32KB, 729x371px) Image search: [Google]
most_used_languages.png
32KB, 729x371px
Here.
>>
>2016
>not writing all your code in java

plebs
>>
> C++
> bloated

pick one
>>
>>52308992
>C
>clean
>>
>>52308763
I wrote a C program for you:
#define l putchar
int main(void) {
return ((((l(1 + (((((1 + (1 + ((((((((((l(1 + (1 + (((1 + (((((1 + ((((1 + ((((((((((((1 +
(((((1 + (l(1 + (1 + (1 + (1 + (1 + (1 + (1 + (((((((1 + ((((((((1 + ((((((((((((1 + (1 +
(((l(l(1 + (1 + (1 + (1 + (1 + (1 + (1 + (1 + ((((((((((((((((1 + ((((((((((1 + (((l(((((
(((((((1 + (((((((((((((l(((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((
(((((((((((1 + (((((1 + ((((((1 + (((1 + ((((((1337) >> 1) - 1) >> 1) >> 1) >> 1)) << 1) >>
1)) << 1) >> 1) << 1) - 1) >> 1)) << 1) >> 1) << 1) >> 1)) << 1) - 1) >> 1) << 1) - 1) >>
1) << 1) >> 1) << 1) - 1) - 1) - 1) - 1) - 1) - 1) - 1) - 1) - 1) - 1) - 1) - 1) - 1) - 1)
- 1) - 1) - 1) - 1) - 1) - 1) - 1) - 1) - 1) - 1) - 1) - 1) - 1) - 1) - 1) - 1) - 1) - 1)
- 1) - 1) - 1) - 1) - 1) - 1) - 1) - 1) - 1) - 1) - 1) - 1) - 1) - 1) - 1) - 1) - 1) - 1)
- 1) - 1) - 1) - 1) - 1) - 1) - 1) - 1) - 1) - 1) - 1) - 1) - 1) - 1) - 1) - 1)) >> 1) <<
1) - 1) - 1) >> 1) << 1) - 1) >> 1) << 1) >> 1) << 1) >> 1)) << 1) >> 1) << 1) - 1) >> 1)
<< 1) >> 1) << 1) >> 1) << 1) - 1)) << 1) >> 1)) << 1) >> 1) << 1) - 1) >> 1) << 1) >> 1)
<< 1) >> 1)) << 1) - 1) - 1) >> 1) << 1) >> 1) << 1) - 1) - 1) >> 1) << 1) >> 1) << 1) - 1)
>> 1))))))))))) << 1) >> 1))) << 1) >> 1) << 1) >> 1) << 1) >> 1) << 1) - 1) - 1) - 1) >>
1)) << 1) >> 1) << 1) - 1) >> 1) << 1) >> 1)) << 1) >> 1) << 1) >> 1) << 1) >> 1))))))))))
<< 1) >> 1) << 1) >> 1)) << 1) >> 1) << 1) >> 1) << 1) >> 1) << 1) - 1) >> 1) << 1) >> 1)
) << 1) - 1) >> 1)) << 1) >> 1) << 1) >> 1)) << 1) >> 1)))) - 1) >> 1) >> 1) >> 1) >> 1) <<
1) >> 1) << 1) >> 1))) << 1) >> 1) << 1) >> 1))) >> 1) >> 1) >> 1) - 1;
}
>>
File: 1452268306831.png (34KB, 729x371px) Image search: [Google]
1452268306831.png
34KB, 729x371px
>>52309007
nice edit
>>
>>52308763
because it's less awful than sepples
>>
>>52308763
Embedded
>>
>>52308992
>clean C program
Maybe if you're writing fizzbuzz programs.
>>
>>52309053 WOW WTF
I have absolutely no idea how C got replaced by C#, I swear to Stallman
>>
>>52309000
http://www.tiobe.com/index.php/content/paperinfo/tpci/index.html
>>
>>52308763
>There's literally no point

There's tons of points
>>
>>52309050
>>52309082
enjoy your horrible sepples syntax and unreadable error messages
>>
>>52309113
It hasn't
http://www.tiobe.com/index.php/content/paperinfo/tpci/index.html
>>
>>52309052
i'm afraid of compiling this, what does it do?
>>
>>52309266
It installs Gentoo.
>>
>>52308855
In your list memory management is the only valid complaint, and a minor one. Everything else is useless noise. So you have your answer: save a few details C is basically the perfect language. Now you know what's up little hipster.
>>
>>52308979

Java is a pretty amazing piece of tech and not at all restricted to poo2loo pajeets.
>>
>>52309334
it's an amazing piece of shit for sure
>>
>>52309313
>abstraction is useless noise

you're right, everything in C is useless noise, assembly is the perfect langauge
>>
>>52308855
performance, simplicity
>>
>>52308855
Do you use TCP? That's literally ancient shit from the 70s.

Everyone kek at this guy for using outdated crap like TCP
>>
>>52308855
Why would you use something like a 3.5mm jack? When was the last time that got revolutionized?

Thank God Apple brings us Thunderbolt now so our phones can get thinner by not using that OLD crap
>>
>writing firmware for a controller using Node.JS
>>
>>52309500
>performance
Nice goal. But engineering is about making tradeoffs. Sometimes you trade a vast increase in developer productivity (= money saved) for a *little* less performance.
>simplicity
C is not simple. You end up having to reinvent the wheel implementing things that are already available in any modern language standard library, like hashes/dictionaries or the example I used, HTTP requests. Or pulling external dependencies. You have to manage the memory manually. That's not simplicity. Just pull any big open source C project and tell me how it's "simple".
>>
>>52309559
breh TCP is a transport protocol, not a programming language
>>
File: moz.png (299KB, 1092x469px) Image search: [Google]
moz.png
299KB, 1092x469px
>>52309599
Well it's not the same, but you already can program microcontrollers using JS. Feels good man, the future is ours.

http://mozopenhard.mozillafactory.org/
>>
I program for embedded devices like atmega32 so the only choices are assembly or C. C is much more user friendly so we use that.
>>
>>52309697
HAHAHAHAHAHHAHAHAHAHAHAHAHAHA
In case you didn't know there's probably C software running under that JS. Get rekt
>>
>>52309733
> C software
It's Firefox OS, which uses the Linux kernel (C) and Firefox (C++). Pure reuse of already written code. C jobs will shrink significantly and C programmers put on suicide watch. The future is bright man.
>>
>>52309743
>C programmers put on suicide watch
There will never, NEVER be a future where C programmers are on suicide watch
>>
>>52309881
They already are. Embedded programming jobs are probably the worse tech jobs.
>>
>>52309939
>Embedded programming jobs are probably the worse tech jobs.
Stop kidding yourself, they're far better paid than JS or PHP programmers because of their shortage
>>
>>52309640
So?

It's from the 70s (that is, antique)
>>
>>52309958
Doesn't surprise me, it's a job nobody sane wants and with a high rate of people that leave burned out.
>>
Will Rust and Swift replace C?
>>
>>52310006
>Doesn't surprise me, it's a job nobody sane wants and with a high rate of people that leave burned out.
No, thats a plain lie. You dont get 'burned out' from learning new things. People cant into C because memory management is unappealing and hard to most, i dont blame them, its confusing. But when you're programming an 8 bit micro, you HAVE to use C, its either that or asm which is far more autistic. And yes, 8 bit micros are still widely used today.

>>52310016
They might if they develop cross compilers to as many architectures as C
>>
>>52309743
Why would a microcontroller run Firefox OS?
>>
>>52310177
To be wasteful ofcourse
Only javascript people are dumb enough to have a full fleged 32 bit ARM computer do the same stuff as an 8 bit microcontroller
>>
>>52310215
wtf can you even do with 8bits?
>>
>>52310237
The same shit you're doing with that 32 bit computer running on firefox OS, blinking LEDs and stuff
>>
>>52309154
>Segmentation Fault
Look, I like C, but I'll be the first to admit that having to run valgrind and gdb every time I want to debug is less than ideal.
>>
File: rabbit.jpg (22KB, 512x384px) Image search: [Google]
rabbit.jpg
22KB, 512x384px
>>52309128
>web searches for
+"<language> programming"

wow, how non-arbitrary
>>
>>52309266
It only prints text. There's no function call in it besides "putchar"
>>
>>52310274
C++ has plenty of plain old "Segmentation fault"s too.
>>
>>52310126
>You dont get 'burned out' from learning new things
But I didn't say that. I said that embedded development burns out. It's tedious and repetitive. That has nothing to do with learning. You can learn new things in any field.

> People cant into C because memory management is unappealing and hard
No, manual memory management is a solved problem. It's not "hard", it's just repetitive and error-prone. A computer is better at those things than humans. It's not that people can't into C, it's that it's a unproductive platform where producing significant programs with a minimum of complexity takes orders of magnitude more effort to get the same results than a higher level language. When C is not the only option, choosing it is retarded. Not everything is an 8-bit micro, you know.
>>
>>52310780
Really not as much. It's actually very easy to get rid of segfaults by using only the STL.
>>
>>52309996
But TCP is shit.
>>
>>52312216
What's better?
>>
Hello, Reddit!

https://www.reddit.com/r/programming/comments/400v0b/how_to_c_as_of_2016/
>>
>>52311052
>A computer is better at those things than humans.
Not even close.
>it's that it's a unproductive platform where producing significant programs with a minimum of complexity takes orders of magnitude more effort to get the same results than a higher level language.
[citation needed]
>>
>>52312835
>Not even close.
AHAHAHAHAHAHAHAHAHAHAHA. How's a human better at memory management than, for example, the automatic reference counting that Swift and Rust have, basically inserting a free() for you when your variables go out of scope? Please illustrate me. And I didn't even mention safe memory access that prevents buffer overflows. Check a CVE database for the effects in security that obsolete languages like C have.
>[citation needed]
No citation needed, this is something anyone that has written more than a FizzBuzz knows. Of course you don't.
>>
>>52308470
>The first rule of C is don't write C if you can avoid it.

He is right. C is a systems programming language. Using C for a desktop or server application is almost never a good idea. I wouldn't start a new project in C unless it were a kernel module or driver or other very low-level task.
>>
>>52313048
To be fair, I'd say the exact same thing about Java. It's not that using it is terrible; it's just that there are almost always better alternatives.
>>
>>52309881
Only if someone makes a low/mid level language that's better than C.
>>
Who would you write C in 2016 when you have Rust?
>>
>>52314025

Because there's Ada.
>>
>>52314025
Why would you write in Rust when you can just kill yourself, you harmful cockgoblin.
>>
>>52309614
> You end up having to reinvent the wheel implementing things
>like hashes/dictionaries
C has libraries too you fucking mongoloid.
>Just pull any big open source C project and tell me how it's "simple".
Just pull any big project in any language and it's most likely complex that's not C exclusive feature.
>>
It's really easy to use C library in other languages.
It's really hard to use C++ library in other language.
>>
I only program in Dreammaker because I'm not a faggot.
>>
>don't use C
>just use these crossplatform VMs and libraries and this scripting language
>all of which are implemented in C
>>
>>52313031
On the top of my head: you may want to keep some allocated memory for a predictable future use instead of freeing it every time, this will saves some allocations and can be substantially more efficient.
>>
File: ok.jpg (295KB, 1920x1050px) Image search: [Google]
ok.jpg
295KB, 1920x1050px
>>52309308
>>52310762
>>52309266
>>52309052
why don't you just try
>>
>>52314993
woah that jpg quality really sucks dick
fucking paint
>>
>>52314993
isnt this just a bunch of bitwise shifting or whatever
>>
>>52315040
yes
and addition and substraction
>>
>>52314736
Perfectly possible with ref counting.

>>52314269
So you need external libraries for basic data structures. What a great language!
>>
>>52314445
And operating system kernels use assembler in a lot of places. Should we use assembly for everything too?
>>
>>52315212
You're an idiot.
>>
>>52315161
>Perfectly possible with ref counting.
I'd guess that you could add one more ref to keep the memory allocated but that's just adding more bloat to in order to optimize code, which kind of defeats the point.
>>
>>52314993
>Gay porn videos
>>
>>52308470
>no one here writes in superior D
>>
>>52313031
>How's a human better at memory management than, for example, the automatic reference counting that Swift and Rust have, basically inserting a free() for you when your variables go out of scope?
Not inserting any free's at all because the human has realized when they can reuse existing memory, or if a free() is practically useless (i.e a space / time tradeoff)
>No citation needed, this is something anyone that has written more than a FizzBuzz knows
Because there is no empirical evidence on the matter, i.e pulling shit out of your ass.
>>
>>52315161
>So you need external libraries for basic data structures.
Yes?
That's the case for any non-trivial project in any language - no standard libraries is enough when you have specific needs.
>>
>>52308855
Look at this geriatric faggot posting from a computer, doesn't he know that iPads are the future?
Thread posts: 88
Thread images: 6


[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.