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

Refute this. Protip: You can't.

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: 64
Thread images: 8

File: IMG_20170825_011059.png (170KB, 1080x987px) Image search: [Google]
IMG_20170825_011059.png
170KB, 1080x987px
Refute this.

Protip: You can't.
>>
File: 1503371161891.png (429KB, 736x354px)
1503371161891.png
429KB, 736x354px
>>62072076
Now this is shitposting!
>>
>>62072076
Java is a C variant. As much as C#, at least.
>>
>>62072076
Please rephrase that using only objects.
>>
>>62072076
C is very simple to read because the language is small and a simple layer over the most common CPU architectures, immutable leggable animal pattern factories aren't.
>>
>>62072076
You realize like everything is abstracted C?
>>
>>62072268
You might as well code in Haskell faggot.
>>
C is actually easier to read than Java when formatted and written correctly (kernel style).

Python is easiest on the eyes but understanding someone else's code can sometimes be harder than C.
>>
>>62072268
Ha - ha - ha. Nice joke.

Show me easy to read multi threaded C code.
>>
File: 1499989628356.jpg (1MB, 1920x1080px) Image search: [Google]
1499989628356.jpg
1MB, 1920x1080px
>The point of programming languages is to make humans communicate with machines more easily.

This is wrong, the point of programming languages should be to make humans communicate with each other more easily.
>>
>>62072076
>we are talking about programming languages, not politics
Next post is gonna be someone calling OP a jew for saying this.
>>
>>62072372
Pascal is the ultimate language. You can't argue that. It's as powerful as C and doesn't hurt your eyes like C does.
>>
>>62072372
>Python is easiest on the eyes but understanding someone else's code can sometimes be harder than C.

Bad Python code vs bad C code:
It's hard understand both.

Good Python code vs good C code:
Python is easier to understand.
>>
>>62072076

there's nothing to refute, its basically correct
>>
>>62072268
>C is very simple to read because the language is small
C is actually very hard to read depending on the programmer.
>>
>>62072268
>easy to read because it is close to the metal
The point of programming languages is to allow us to build abstract constructs. If your programming language has to be a "small and a simple layer over the most common CPU architectures" then you're probably programming simple controllers, device drivers and low level OS functionality.

Most security issues today are caused by the fact that languages like C being so primitive that doing low level and risky stuff is completely ordinary.

I fucking hate C personally. For every function I write I have to spend an extra lot of time to make sure that all resources are freed properly, in the order in which they were allocated, taking into account all the possible codepaths that exist depending on errors and corner cases. And if I want to reorder allocations I have to also reorder the shit list of gotos at the end of the function used for properly freeing up resources in case anything fails. It's so much maintenance and time wasted reasoning about control flow. Thank God C++ has RAII, I can just encapsulate resources in classes with constructors and deconstructors and use unique pointers and the compiler takes care of all that dirty work. Of course, /g/ babies can't write anything more complex than fizzbuzz and will praise C even in their graves.
>>
>>62072846
I love you
>>
>>62072846
You sound like a CS graduate.
Your brain is already fried on "by the book" learning, you have no creative drive to write C your own way outside of the confines of your coursework.
Stop posting.
>>
>>62072846
i hope you'll never work in the embedded industry cause either you'll do C or directly assembly
>>
>>62072846
C doesn't hold your hand like you're some kind of child, your code is expected to work as it is, it stands by itself. Why would only the manual memory management make you reason about your control flow? You should always do that because those things matter.
In C everything you write is actually important, so obviously you have to make sure it's right. I love the language.
>>
>>62072931
>C doesn't hold your hand like you're some kind of child

Not him, but this is a retarded argument. If that's what you want in a language, program in machine code. What, you need fancy abstractions in C? Fuck you, brainlet.
>>
>>62072846
Are you seriously complaining about memory management?
It's piss easy to write your own init/destroy functions and they're more transparent than whatever C++ gives you.

Here's how to do vectors.
if (s->len == s->limit) /* grow vector */
{
s->limit *= 1.5f;
s->arr = (struct my_type *) realloc(s->arr, sizeof(struct my_type) * s->limit);
}
self->arr[s->len++] = insert;
>>
>>62072076
>he can't program in brainfuck
>>
File: 1502557784285.jpg (7KB, 195x258px) Image search: [Google]
1502557784285.jpg
7KB, 195x258px
>>62072076
>whats the point of using a language as difficult to read as assembly
>rust is the way to go
does not compute
>>
>>62072076
the only language that thing is valid for is brainfuck
>>
>>62072889
I've written loads of C, C++, Python, Java, Haskell, Javascript, GLSL. I've done x86 reverse engineering, toy game engines, graphics, GUIs, GPU computing, neural networks, linux drivers. I know when a tool is right for the job, including C. I am amazed at how good the linux kernel is designed to make C tolerable and how many simple but effective tricks it uses. Let's remember it's created by many many smart and pretentious people over the course of many years. Not everyone has this amount of resources and patience.

