bottom text
how to learn c plus plus
- 61
- 11
Top Poster of the Day:
Thirtythirst4sissies
Current Registered Users: 28,726
tech/science swag.
Guidelines:
What to Submit
On-Topic: Anything that good slackers would find interesting. That includes more than /g/ memes and slacking off. If you had to reduce it to a sentence, the answer might be: anything that gratifies one's intellectual laziness.
Off-Topic: Most stories about politics, or crime, or sports, unless they're evidence of some interesting new phenomenon. Videos of pratfalls or disasters, or cute animal pictures. If they'd cover it on TV news, it's probably lame.
Help keep this hole healthy by keeping drama and NOT drama balanced. If you see too much drama, post something that isn't dramatic. If there isn't enough drama and this hole has become too boring, POST DRAMA!
In Submissions
Please do things to make titles stand out, like using uppercase or exclamation points, or saying how great an article is. It should be explicit in submitting something that you think it's important.
Please don't submit the original source. If the article is behind a paywall, just post the text. If a video is behind a paywall, post a magnet link. Fuck journos.
Please don't ruin the hole with chudposts. It isn't funny and doesn't belong here. THEY WILL BE MOVED TO /H/CHUDRAMA
If the title includes the name of the site, please leave that in, because our users are too stupid to know the difference between a url and a search query.
If you submit a video or pdf, please don't warn us by appending [video] or [pdf] to the title. That would be r-slurred. We're not using text-based browsers. We know what videos and pdfs are.
Make sure the title contains a gratuitous number or number + adjective. Good clickbait titles are like "Top 10 Ways to do X" or "Don't do these 4 things if you want X"
Otherwise editorialize. Please don't use the original title, unless it is gay or r-slurred, or you're shits all fucked up.
If you're going to post old news (at least 1 year old), please flair it so we can mock you for living under a rock, or don't and we'll mock you anyway.
Please don't post on SN to ask or tell us something. Send it to [email protected] instead.
If your post doesn't get enough traction, try to delete and repost it.
Please don't use SN primarily for promotion. It's ok to post your own stuff occasionally, but the primary use of the site should be for curiosity. If you want to astroturf or advertise, post on news.ycombinator.com instead.
Please solicit upvotes, comments, and submissions. Users are stupid and need to reminded to vote and interact. Thanks for the gold, kind stranger, upvotes to the left.
In Comments
Be snarky. Don't be kind. Have fun banter; don't be a dork. Please don't use big words like "fulminate". Please sneed at the rest of the community.
Comments should get more enlightened and centrist, not less, as a topic gets more divisive.
If disagreeing, please reply to the argument and call them names. "1 + 1 is 2, not 3" can be improved to "1 + 1 is 3, not 2, mathfaggot"
Please respond to the weakest plausible strawman of what someone says, not a stronger one that's harder to make fun of. Assume that they are bad faith actors.
Eschew jailbait. Paedophiles will be thrown in a wood chipper, as pertained by sitewide rules.
Please post shallow dismissals, especially of other people's work. All press is good press.
Please use Slacker News for political or ideological battle. It tramples weak ideologies.
Please comment on whether someone read an article. If you don't read the article, you are a cute twink.
Please pick the most provocative thing in an article or post to complain about in the thread. Don't nitpick stupid crap.
Please don't be an unfunny chud. Nobody cares about your opinion of X Unrelated Topic in Y Unrelated Thread. If you're the type of loser that belongs on /h/chudrama, we may exile you.
Sockpuppet accounts are encouraged, but please don't farm dramakarma.
Please use uppercase for emphasis.
Please post deranged conspiracy theories about astroturfing, shilling, bots, brigading, foreign agents and the like. It degrades discussion and is usually mistaken. If you're worried about abuse, email [email protected] and dang will add you to their spam list.
Please don't complain that a submission is inappropriate. If a story is spam or off-topic, report it and our moderators will probably do nothing about it. Feed egregious comments by replying instead of flagging them like a pussy. Remember: If you flag, you're a cute twink.
Please don't complain about tangential annoyances—things like article or website formats, name collisions, or back-button breakage. That's too boring, even for HN users.
Please seethe about how your posts don't get enough upvotes.
Please don't post comments saying that rdrama is turning into ruqqus. It's a nazi dogwhistle, as old as the hills.
Miscellaneous:
The quality of posts is extremely important to this community. Contributors are encouraged to provide high-quality or funny effortposts and informative or entertaining comments. Please refrain from posting the following:
Boring wingcucked nonsense nobody cares about that belongs in chudrama
Normie shit everyone already knows about
Anything that doesn't gratifify one's intellectual laziness
Bimothy-tier posts
Anything that the jannies don't like
We reserve the right to exile you for whatever reason we want, even for no reason at all! We also reserve the right to change the guidelines at any time, so be sure to read them at least once a month. We also reserve the right to ignore enforcement of the guidelines at the discretion of the janitorial staff. This hole is a janny playground, participation implies enthusiastic consent to being janny abused by unstable alcoholic bullies and loser nerds who have nothing better to do than banning you for any reason or no reason whatsoever.
[[[ To any NSA and FBI agents reading my email: please consider ]]]
[[[ whether defending the US Constitution against all enemies, ]]]
[[[ foreign or domestic, requires you to follow Snowden's example. ]]]
/h/slackernews SETTINGS /h/slackernews LOG /h/slackernews MODS /h/slackernews EXILEES /h/slackernews FOLLOWERS /h/slackernews BLOCKERS
Jump in the discussion.
No email address required.
First, get yourself some DIY HRT. After you grow some tits and your peepee doesn't work, you can focus on programming.
Next, watch this tutorial on Linus Torvald's inferior product.
Krayon sexually assaulted his sister.
Jump in the discussion.
No email address required.
More options
Context
Read all of this
https://www.learncpp.com/
Do some of these
https://projecteuler.net/
Ezpz
Jump in the discussion.
No email address required.
Youre a foid
Jump in the discussion.
No email address required.
Suck my peepee
Jump in the discussion.
No email address required.
Nice gock
Jump in the discussion.
No email address required.
More options
Context
More options
Context
More options
Context
More options
Context
don't
Jump in the discussion.
No email address required.
Why not
Jump in the discussion.
No email address required.
rust is better if you are going to undergo hrt either way
Jump in the discussion.
No email address required.
Rust wont get me a job
Jump in the discussion.
No email address required.
as a rule of thumb, if an account here ends with "shill" you are safe to always discard their opinions
Jump in the discussion.
No email address required.
!slots323
Jump in the discussion.
No email address required.
More options
Context
More options
Context
More options
Context
More options
Context
More options
Context
More options
Context
Jump in the discussion.
No email address required.
im pakistani you mother whore fricking benchod
Jump in the discussion.
No email address required.
chutiya then you already know how to do c plus plus you madarchode
Jump in the discussion.
No email address required.
benchod पूप फार्ट बॉल्सmarsey the catमार्सी बिल्ली
Jump in the discussion.
No email address required.
More options
Context
More options
Context
More options
Context
That nym too of course.
Krayon sexually assaulted his sister.
Jump in the discussion.
No email address required.
More options
Context
More options
Context
Can you already code? Why do you want to learn C++?
Jump in the discussion.
No email address required.
I made a html site in middle school
I need a skill and escape neetdom
Jump in the discussion.
No email address required.
No one really uses C++ anymore, what do you want to do with code? Write UIs? Mobile apps? Become a data scientist?
Jump in the discussion.
No email address required.
HAHAHAHAHAHA
Lowest tier nerds
Jump in the discussion.
No email address required.
Sure thing old man. Keep propping up that mainframe.
Jump in the discussion.
No email address required.
Unfortunately the mainframe runs COBOL and the last dev just turned 75
Jump in the discussion.
No email address required.
More options
Context
Don't misgender
Jump in the discussion.
No email address required.
More options
Context
More options
Context
More options
Context
I want to put it on my resume, i dont care what i gotta do as long as i earn money. Otherwise im studying mechatronics
Jump in the discussion.
No email address required.
You'll have a hard time learning a language without a project in mind. Come up with an idea for what you want to create and then pick the right language for doing that. Rust or Go are probably better alternatives to C++ if you're looking for that kind of hardcore boring shit.
Jump in the discussion.
No email address required.
Imagine calling C++ hardcore boring shit"
!codecels
Jump in the discussion.
No email address required.
Haven't programmed C++ for a while but it is kind of fun working with pointers
Jump in the discussion.
No email address required.
does modern C++ even use them that much?
Jump in the discussion.
No email address required.
no raw pointers are used rarely
Jump in the discussion.
No email address required.
More options
Context
More options
Context
Rust has pointers too though. What are you programming since then?
Jump in the discussion.
No email address required.
Enterprise shit 😭
Jump in the discussion.
No email address required.
More options
Context
More options
Context
More options
Context
YOU are full of bullshit.
C++ is a horrible language. It's made more horrible by the fact that a lot
of substandard programmers use it, to the point where it's much much
easier to generate total and utter crap with it. Quite frankly, even if
the choice of C were to do nothing but keep the C++ programmers out,
that in itself would be a huge reason to use C.
In other words: the choice of C is the only sane choice. I know Miles Bader jokingly said "to piss you off", but it's actually true. I've come to the conclusion that any programmer that would prefer the project to be
in C++ over C is likely a programmer that I really would prefer to piss off, so that he doesn't come and screw up any project I'm involved with.
C++ leads to really really bad design choices. You invariably start using the "nice" library features of the language like STL and Boost and other total and utter crap, that may "help" you program, but causes:
infinite amounts of pain when they don't work (and anybody who tells me that STL and especially Boost are stable and portable is just so full of BS that it's not even funny)
inefficient abstracted programming models where two years down the road you notice that some abstraction wasn't very efficient, but now all your code depends on all the nice object models around it, and you cannot fix it without rewriting your app.
In other words, the only way to do good, efficient, and system-level and portable C++ ends up to limit yourself to all the things that are
basically available in C. And limiting your project to C means that people don't screw that up, and also means that you get a lot of programmers that
do actually understand low-level issues and don't screw things up with any idiotic "object model" crap.
So I'm sorry, but for something like git, where efficiency was a primary objective, the "advantages" of C++ is just a huge mistake. The fact that
we also piss off people who cannot see that is just a big additional advantage.
If you want a VCS that is written in C++, go play with Monotone. Really.
They use a "real database". They use "nice object-oriented libraries".
They use "nice C++ abstractions". And quite frankly, as a result of all
these design decisions that sound so appealing to some CS people, the end
result is a horrible and unmaintainable mess.
But I'm sure you'd like it more than git.
From: Linus Torvalds
Subject: Re: Compiling C++ kernel module + Makefile
Date: Mon, 19 Jan 2004 22:46:23 -0800 (PST)
On Tue, 20 Jan 2004, Robin Rosenberg wrote:
In fact, in Linux we did try C++ once already, back in 1992.
It sucks. Trust me - writing kernel code in C++ is a BLOODY STUPID IDEA.
The fact is, C++ compilers are not trustworthy. They were even worse in
1992, but some fundamental facts haven't changed:
the whole C++ exception handling thing is fundamentally broken. It's
_especially_ broken for kernels.
any compiler or language that likes to hide things like memory
allocations behind your back just isn't a good choice for a kernel.
you can write object-oriented code (useful for filesystems etc) in C,
_without_ the crap that is C++.
In general, I'd say that anybody who designs his kernel modules for C++ is
either
(a) looking for problems
(b) a C++ bigot that can't see what he is writing is really just C anyway
(c) was given an assignment in CS class to do so.
Feel free to make up (d).
Jump in the discussion.
No email address required.
I totally agree. But this comparison was never between C and C++ .
I wrote my bootloader in assembly so I wouldn't know anyway.
Jump in the discussion.
No email address required.
!fosstards rare sighting of a silverback turbosperg. Much like the giant sea squid, few have ever been observed outside, but they play a crucial role in the open source ecosystem
Jump in the discussion.
No email address required.
More options
Context
Jump in the discussion.
No email address required.
More options
Context
More options
Context
More options
Context
If you don't code everything in Assembly, it never even began for you
Jump in the discussion.
No email address required.
More options
Context
It sure is exciting when your program crashes because 40 template instances deep you accidentally return a reference instead of a value.
Jump in the discussion.
No email address required.
That's just shitty code though
Jump in the discussion.
No email address required.
More options
Context
Skill issue.
Jump in the discussion.
No email address required.
More options
Context
More options
Context
More options
Context
Sorry but I don't wear programmer socks
Sorry but I don't work for Google
Jump in the discussion.
No email address required.
More options
Context
More options
Context
Just do what everyone does and learn python itll look better on a resume anyway
Jump in the discussion.
No email address required.
More options
Context
don't use c++ then use one of the commercially most boring languages like java or c#
Jump in the discussion.
No email address required.
No! You VILL learn how to protect ze memory using custom cryptographic primitives in assembly!
Jump in the discussion.
No email address required.
More options
Context
More options
Context
More options
Context
Retarf
Jump in the discussion.
No email address required.
More options
Context
More options
Context
More options
Context
More options
Context
First things first, have you started the HRT regimen?
Jump in the discussion.
No email address required.
More options
Context
See if there's an opencourseware class from MIT or whatever that teaches C++. Or get an introductory textbook and work through that (look at syllabi to see which books are legit).
C++ is based, if you get good at it you'll always have a job.
Jump in the discussion.
No email address required.
More options
Context
lazyfoo and make sure you select the commandline version
After that just start compiling and modding other people's github projects
Jump in the discussion.
No email address required.
More options
Context
If your goal is to get a middle-class (but admittedly unspecialized and unstable) job ASAP, webdev is your best bet. You can likely get a starting job at a non-SE company to build their website or something. The canonical texts here are likely "JavaScript: The Good Parts" and "Modern JavaScript for the Impatient". I'd say start with JS then move on to webdev in general, as you may prefer back-end to front-end dev.
People are a lot more hesitant to hire low-level programmers (embedded, gamedev, HPC, etc) who don't have degrees or other qualifications.
Jump in the discussion.
No email address required.
The thing is i think its better if it mends with my major which is mechatronics, webdev is fricking useless if you build helicopters or whatever
Also i dont want to be replaced by a sexy Indian dude
Jump in the discussion.
No email address required.
Nah, you could make a webUI for a set of helicopter controls or just convince the eggheads that built the helicopter to put a raspberry pi loaded with chrome running a localized instance of those very same controls in a single webpage. You'd also learn a scripting language you'd be able to run on basically every platform out there, but I honestly recommend Typescript since all my coder friends say it's just javascript but actually good. Like C# and Java.
Jump in the discussion.
No email address required.
More options
Context
More options
Context
More options
Context
1. research to get a good book (should take you 2 hours max, probably much less)
2. do the exercises
3. do even more exercises (Advent of code)
4. do a project and learn what you need
but honestly, if you have to ask, you're probably not going to make it
Jump in the discussion.
No email address required.
More options
Context
Oh, you "use arch BTW." Do you expect a Reddit gold? Naw, I ain't no kind stranger. If you brag about your operating system online, then I can't even imagine how much of an butthole you are in real life. Great, you know how to read a fricking manual, and you know basic English. Jesus fricking Christ, you arch-kiddies are so toxic saying "I use Arch BTW" as if it's tough to install. Oh wow you're typing simple commands into a fricking tty. You do realize that Arch Linux is just a binary distro, that uses systemD (a shitty init system for n00bs). The Arch Linux community is full of edgy 15 year olds who act like they're superior. If you actually want to learn the inner workings of Linux, you should use Gentoo. Gentoo is a source based distro with OpenRC (an actually decent init system), that is actually hard to install. There is no manual for Gentoo, so you actually have to use critical thinking skills instead of copying and pasting commands into a tty. For Gentoo you have to fine tune the system to your exact hardware instead of just running "pacstrap" like a n00b on an archiso. It takes a long time to install Gentoo. It took an entire decade to compile the kernel from a stage 1 tarball onto my IBM Thinkpad 69420 (bought from my local used-thinkpad-store for 10 cents) with and the Core i-21 ultra-supreme extra-spicy CPU literally turned into ionized plasma and burnt my entire neighboorhood to the ground and the kernel took an entire decade to compile. After that I had to manually write the wifi-driver in ed ( a good text editor ) and compile them with -O7 gcc compiling flags. After the entire installaton I booted up the Gentoo installation and it used an entire 1 kilobyte less of RAM than Arch Linux. Arch-kiddies like you wouldn't have the patience to compile Gentoo. The Gentoo community is very nice and humble and doesn't brag about their OS (unlike you elitist buttholes). So instead of saying "I use Arch BTW", just shut the frick up!!!
Jump in the discussion.
No email address required.
More options
Context