Why should I learn C++ if I'm not a computer scientist?

Why should I learn C++ if I'm not a computer scientist?

Other urls found in this thread:

greenteapress.com/thinkpython2/thinkpython2.pdf
tour.golang.org
twitter.com/NSFWRedditGif

what course?

> Why should I learn C++ if I'm not a computer scientist?

There isn't any. Go with a higher level language if you just want to fuck around

The Creator of C++, Bjarne Stroustrup has the PHENOTYPE.

None whatsoever. Learn Python or Perl and save yourself the headache.

If you think about it, you can't create a programming language, you can only discover one.

/r/ing that pic of a letter where that guy explains why c and all variants of c are complete and utter shit and why he will never hire someone who uses c/c++

>treats applied cs (which is already applied math) like pure math

Learn python with the free book "Think Python 2e" from here : greenteapress.com/thinkpython2/thinkpython2.pdf

There's barely any reason to learn C++ if you are a computer scientist

meche here user and they only taught me matlab in undergrad. The fucked up thing is they use mostly c++ for fluid simulations because its faster. Even the professors here look for students with a c++ background when all teach is Matlab.

Now I know what it feels like to be oppressed when my own fucking school curricula is against me

I'm right, coding in C++ (for example) would still work if no one knew about it.

>csfag here.
My friends in other majors always ask me this.I think there are various reasons to. Also I'm assuming you may be pursuing a career in a scientific field.

Benefits:
>It would look terrific on your resume ,it so happens that many people in a scientific field with good programming skills in fundamental languages end up in high paid software jobs.
>Fastest Compiled All-Around Programming
Language.
>Used in all computer related field.
> You will be able to understand other language easier.
>If you are into simulation software and you want to use its API knowing C++ will help.
>If you are into competitive programming,it would also be good.
>You will make shit-tier languages devs envious of you.
>You will end up learning a lot about computers.(which is probably a bad thing for most people)
>Most professional and polished set of libraries to use.
>Very good libraries for anything graphics related.