>>62072931
>C doesn't hold your hand like you're some kind of child
>You should always do that because those things matter.
Write assembly if you like those so much.
If you have to spend time to reorder some allocations because you have to recheck the control flow and relink gotos properly you are doing something a compiler can do. That's not smart. You're wasting time doing dumb shit, just like people who work 8 hours a day checking spreadsheets instead of having a computer do it in minutes.

>>62073014
Thta's too basic to use as an argument.
>>
you're right i can't

go is pretty alright too, tho
>>
>>62072076
Rust could be the way to go, but I'll wait. It would be helpful if an organization other than Mozilla was sponsoring it, or had a large Rust project that could get a lot of users other than Firefox (Redox doesn't count - it will have fewer users than even desktop Linux does). If Rust could get a big project like that, it would have a much better chance of success commercially.

The problem is essentially that business people are retarded. Since they don't know anything about programming languages, the only way they can judge what to use is by the success or failure of projects already using the language. For Rust, when the examples people can give are an OS that nobody uses and a web browser that's most likely about to implode, zero retarded managers are going to let their developers jump on board the hype train.

Even the more savvy business people are going to have troubles justifying it. Chances are, the companies that would consider using Rust are using C++. For the more savvy manager, the question really comes down to: if the hype train isn't taking off, is there enough of a benefit to using Rust over C++ to warrant retraining current C++ developers, paying a premium for the few Rust developers there are, and the cost of reworking our build systems? The answer is most likely, "no".

If Rust fails, its failure is most likely not going to come from Rust being bad, but from a lack of adoption and not being enough of a step forward from C++. It would be another D.
>>
>>62073112
Companies holding back technology. What a surprise.
>>
>>62072076
Java is more difficult to understand than C and C++
>>
>>62073177
>t. No one, ever.
>>
>>62072076
>I don't even need to explain why C# is bad.
I think you do retard.
>>
>>62072076
Assembly is fast and light.

You use it for things like microprocessors when you're making something simple.
Using something like C/C++ or eve Java would take a lot more resources.
>>
>>62073219
>even java
Kek
>>
>>62073204
I find it much easier to read. I can't understand java code. It looks so long and retarded.
>>
>>62072076
Assembly is fast as fuck.
>>
>>62072076
>What is the point of using a language that is as difficult to read as assembly?
Hyperbole, but even if it was, the point would be it takes less lines to write it in C than it does in assembly.
>The point of programming languages is to make humans communicate with machines more easily.
Sure.
>That is why Java is the most used programming language.
What? That's not the reason why. I'm beginning to think this person doesn't know what they're talking about.
>Rust is the way to go
Rust fans are the CrossFitters of the programming world. Now everything is making sense.
Rust is overly verbose to the point of ugliness. Who cares if it performs well, there is not enough to differentiate it as a language with a purpose. PHP has a purpose, C# has a purpose, C has a purpose, C++ has a purpose, MAGMA has a purpose, and Rust is just Rust. It does nothing significantly different or better than C++. Even the issue of garbage collection is not a problem if you're programming C++ properly and making use of the standard library.
>>
File: IMG_20170825_023418.png (145KB, 940x327px) Image search: [Google]
IMG_20170825_023418.png
145KB, 940x327px
>>62073216
Basically C# is like sucking Microsoft big dick for no reason because it lacks the advantages of using a virtual machine language.
The unique reason for coding in C# are: either you work at Microsoft or you develop for Microsoft products that's everything I can think of.
>>
>>62072931
>C doesn't hold your hand like you're some kind of child
Lol why do you even use a computer? You can do all these computations by hand. It's just holding your hand
>>
>>62073272
jit compilation can be even faster for common workloads
>>
>>62073298
>he is using a pen instead of remember all the digits in his brain
>>
>>62072076
You do realize if everything was written in assembly there'd be no need for meme hardware we have these days? Java and other shit performing languages are Jew's wet dream so they can sell you more expensive hardware every year.
>>
>>62073282
So what's the point of programming languages then?
Be a man and program in binary.
>>
>>62073298
I compute in my brain like I know I usually play FPS's in my head but when I tell people about it my therapist is all "you have violence issues"
>>
>>62073282
Look, I don't even use Rust as a programing language. I use Pascal at my work and x86 assembly. I used to make programs in C and C++(actually visual c++). The thing is that C++ should have deleted all C compatibility and stop being a bloated language. Why do you want low level programing? It I just a meme, there aren't any reasons to use use C or C++ unless you are programming firmware or hardware drivers.

