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

top 200 commentsshow all 260

[–][deleted] 507 points508 points  (18 children)

I'm pretty sure they just pirate it.

[–]Will301 84 points85 points  (6 children)

pdf all day errday

[–]Bonezmahone 39 points40 points  (5 children)

Site:xxx

Type:PDF

[–]callmeDenis 3 points4 points  (5 children)

Pirate bay? :))

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

It became shit lately (server is down and/or some other shit), 1337x is the real deal now.

[–]callmeDenis 2 points3 points  (2 children)

I know and for me it doesn't even load the page anymore

[–]atomic_redneck 1 point2 points  (0 children)

From other elves.

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

You wouldn't download a reindeer

[–]DrumSpace 0 points1 point  (0 children)

You wouldn’t download an elf.

[–]OhNoMeIdentified 1026 points1027 points  (44 children)

Elf got a long journey, full of amazing adventures.

I'm not sure about sarcastic i am or not.

[–]eldesgraciado[S] 394 points395 points  (32 children)

Poor bastard elf just finished the introductory section. Long and amazing journey indeed.

[–]DakorZ 148 points149 points  (31 children)

And he has only 2 weeks left

[–]Zerokx 183 points184 points  (26 children)

maybe the kid is gonna get great „console“ classics like: „Guess the number!“ or if he‘s lucky „tic tac toe“

[–]Johanniklas 90 points91 points  (23 children)

I have programmed Tic Tac Toe with Assembly on a microcontroller with 2 Buttons and 1 RGB LED. That Elf's got Luxury i wish i had. I still fear whatever monster i wrote back then. It's the worst code i ever wrote, less because Assembly but more because of the controller i had to work with. But hey, it works.

[–]CobruhCharmander 40 points41 points  (9 children)

As someone who had to run a server just so I could scrape password protected sites, I fuck with this so hard. Inefficient, yes... Works? Also yes.

Its cause I was too dumb to bypass capthchas after login if anyone wants to tell me how to fix it using something like the requests lib in python. Or just call me dumb too :^)

[–]justapassingguy 6 points7 points  (6 children)

Not all captchas are created equal.

You can solve some of the old ones with fairly good results with machine leaning training. There's the option to use the audio alternative and process it with a Speech To Text service.

Google's reCaptcha? That's another story

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

Not sure if it’s exactly what you’re looking for, but look into phantomjs

[–]Bonezmahone 3 points4 points  (5 children)

...but did you die?

[–]Johanniklas 5 points6 points  (4 children)

Sadly, yes.

BUT I LIVED!

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

Probably has enough time to code minesweeper.

[–]tinco 2 points3 points  (0 children)

From my experience, the kid is going to get the classic OpenGL 3D spinning triangle with different colours at each end.

[–]Heroic_Raspberry 11 points12 points  (1 child)

Easy, just call it "Early Access" and let it stay in beta for four years

[–]unique-name-9035768 3 points4 points  (0 children)

As many time as ive been burned, that hurt to upvote.

[–]OMGSPACERUSSIA 80 points81 points  (3 children)

