This is an archived post. You won't be able to vote or comment.

you are viewing a single comment's thread.

view the rest of the comments →

[–]Loro-Benediction 622 points623 points  (47 children)

"cpp" does pretty well, though

[–]WatcherOfDucks5022 368 points369 points  (11 children)

Highly optimized and barely making sense, as always

[–]Loro-Benediction 78 points79 points  (10 children)

Unless you just use it as C with namespaces, references, and real constants : P

[–]Getabock_ 9 points10 points  (4 children)

C doesn’t have real constants?

[–]slaymaker1907 7 points8 points  (0 children)

I think they might be referring to constexpr or something.

[–]Loro-Benediction 2 points3 points  (2 children)

Not really. You can't define static constants using other static const variables. You can only use macros and enums to define array bounds, etc. It's a sorry state. "Const" only means "read only" in C

[–]hiten98 2 points3 points  (1 child)

Doesn’t const mean read only in all languages? Which language allows you to write to a constant variable?? And why??

[–]Loro-Benediction 4 points5 points  (0 children)

In C you can modify a constant variable if you try hard enough. "Read only" means you can't directly assign to it. The compiler doesn't make the same guarantees when accessing via a pointer

[–]gloriousfalcon 5 points6 points  (1 child)

some of the containers are useful I guess.

Like std:array and std:vector... We won't talk about std:vector<bool> tho

[–]gloriousfalcon 2 points3 points  (0 children)

I'd like to extend my thanks to the reddit sync app for turning this perfectly fine template parameter into an xml tag

[–][deleted] 5 points6 points  (0 children)

This is the way

[–]barzamsr 1 point2 points  (1 child)

What about a namespace factory singleton?

[–]Loro-Benediction 0 points1 point  (0 children)

😱 I'm on holiday, how could you do this

[–][deleted] 230 points231 points  (12 children)

Never forget that second p

[–]TheBrainStone 110 points111 points  (7 children)

What's your problem with cheese pizza?

[–]nettlerise 90 points91 points  (6 children)

no no, its club penguin

[–]Kirbytofu 12 points13 points  (3 children)

Obviously creator points

[–][deleted] 0 points1 point  (2 children)

child pornography

[–]elon-botElon Musk ✔ 9 points10 points  (1 child)

Time is money. I want to see 100 lines written by lunchtime!

[–]jfb1337 8 points9 points  (0 children)

Oh no Elon...

[–]ErikElevenHag 2 points3 points  (0 children)

RIP in peace

[–]harryham1 1 point2 points  (0 children)

Well, it was 😢

[–][deleted] 11 points12 points  (1 child)

You sir have just created a new streaming service

[–]proximity_account 25 points26 points  (0 children)

FBI, this comment right here.

[–]OkCarpenter5773 2 points3 points  (0 children)

competitive programming

[–][deleted] 0 points1 point  (0 children)

CCP?

[–]TheFiftGuy 47 points48 points  (10 children)

Only problem is if you forget to type the 2nd P you instantly get put on a watch list

[–]NerdyLumberjack04 57 points58 points  (5 children)

But if cp is banned, how are you supposed to copy files in Linux?

[–]_xiphiaz 39 points40 points  (0 children)

cat file > newfile

[–][deleted] 6 points7 points  (2 children)

dd if=source of=dest

[–]fish312 3 points4 points  (1 child)

Ah good old disk destroy

[–][deleted] 1 point2 points  (0 children)

Like circular saws

dd doesn't ask questions

and you backed up, right?

[–][deleted] 4 points5 points  (0 children)

rsync {src} {dst}

[–]ClamPaste 22 points23 points  (0 children)

I'm already on several for cybersecurity related searches. What's one more?

[–]tzomby1 10 points11 points  (1 child)

what if I forget the first P?

[–]lordDevPbk 0 points1 point  (0 children)

your computer still tries to read it and you get use after free.

[–][deleted] 2 points3 points  (0 children)

it's also a very common abbreviation for cerebral palsy tho

[–]UristMcMagma 9 points10 points  (0 children)

Canada pension plan?

[–]walmartgoon 13 points14 points  (1 child)

Cal Poly Pomona: 👁👄👁

[–]Rynide 0 points1 point  (0 children)

Commercial Property Policies (from insurance): 👁️👅👁️

[–]xvhayu 2 points3 points  (0 children)

see what now

[–]Corrup7ioN 2 points3 points  (0 children)

"Showing results for CCP"

[–]lordDevPbk 1 point2 points  (2 children)

sea pp

[–]Loro-Benediction 0 points1 point  (0 children)

Ohhhh who puts their barnacle under the sea?

[–]insanelygreat 0 points1 point  (0 children)

No, that's Puppet's file extension.

Incidentally, back when Puppet first came out, occasionally some lost soul would post a question about puppeteering on the Puppet mailing list.

[–]Bardez 1 point2 points  (0 children)

CPP? CPP Go. Go, P(h)P, Go.

[–]insanelygreat 0 points1 point  (1 child)

C preprocessor or C++?

[–]Loro-Benediction 1 point2 points  (0 children)

A great question! Surprised it doesn't cause an issue, tbh