bottom text
how to learn c plus plus
- 61
- 11
Top Poster of the Day:
Thirtythirst4sissies
Current Registered Users: 28,731
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.
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.
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.
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.
xhe's trans too
Jump in the discussion.
No email address required.
Jump in the discussion.
No email address required.
More options
Context
@paparia call me. I know how to handle a pointer
https://www.debian.org/contact
Jump in the discussion.
No email address required.
More options
Context
More options
Context
Jump in the discussion.
No email address required.
More options
Context
More options
Context
Jump in the discussion.
No email address required.
More options
Context
More options
Context
More options
Context
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.
Gay. Same energy as skateboarding with ankle pads
Jump in the discussion.
No email address required.
More options
Context
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.
Java?
Jump in the discussion.
No email address required.
Sadly 😭
Jump in the discussion.
No email address required.
More options
Context
More options
Context
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
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
Retarf
Jump in the discussion.
No email address required.
More options
Context
More options
Context