Cons:
>Very steep learning curve.
> Time consuming.
> C++ offers you too many ways to do things.(for programmers this is often a bad thing,because one ends up having to learn all of them in order to read other people's work.)
>Nothing is noob friendly.Specially libraries.
>Increments exponentially verbosity(a lot of keywords).

any good resources to learn C++?
i'm already familiar with C and Java

t. mathfag, if that's relevant

...

ty

>Why should I learn C++ if I'm not a computer scientist?
Because you might be a software engineer.

The saddest thing of all is that you probably pronounce his name BYAR-NEIGH. Fuck you. Fuck you, you fucking illiterate asshole. I hope the deepest level of hell is reserved for people like you.

His name is BRAIN. BRAIN Strosstrup

C++ is only useful because it was introduced around the same time cross-platform compiler research went into overdrive

C++ compiler optimization is literally subsidized by US taxpayer money, if other languages had the same amount of support they'd be used just as much

overall it is a mediocre language and the research for numeric computing and compiler optimization formerly done in it is being overhauled by functional languages and provers

the C++ community in general is pretty bland in its thinking and domains and you'll find more interesting projects and individuals among say, the Python folks, Lispers, Haskellers, hardware description engineers, or statistical/scientific language communities

You shouldn't learn C++ even if you are. It's useless.

Calm down, sperglord.

>Perl
>Save yourself headache

Python is pretty good if you want to avoid most of the retardation that is computer scientists, such as numbers that don't work like numbers, and division by 0.0 being Infinity, but it's still a procedural language, making it useless if you're a mathfag and not a physicsfag.

Please this. C hate makes me aroused.

>would still work
No it wouldn't. A language doesn't work unless it's implemented. What you're saying could apply to anything that is created, including human language.

hi, someone over 18 with an actual career in software engineering

if you're programming for embedded systems or shit with high performance requirements C/C++/assembly is the way to go

if you're programming high level games/apps use C#/Java

if you're a fucking loser piece of shit that will never actually earn money writing software use anything else.

What about python

I use C# instead of python for quick things.

You can compile c# without installing anything on windows, and on Linux/mac just by installing mono.

on windows do:
set X=%CD%
cd "C:\Windows\Microsoft.NET\Framework64\v4.0*\"
csc -out:%X%\my.exe %X%\\*.cs > NUL

Python is slow as shit. In an intense calculation project, just switching from Python to C (keeping the same algorithms) got me from 8 hours down to 15 minutes (3 minutes with pthreads). All the abstraction bullshit in Python kills any possibility of optimized compiling or efficient cache usage. This language is a crime.

>ignoring the entire scientific computing industry
lol goes to show why you're a code monkey with a superiority complex

Who would do that? Just go on the internet and tell lies?
Also you've clearly never done any machine learning.

learn Go (golang): tour.golang.org

>you've clearly never done any machine learning
This relates to Python being a piece of shit in that...?

C# is the patrician choice

CSers don't learn C++, its far too difficult for them.

in that python isn't a piece of shit and is widely used by machine learning students as well as in industry

this

There was a time when aether existed, another one when bloodletting was an efficient treatment and another one when all infinities were equivalent. Today, there is a time when high-level OOP languages are a good idea. What's your point?

thanks for confirming your sub 80 IQ

not hearing you suggest shit, bitch

what is there to suggest? your post is myopic and delusional. if i would suggest anything to you it would be to get your head out of your ass and get some perspective.

so yeah, you're just hilariously stupid and arguing with anonymous on the internet

>The fucked up thing is they use mostly c++ for fluid simulations because its faster.

no they don't. most CFD stuff is written in FORTRAN

no u

Ignore anything negative anyone says about C++. Anyone who thinks it's a shit language just doesn't know it. It is the best programming language because you can program in every programming language paradigm, from the metal all the way up to functional or even declarative paradigms using template metaprogramming

C++ is by far the best language for writing heavily optimized code, yet even significantly better than C with the help of template metaprogramming. This is undisputed by anyone who knows what they fuck they're talking about

C++ is the best language. That being said, it is hard to learn to be a good programmer, and it takes a very long time to not be shit at it. You can shoot yourself in the foot multiple times at once, and you can accidentally shoot yourself in the face when you try to dig the bullets out. But you can also shoot a bulls eye on the other side of the world if you want to, once you get good at handling the weapon

God speed user

Note, I am a professional C++ programmer specializing in low level highly optimized libraries, and a good percentage of your computers are running software I work on right now.

because you can code cool things with it

C++ is garbage, you should learn C.

And thank you for confirming Pythonlets' lack of arguments.

got em

all languages are worth learning. java, C++, C#, you shouldn't struggle learning them all. i mean unless you're a languagelet, who only knows english...

I'm a mathematician and i exclusively program in C

When I read posts like this I wonder if the poster boasts about being capable of rephrasing what some edgelord said or if he truly doesn't understand that statements are followed by arguments. Either way this is way to fucking brainlet for Veeky Forums get off this board, you dense fuck.

I think a legitimate, massive sociological issue we will have to soon face as a society in a more concrete way, is the fact that too many people do indeed do what you just said - repeat things they heard without understanding it, and quite frankly without much personal conviction. If you question these people on the beliefs they profess and the actions they claim to support as a result of these beliefs, their explanations are often thin and if you get too serious with them they will say "stop getting so emotional" or "calm down it's just politics" as if these statements don't have serious consequences for the world as a whole

People fall for concepts like political trolling "hurr jewz" because they want to be a part of the in-group on Veeky Forums, then the in-group gets bigger, then people who actually think that think their views are supported and they start taking them more seriously. I believe these cycles of people holding their tongue against intolerable behavior is what has caused countless human rights atrocities throughout the years

Anyway C++ is a God level language, unparalleled.

The only reason python is used by machine learning student (and hence in industry) is because most people mathematically capable of actually working with machine learning are typically mathematicans or physicist. Said professions are inbred and/or computationally illiterate enough to approve of python as language. Python is honestly shit in most aspects. I have no clue why people regard it as easy when C++ is just as easy if you restrict yourself to some subset of it or C is equally easy.

I agree with every single statement you made and have nothing further to add. Thank you :)

how to spot an undergrad: the post

I'm MSc in Physics with heavy focus on machine learning, fuck off

>physics
>doesn't understand design of programming languages, why an interpreted language would be beneficial over compiled languages, and that things like extensive and useful libraries contribute to the quality of a language
way to play into the "inbred" and "computationally illiterate" stereotype you made up, faggot

t. comp sci phd with focus in machine learning

way to argue about literally bullshit instead of making money off an interface package between abstract machine learning and efficient programming languages

0 degrees but make more in a day than both of you will in a year

There's not a single argument here. I'm BSc compsci and I have not made a single inbred or illiterate statement. Interpreted languages are good for prototyping or creating software which need not be performant. Machine learning is computationally expensive and I know you know this which leaves me clueless as to why you consider python fit for machine learning.

This

I work closely with a large array of machine learning peeps at my work, some are PhD physicists. They don't know how to program and the managers and programmers sometimes poke fun at them.

They can code up solutions, they can write programs that do what they want. But they can't engineer high quality, scalable programs that could actually be deployed on backend servers, for instance, and their programs are often slow because of everything from minor programming mistakes to general massive design flaws and recomputation of already computed shit that they could have cached, things like that.

It's not a big issue because they're way smarter in a much harder us in ML, but they just can't program for shit. I wish they'd get a CS refresher at my work, honestly spending 2-3 months on basic performance based programming techniques but I guess they have higher priority data crunching work to do

because python isn't slow enough for literally anyone to give an iota of a shit
the "python is slow" meme applies in embeded environments or when you're working at optimizing low-level processes, which python is obviously not built for
when doing mathematics and for other high-abstraction applications python does just fine

of course you're going to say there's no argument here either, because you're a fucking undergrad and you think you know everything because you heard some loudmouth on an imageboard say you should use ANSI C for everything

uh ok, go enjoy your money then why are you shitposting here?