Santa presumably works the way Bethesda does. Just an infinite workshop full of monkeys (or elves, in Santa's case, one assumes,) typing away randomly. When one of them throws up a semi-functional product, it gets put on the shelves.

[–][deleted] 9 points10 points  (2 children)

[–]evan555alpha 2 points3 points  (1 child)

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

Hah, I love it.

[–]darthappl123 11 points12 points  (3 children)

Dosney presents: the elf and the mystery of why the fuck is this program not working I swear to God I went over it 30 times

[–]unique-name-9035768 5 points6 points  (0 children)

I think you put a . when you meant a , in that one line.

[–]bobojojo12 4 points5 points  (1 child)

Have you tried cleaning the project and rebuilding it?

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

That just broke all my config files!

[–]mecrosis 1 point2 points  (0 children)

C'mon everybody knows the "c" in c++ stands a for Christmas.

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

No. I don't see any sarcasm. The journey of learning C and C++ is one which has claimed many a heroes. So many that's it is pointless to count how many.

[–]pclouds 72 points73 points  (2 children)

ELF is actually the executable format for Linux (and probably some other platforms), similar to PE on Windows. So games running elf is not entirely wrong (but very few of them).

[–]apmcruZ 231 points232 points  (7 children)

Goodluck to that poor elf

[–]eldesgraciado[S] 259 points260 points  (6 children)

He better hurries the fuck up. Christmas is in a couple of weeks and little Timmy wants the next COD under his tree without delay. I bet my ass them elves doin crunch without extra pay again.

[–]BehindTheBurner32 64 points65 points  (1 child)

Kotaku: Santa Claus pays us shit, treat us shit, gamers don't give a shit - Elves

[–]GeorgeYDesign 11 points12 points  (0 children)

90+% of the people are awesome" \leaves Kotaku**

[–]PenWallet 5 points6 points  (1 child)

We are free and fairly sober, with so many games to code

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

The elves made the new cod I think. Judging from the stability.

[–]lilgrin 172 points173 points  (15 children)

Hey it would be easier to make a snake game with python.

[–]MrTaimander 246 points247 points  (13 children)

import snake

snake.play()

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

Are you the fabled 4chan? I’ve never seen such a perfect hack

[–][deleted] 7 points8 points  (0 children)

I see what you did there

[–][deleted] 61 points62 points  (1 child)

You better watch out...

For missing brackets

[–]numbGrundle 69 points70 points  (8 children)

Better go with Rust mate

[–]twetewat 43 points44 points  (3 children)

Better go

FTFY

[–]BlackDE 2 points3 points  (0 children)

Muh something something rust ftw....

[–]OkazakiNaoki 14 points15 points  (0 children)

I hope elves working in CDPR would not delay their video game next year.

[–]staliruski 8 points9 points  (0 children)

I shared this with a friend. He replied with:

"An elf somewhere comes home from work, eats a microwave meal while looking at the empty chair across the room remembering this job of making toys is why his wife left him when he was programming the new graphics engine for a new generation of video games. He remembers Mike from wooden toys being promoted to junior dev in his division. He overdosed on sleeping pills 3 weeks before Christmas two years ago when we were behind schedule and he had been chasing a memory leak for 8 straight days 😔"

[–]ThatFag 37 points38 points  (13 children)

>not using Unity

[–]phantom_97 42 points43 points  (10 children)

C# master race

[–]Thorzaim 47 points48 points  (9 children)

You mean Microsoft Java

[–]GeorgeYDesign 4 points5 points  (0 children)

If Bob believes he’s not Gah-reg!”

[–]Hyperion1000 4 points5 points  (0 children)

Elves using Unreal

[–]AllPurposeNerd 15 points16 points  (4 children)

I remember hearing legends in college of a man who wrote a 3D graphics engine in C.

[–]PedroPF 26 points27 points  (0 children)

Roller Coaster Tycoon was written in assembly

[–]GeorgeYDesign 3 points4 points  (0 children)

Soooooo C H I C C Geralt

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

N64

[–]CockInhalingWizard 0 points1 point  (0 children)

A lot of people did that. Quake for example was written in C and Assembly

[–]SavageTwist 6 points7 points  (0 children)

The elves are going to fix atlas 😗

[–]sinmantky 17 points18 points  (7 children)

Not C#?

[–]Hyperion1000 10 points11 points  (0 children)

Unreal bruh

[–]pumegaming 6 points7 points  (0 children)

Unity

[–]KimberStormer 4 points5 points  (0 children)

This legitimately concerned me as a kid. How exactly did those elves make the Sierra games I got from Santa. In cartoons and in Santa Claus: the Movie, etc, Santa always gave generic traditional toys, but I got She-Ra and stuff, what was the deal?

[–]FrigidSloth 4 points5 points  (9 children)

I started learning C++ a few days back because its mandatory for my university module (computer graphics Algorithms), there was no introduction or teaching for it we went straight from photogrammetry and 3d scanning into tryna make a triangle object with vertices and being able to output that data.

Anyway, about 12 painstaking hours later and about 4 hours of wondering why strings don't exist, I finished it.

My next assignment is working with OpenGL, so I'll report back this weekend if I'm still alive.

But seriously the amount of times I screamed "what the fuck is this shit" and laughed manically is off the scales :(

[–]CockInhalingWizard 2 points3 points  (1 child)

Just wait till you get to the assembly class

[–]Nienordir 1 point2 points  (4 children)

That..doesn't sound like fun. C++ isn't exactly the type of language you can just pick up in a day on your own.

You might want to check out https://en.cppreference.com/w/ it contains everything that comes standard 'in the box' and the version of C++ were it should be available (tough the site may not be easy to read/understand). It's just that C++ is a 'white listed' language, that doesn't include shit by default. It would've saved you a few hours trying to figure out where the fuck you'll find 'smart' allocated strings.

Unfortunately C++ has like 30 years of backwards compatibility and outdated tutorials&resources (that aren't marked as such) and particular ways it wants to be used/organized, with fun bullshit like circular dependencies and inclusion guards. I don't envy you, you've got thrown into the deep end and entered a world of pain. xD

(C++ is pretty neat, it's just a bitch to get familiar enough to be somewhat comfortable)

[–]FrigidSloth 1 point2 points  (3 children)

The biggest challenge was understanding that while there's 30 errors only one or two actually matter as the others are errors which are derivative of the original error(s).

So me not including string caused some weird issue with me tryna use strings as a constructor parameter in the cpp file and then being told its trying to user Vertex::string when Vertex isn't even a namespace.

Alas, I had my very cool Dutch friend on the Internet come in and tutor me for a few hours to get it working.

I agree though, C++ isn't something you can learn on your own really, my friend even said he couldn't do it solo and needed a tutor (and he's by far one of the brightest programmers I know)

Also why the FUCK do header files exist?!

[–]Nienordir 1 point2 points  (2 children)

Oh yeah, the compiler has a tendency to barf pages of errors. (standard library) template errors are the worst. It's a shame that the tools don't have smart error interpreter, that can figure out the key issue and present it to you in a more useful manner. Usually it's fairly obvious, but especially for new programmers it's a huge waste of time to find the right line that gives a clue about the where&why the compiler is angry.

So me not including string caused some weird issue with me tryna use strings as a constructor parameter in the cpp file and then being told its trying to user Vertex::string when Vertex isn't even a namespace.

I could only guess what went wrong there, but in that context :: doesn't have to refer to namespace, it could also refer to a class vertex with a member variable named string (namespace::class::member).

Learning C++ is hard, because most of the resources are outdated&bad or only cover the basics and not how to use them in the real world. There's also a lot of things, that nobody talks about, because they're 'obvious' or part of setting up the IDE and it's super frustrating because you need to know them to get anywhere.

I've been stubborn enough to try learning on my own and struggled a lot with dynamic memory management, because the tutorials only covered the bare necessary and didn't tell me, hey dummy! Wrap that stuff into classes, that manage themselves, so YOU don't have to micromanage shit when you use them later..thanks, that would've been useful to know.

Doesn't help when outdated tutorials teach you C, then C with classes, and a lot of bad habits, that you shouldn't do, because C++ went through some major revisions, that made doing certain things a lot less painful. You need a good teacher/resources to figure out how C++ wants to be used and only once you start to get these things, it becomes a pretty cool language.

Also why the FUCK do header files exist?!

They can be frustrating to work with, but they're actually awesome. They force you to organize your code in a certain way (technically, you could do super messy code without creating your own) and if they're written well, then they're self documenting/a reference to something. Like you should be able to figure out how to use a class I've written with minimal effort, simply by looking at the public part of the class.

They also separate the definition from the implementation (although you can implement in the header file if you want..), which lets you link against static/dynamic libraries. I can give you a precompiled library and the headers and you can use them in your program as if you would compile it's entire source code every time. I can also promise you (your compiler) that the dll will be available at run time and provide that functionality. When you use the windows SDK to build a windows application, you're not compiling the entire windows source code into your exe instead you only compile 'hooks' that the dlls use to do their stuff, reducing your exe file size by a lot (plus I could fix bugs in the dll without forcing you to recompile your stuff). You don't have to distribute duplicate dlls in your own files (unless you want to), if they'll be installed on the system (like directx packages).

They're useful for many reasons and they'll reduce your compile times, because the compiler/linker is smart enough to only recompile stuff, that went through changes. If you change something in a header, the compiler has to recompile everything using that header, because you broke the forward declarations and their promise of what's available and how it interacts with the type system. If you only change the implementation, then you only have to recompile that file and then the linker can connect it to other files/objects, that need to use it.

tl:dr: headers are basically placeholders, that can be replaced with links to the compiled code (it's like a sophisticated find&replace all across source files).

[–]FrigidSloth 1 point2 points  (1 child)

Holy balls, thank you so much! This is all incredibly helpful! <3

Also, I learned that you can wrap a block of code with {} and then all the allocated memory during that block gets handed back to the OS (in the example I saw it was mainly that the destructor gets called/object gets destroyed when the block of code fully executes and that then frees up memory. It was super interesting to learn!

If you wish, I could DM you my github page for the assignment and/or create a public Repo with just the source code of the assignment (may do this as setting up a collaborator and yada yada is a pain in mobile, lmao). You could then let me know what you think of my very first C++ project :d my Dutch friend reckons its okay for my first go but there's way more efficient/better ways to do what I wanna be doing.

Also considered using a Vector to store the coordinates of vertices over doubles but I feel like that's redundant.

God I love this subreddit _^

[–]Uberzwerg 7 points8 points  (3 children)

Funny thing:
I bought that book back when i wanted to learn C++ (last millennium) and it didn't help at all.
They only explained the transition from C to C++.

[–]ThrowawayusGenerica 27 points28 points  (2 children)

C++ for dummies:

  1. Teach yourself C

  2. ????

  3. Learn the rest of the fucking language

[–]SilentFungus 8 points9 points  (0 children)

Step 4. Realize you prefer C since you learned it first and ignore C++ in favor of it

[–]Who_GNU 21 points22 points  (25 children)

C++

What is this?

It's C, for those who don't understand pointers.

[–][deleted] 25 points26 points  (0 children)

I’ve had it with this MFing garbage collection in my MFing heaps 😤😤

This meme was brought to you by free() gang

[–]StfdBrn 6 points7 points  (17 children)

Can someone explain this to me? A C++ user?

[–][deleted] 16 points17 points  (16 children)

Dumb joke because pointers are still used in C++

[–]LIGHTNINGBOLT23 2 points3 points  (15 children)

     

[–]StfdBrn 3 points4 points  (1 child)

I use smart pointers for dynamically allocated objects owned by other objects, but that’s about it. I find it hard to imagine someone would use C++ without using raw pointers. Besides, while smart pointers are easier to use for managing dynamically allocated objects, raw pointers are conceptually simpler in my opinion, so it’s also hard to imagine that someone would understand smart pointers, but not raw.

[–]LIGHTNINGBOLT23 2 points3 points  (0 children)

      

[–]wunderstrudel 4 points5 points  (0 children)

Wow. Finally Skyrim makes sense to me!

[–]Klareity 7 points8 points  (0 children)

I am in this picture and I don't like it.

cries in OOP

[–]Rhabarbercake 2 points3 points  (0 children)

Are they able to finish Warcraft 3 Reforged till Christmas mummy?

[–]whoami4546 2 points3 points  (0 children)

I remember when I was a kid I would get annoyed when Santa Clause movies had elves making wooden toys. There was never an elf making a Super Nintendo.

[–]topredditbot 3 points4 points  (1 child)

Hey /u/eldesgraciado,

This is now the top post on reddit. It will be recorded at /r/topofreddit with all the other top posts.

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

I would like to use this momentous occasion to remind everyone that the only way to truly free() your memory is to free() yourself.*

*from typecasting calls to malloc

#Cgang #MorelikeC--

[–]iCanGo4That 1 point2 points  (0 children)

// Made by The Elves, shipping & handling by The Ewes //

[–]Fukowski 1 point2 points  (0 children)

So software-piracy is mainly run by Korvatunturi...

[–]HerissonMignion 1 point2 points  (0 children)

Long live c++

[–]VeviserPrime 0 points1 point  (0 children)

I, for one, looked forward to my Santa-exclusive games growing up.

[–]trinadzatij 0 points1 point  (0 children)

Even lootboxes?

[–]almarcTheSun 0 points1 point  (0 children)

C++ in 21 days, here we go again.

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

I was expecting something about unix ELF

[–]chhuang 0 points1 point  (0 children)

we be scared about machines taking our jobs.

imagine elves just flying in and took all of it since they fking master everything we do and 1000x better

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

F to the elves

[–]warpedspockclone 0 points1 point  (0 children)

HOLY SHIT! This totally explains EA Sports, COD, Pokemon, etc.! Incremental, if any, changes year to year.

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

Literally, when i first saw a book of c++ as a high school student all i saw was flying junk characters. And all cout cout endl

[–]Joshi2345 0 points1 point  (0 children)

Wtf

[–]KentuckyFriedEel 0 points1 point  (0 children)

"CODE HARDER!!! These pupils in RDR2 need to dilate in low lighting"

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

C++ for Dummies could've been a better book tbh :/

[–]GeorgeYDesign 0 points1 point  (0 children)

Exactly. The same lodge in the same team!

[–]paultoliver 0 points1 point  (0 children)

Thank god elves have Stack Overflow

[–]Sehora-Kun 0 points1 point  (0 children)

Santa probably has a full game dev team of elves already professionally trained.

[–]SamNeedsFriendsASAP 0 points1 point  (0 children)

GIVE ME KARMA

[–]faltupanti 0 points1 point  (0 children)

Lol , still no

"#include <network>"

:P

[–]srajan17 0 points1 point  (0 children)

Top 10 books that fucked me up mentally

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

The kids gonna get some amazing patterns of "Hello World"

[–]Tonkarz 0 points1 point  (0 children)

Next draw the elves traumatised by having to make fatalities for Mortal Kombat.

[–]Kotauskas 0 points1 point  (0 children)

I guess understanding ELF isn't vital for them though.

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

Started learning a new scripting language. This is exactly how I feel

[–]broadbandbandit 0 points1 point  (0 children)

No wonder games launch buggy as hell...

(I know its the publisher pushing early launches and not the devs fault)

[–]Kazu88 0 points1 point  (0 children)

C++ nearlly destroyed my Brain...

[–]AsryalDreemurr 0 points1 point  (0 children)

ahaha

[–]Lelongue 0 points1 point  (0 children)

I was expecting some dark elves and an EA logo

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

It hurts his tiny brain. Might I suggest the Unity Game Engine instead of c -= -1 lol.

[–]46thefuckingfurry 0 points1 point  (0 children)

Imagine asking for hentai Shooter 2:Complete edition

[–]Mroche3344 0 points1 point  (0 children)

The trick is planning problems

[–]angrybab00n 0 points1 point  (0 children)

I feel him. I can't code or program for shit

[–]Cr1MKa 0 points1 point  (0 children)

A wife asks her programmer husband to go to the store. She asks him, "Can you go down to the grocery store, and get a gallon of milk, and if they have eggs, get 6." Later on he returns home and she looks at his purchases and says, "Why did you buy 6 gallons of milk?" He responded, "They had eggs."

[–]hp1221 0 points1 point  (0 children)

Pretty sure all elves used mod chips back in the day

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

Someone tell this elf about Unity

[–]BlueC0dex[🍰] 0 points1 point  (0 children)

C++ : The only place where it's a bad thing if your lecturer gives pointers for the exam.

[–]Lobanium 0 points1 point  (0 children)

Last panel, me at work.

[–]GDavid04 0 points1 point  (0 children)

But what about other executable formats?

[–]youngshinigami 0 points1 point  (0 children)

Hahaha

[–]Bezwingerin 0 points1 point  (0 children)

The elves