TheWorstCoderEver doesn't know C++. At all.

Discussion about everything. New games, 3d math, development tips...
TheWorstCoderEver
Posts: 47
Joined: Wed Feb 01, 2006 8:09 pm
Location: Wroclaw
Contact:

TheWorstCoderEver doesn't know C++. At all.

Post by TheWorstCoderEver »

Hi,

Many a year has passed since The Worst Coder Ever haunted this forum, and many things have happened in his life since. He got a job, learned PHP, wrote a web application in PHP as a part of his job, he became an assistant webmaster sort of of a public portal. Lately he had a bit more time to spare, so he decided to refresh his C++ skills. And then he realized the awful truth - he doesn't even know the basics of C++!

Switching to first-person mode.

I admit I've had little experience manipulating strings in C++. The first time I did anything that had to do with string parsing and concatenation was in PHP and Java. The problem, as I found today, was that I didn't know the size_t type, and once I found it I wrote a working parser for the config file. But it doesn't stop there.

According to the reply I've got on the Devmaster forums (http://www.devmaster.net/forums/showthread.php?t=12645) I'm completely unfamiliar with the C and C++ concepts such as: templates, singletons, classes, objects, pointers, references, dereferences, namespaces etc. The post implies that I'm am completely, but completely ignorant of them. Ok, I admit that working with a scripting language that doesn't enforce strict type checking can make you unlearn some behaviors, but I didn't know that I've completely unlearned the very first language I started to program in!

Sorry for me being nervous in this post. I blame it on stressful job.
xDan
Competition winner
Posts: 673
Joined: Thu Mar 30, 2006 1:23 pm
Location: UK
Contact:

Post by xDan »

Just start coding your MMORPG or whatever, you'll pick up C++ as you go along ;)
TheWorstCoderEver
Posts: 47
Joined: Wed Feb 01, 2006 8:09 pm
Location: Wroclaw
Contact:

Post by TheWorstCoderEver »

Oh, sure.

So you're trying to tell me that the guys at devmaster didn't get the joke?

You know, before I went offline for a year or two I used to make jokes about people who actually wanted to make MMORPGs. So I decided to post one at my comeback.

Bad choice, it turned out. Very bad choice.
BlindSide
Admin
Posts: 2821
Joined: Thu Dec 08, 2005 9:09 am
Location: NZ!

Post by BlindSide »

TheWorstCoderEver wrote:completely unfamiliar with the C and C++ concepts such as: ... singletons
Maybe this one is for the best. :lol:
ShadowMapping for Irrlicht!: Get it here
Need help? Come on the IRC!: #irrlicht on irc://irc.freenode.net
Dorth
Posts: 931
Joined: Sat May 26, 2007 11:03 pm

Post by Dorth »

Singletons are extremely useful, when used in moderation and at the appropriate place. It's the same with assembly coding. If you code random part in assembly, you're just going to make your app worst. But if you've targeted a one in a million place where you have both a possible improvement and a bottleneck, then assembly can be good. It's all a question of context.
Seven
Posts: 1034
Joined: Mon Nov 14, 2005 2:03 pm

Post by Seven »

whew...... can we discuss straight C vs C++ now?
BlindSide
Admin
Posts: 2821
Joined: Thu Dec 08, 2005 9:09 am
Location: NZ!

Post by BlindSide »

Seven wrote:whew...... can we discuss straight C vs C++ now?
Yeah, why don't we argue over tabs vs spaces while we're at it. :P
ShadowMapping for Irrlicht!: Get it here
Need help? Come on the IRC!: #irrlicht on irc://irc.freenode.net
TheWorstCoderEver
Posts: 47
Joined: Wed Feb 01, 2006 8:09 pm
Location: Wroclaw
Contact:

Post by TheWorstCoderEver »

BlindSide wrote:
TheWorstCoderEver wrote:completely unfamiliar with the C and C++ concepts such as: ... singletons
Maybe this one is for the best. :lol:
I can see that you fell in my trap, BlindSide. I perfectly knew that singletons are a design pattern that is not exclusive to C++, but nevertheless decided to check whether there are people on the forum who are mean enough to laugh at my staged mistake. Got one so far.
piiichan
Posts: 59
Joined: Thu May 01, 2008 1:20 am
Location: New Caledonia (France - Pacific)
Contact:

Post by piiichan »

TheWorstCoderEver, you're too good. Love the sarcastic style :D

But you must understand: words like "design", "c++" or "linux" are evil words. They make people nervous. :)
Mirror
Posts: 218
Joined: Sat Dec 01, 2007 4:09 pm

Post by Mirror »

BlindSide wrote:
Seven wrote:whew...... can we discuss straight C vs C++ now?
Yeah, why don't we argue over tabs vs spaces while we're at it. :P
tabs FTW
twilight17
Posts: 362
Joined: Sun Dec 16, 2007 9:25 pm

Post by twilight17 »

Mirror wrote:
BlindSide wrote:
Seven wrote:whew...... can we discuss straight C vs C++ now?
Yeah, why don't we argue over tabs vs spaces while we're at it. :P
tabs FTW
nothing FTW

Code: Select all

#include<iostream>int main(){using std::cout;cout << "lol";return 0;}
Post this userbar I made on other websites to show your support for Irrlicht!
Image
http://img147.imageshack.us/img147/1261 ... wernq4.png
Seven
Posts: 1034
Joined: Mon Nov 14, 2005 2:03 pm

Post by Seven »

ILikeit.Ireallydontseewhyweusesomanydifferentspacersinourlanguageanyways.Alltheydoismakethingsmoremessy:)
rogerborg
Admin
Posts: 3590
Joined: Mon Oct 09, 2006 9:36 am
Location: Scotland - gonnae no slag aff mah Engleesh
Contact:

Post by rogerborg »

YRUBngSoVrbsSrlyUKnwTrsCOdRnsFstr?
Please upload candidate patches to the tracker.
Need help now? IRC to #irrlicht on irc.freenode.net
How To Ask Questions The Smart Way
BlindSide
Admin
Posts: 2821
Joined: Thu Dec 08, 2005 9:09 am
Location: NZ!

Post by BlindSide »

TheWorstCoderEver wrote:
BlindSide wrote:
TheWorstCoderEver wrote:completely unfamiliar with the C and C++ concepts such as: ... singletons
Maybe this one is for the best. :lol:
I can see that you fell in my trap, BlindSide. I perfectly knew that singletons are a design pattern that is not exclusive to C++, but nevertheless decided to check whether there are people on the forum who are mean enough to laugh at my staged mistake. Got one so far.
I just don't want anyone catching singletonitis.
ShadowMapping for Irrlicht!: Get it here
Need help? Come on the IRC!: #irrlicht on irc://irc.freenode.net
TheWorstCoderEver
Posts: 47
Joined: Wed Feb 01, 2006 8:09 pm
Location: Wroclaw
Contact:

Post by TheWorstCoderEver »

I just don't want anyone catching singletonitis.
Worry not for reasons two:

1) An advanced Zen practitioner am I, to enlightenment very close, and the mental attachements hold sway over me longer not

2) My kung fu and chi very strong are, and my inner systems likewise are immune very, and the disease however strong can touch me not.

Namaste

TheWorstCoderEver, programmer-artist.
Post Reply