At this post you did make arguments.

Python is slow in comparison to other languages in non-embedded environments or even when not working at optimizing low-level processes. Python gained momentum for it's simplicity in comparison languages present at the time of Pythons birth.

>python does just fine
With respect to what and in comparison to what?

>of course you're going to say there's no argument here either, because you're a fucking undergrad and you think you know everything because you heard some loudmouth on an imageboard say you should use ANSI C for everything
I've been coding C++ since I was a kid long before I heard of Veeky Forums and I already said truthfully that I'm MSc physics. You are just making stuff up to now. Get a grip.

>money satisfies every desire in life

Is that pic the episode where some Godlike being traps them in some ethical experiment to see if they try to escape? And riker and the other dude transported into another ship and it was some weird maze. That was one of the most disturbing

Not him. Do you know why people use python? Because it doesn't fucking matter if it slow.
When you're working with scientific computation, you're using these libraries:
NumPy. Written in C, has Python API.
SciPy. Written in C, has Python API.
Pandas. Written in C, has Python API.
Scikit Learn. Written in C++, has Python API.
Tensorflow. Written in C++, has Python API.
OpenCV. Written in C++, has Python API.


Python is just a quick, readable, convenient way to express your idea, write a list of statements. Your computation is done in other languages, and they are fast.

>C++ is just as easy
my_vector = [[42], [42]]

vs

std::vector> my_vector = { {42}, {42}};

And shit like this, everywhere. It is so annoying, so time consuming, so unnecessary.

Also, pic related.

if im an EE looking to work either in power or circuit design or something, which language should i learn? python with its libraries?

No. Definitely something low-level. Most of that stuff is written in C and C++, but C being a majority.

So anons on Veeky Forums won't make fun of you.

Yarna.

Via Ada, a long time back.

I think you're being highly disingenuous otherwise.

Writing in C++ like it's C is more comfortable than writing in C.

PhD in numerical physics here.
Know the difference between compiler and interpreter or go fuck ducks.
Know that an interpreter can call compiled code or just shut your fucking faggot's mouth.

The only language a self-respecting intelligent person should learn is Rust, if you do not care about getting stuff done then you should go with Haskell or Idris.

basically. there's a hell of a lot more to language than just 'discovering' the grammar.

The only reason i can think of is if you're in a field that might require processing large amounts of in-memory data in not-so-predictable ways. As a general purpose language, c++ is usually closer to the hardware than a lot of alternatives, so learning how to write it properly can provide huge advantages. On the other hand, you face other huge disadvantages. For the most part, if you don't know why you'd need it, you probably don't, especially when other languages are much better now than they used to be.

>implying computer scientists use C++

top kek my friend

>implying computer scientists program at all

Thanks, user!

Your statement is technically correct but pointless

Also by the creator, but shorter
This is the one I own and I like it

Why should you learn any programming language if you are not a computer scientist?

Are you a wizard casting spells?

Considering most CS majors end up developing sites with Javascript and PHP, no, I don't think you'll need to use C++. Python will do what most small/part time coders-scripters will need to get done.

>Cuck Science

Because it's a programming language that has a metric fuck ton of derivatives.

t. python """"""programmer""""""

Me:
> I have no clue why people regard it as easy when C++ is just as easy if you restrict yourself to some subset of it or C is equally easy.
You:
>Post picture of difficult subset of C++ making use of semantics not even possible in Python

You can often produce semantically equivalent stuff in python in less keystrokes (as you illustrated). If less keystrokes for semantically equivalent code is synonymous with easy, then I'd say C++ is more difficult than Python. But I don't think that's what make a language easy. It is not difficult or hard to type more, it is more tedious. C++ is occasionally tedious because you are explicit about what datatypes you use, which makes debugging and profiling easier. It's not unnecessary, especially not for scientific computations.

C++ is difficult when you do for example template metaprogramming. If you restrict yourself to a subset of C++ similar to that of Python then C++ is not difficult.

Ask and you shall receive, Veeky Forumsdudes.

rustfag detected

I don't, I'm half Danish
Don't sperg out so much man

I once had a dream where Bjarne walked past me. Naturally, I was starstruck. I turned around and rushed to him, hugging him. But he pushed me away and cursed at me.

Why even live when I will never feel the love of Bjarne

>division by 0.0 being Infinity
>I don't understand IEEE 754: the post

>ablooblooblooo hard problems are hard

C+VHDL master race

>being this much of a pleb

kek, hackernews filled with cucks as always.

Well, with that reasoning, all languages are equally easy. Except, maybe, Haskell.

C++ has man quirks and harder syntax. You have to always think about your data types, you write significantly more code. Sure, it's not that much more if you write a hello world, but if you program is 1000+ lines in Python, C++ would be like at least twice longer. And all of that makes it harder. You just can't produce result in C++ as quick as you do it in Python.
Also
>manual memory management

>read many books on C++
>make projects in C++
>realize spending time not shooting myself in the foot and keeping up on all the billion features C++ has now is a waste of time
>program only in scratch now

U too will be ascended someday user