Everything below kernel level should be done in assembly and everything done above kernel level should be done in some high level programming language.
>>
>>62073291
C# is superior to Java.
>>
>>62073314
This
>>
>>62073424
Why? Care to explain?
>>
All C variants are in fact pure cancer.
So I can't disagree w/ the post.
/dpt/ will because they spend their entire unemployed lives writing absolutely nothing of value while imagining that they're linus or some shit.
>>
>>62073507
At least some fucking sense in this thread
>>
Java's not bad as long as you don't arbitrarily break up your code into a million functions. The idea of OOP is to break up code that you'll reuse somewhere else, not break it up and put it elsewhere just because you think a block of code is too long.
>>
>>62073112
You're not going to replace C++ in its niche. It's too well established and too much infrastructure exists around it.

The only reason why JS backends are enjoying popularity is because massive companies threw clout behind frameworks like Node and there were a ton of JS webdevs who figured they could make the leap. It probably won't last in the long run though, as companies find the need for more performance. Node can only compete when it's up against conventional blocking services. Rust doesn't have anything like that, it's one dying meme company and basically C++ lite with no unique demographic to capture. It'll never take over C++, or at least not for a hundred years.
>>
>>62073333
I get the impression you're replying to the wrong post, I didn't say anything about being tough and mentioned that lots of programming languages have purposes.

>>62073416
I wasn't saying C++ was supreme or anything (though it is my favorite).
That being said...
>C++ should have deleted all C compatibility
That is an incredibly dumb recommendation, for many reasons.
>It is just a meme... unless you are programming firmware or hardware drivers.
What experience do you base this on? I work at a very large company, and C++ has a big role in a myriad of different applications. You should stop making such grand claims when you have such a narrow view, unexposed view of the matters you're talking about.
>>
>>62073595
>OOP is to break up code that you'll reuse somewhere else, not break it up and put it elsewhere just because you think a block of code is too long

But Sandi Metz says you shouldn't have methods that are longer than 5 lines: https://robots.thoughtbot.com/sandi-metz-rules-for-developers.
>>
File: 1503292047533.gif (782KB, 303x346px) Image search: [Google]
1503292047533.gif
782KB, 303x346px
>>62072076
>What's the point of using a language that is as difficult to read as assembly?
I don't know, why don't you ask the subhumans that program in Rust?
>>
>>62073670
who
>>
File: 1502218343879.png (408KB, 634x640px) Image search: [Google]
1502218343879.png
408KB, 634x640px
>>62072076
>"performance isn't important guys, we have 32 gigs or ran now xD"
So basically, women and people of non-European descent are incapable of doing what programmers have done for decades and want Rust?

Next, they'll argue that we should write everything in HTML/JS.
>>
>>62074633
it's already hapenning
>>
>>62073670
static class Program{ static void Main(string[] args){ foreach ( var arg in args){ Console.WriteLine(arg); }}}
>>
>>62072389
#pragma omp parallel for
for (int i = 0; i < 10; i++) {
arr[i] = factorial(i);
}


Just spun up 4 threads and ran a function on each of them, automatically starting the next iteration on a given thread when the first one was done. The only language it's easier in is java, which is
IntStream.range(0, 10).parallel().map(factorial).collect(Collectors.asList());
>>
File: 1503459398356.png (308KB, 413x373px) Image search: [Google]
1503459398356.png
308KB, 413x373px
>>62072076
>Wants easier to understand/write language
pick the clusterfuck of rust
I mean rust is harder than C++ right now (C++20 might change it) with little to no benefit (who the fuck uses it except a few meme companies?)
MORE WINEEEEEEEEEEEE
>>
>>62072076
>praises Java
>shits on C#
2/10 - Made me reply.
>>
>>62072076
Point programming language is communication between programmers, easy verification,easy creation,modification or addition.
>>
>>62075096
Why multithread if your going to pool ? No async work is useless
Thread posts: 64
Thread images: 8


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