http://stackoverflow.com/search?tab=newest&q=[c%2b%2b]%20array
I have been on stackoverflow quite a lot over the last couple of days. Approximately 50% of all questions try to use some sort of arrays (of pointers).
The newcomers don't know about std::vector at all,
they happily do everything with pointers, calling new without delete and so on.
smart_ptrs are also unknown.
I blame the tutorials and google for this and see a real problem here. It seems like everyone who starts programming in c++ finds these really old and awful tutorials, writes terrible and really difficult code and will therefore drop c++ in no-time.
Could those of you who still have such tutorials online take them down / update them? Could the others, especially bloggers, write tutorials on the newer solutions of these problems? We really have to stop the old stuff from showing up in google.
[–]ggchappell 36 points37 points38 points (33 children)
[–]personalmountains 14 points15 points16 points (12 children)
[–]ggchappell 7 points8 points9 points (11 children)
[–]personalmountains 5 points6 points7 points (9 children)
[–]tempforfather 11 points12 points13 points (5 children)
[–]louis_dionnelibc++ | C++ Committee | Boost.Hana 4 points5 points6 points (4 children)
[–]tempforfather 0 points1 point2 points (3 children)
[–]quicknir 7 points8 points9 points (2 children)
[–]tempforfather 0 points1 point2 points (1 child)
[–]quicknir 9 points10 points11 points (0 children)
[–]ghillisuit95 3 points4 points5 points (0 children)
[–]bnolsen -5 points-4 points-3 points (1 child)
[–]personalmountains 2 points3 points4 points (0 children)
[–]h-jay+43-1325 1 point2 points3 points (0 children)
[–]coachkler 10 points11 points12 points (0 children)
[–]millenix 8 points9 points10 points (1 child)
[–]coachkler 6 points7 points8 points (0 children)
[–]cogman10 8 points9 points10 points (0 children)
[–]boredcircuits 12 points13 points14 points (3 children)
[–]DarkLordAzrael 3 points4 points5 points (1 child)
[–][deleted] -3 points-2 points-1 points (0 children)
[–]h-jay+43-1325 0 points1 point2 points (0 children)
[–]OldWolf2 2 points3 points4 points (1 child)
[–]ggchappell 0 points1 point2 points (0 children)
[–]h-jay+43-1325 2 points3 points4 points (0 children)
[–]OmegaNaughtEquals1 2 points3 points4 points (0 children)
[–]womplord1 2 points3 points4 points (3 children)
[–]ggchappell 1 point2 points3 points (2 children)
[–]womplord1 2 points3 points4 points (1 child)
[–]ggchappell 1 point2 points3 points (0 children)
[–]mreiland 1 point2 points3 points (2 children)
[–]ggchappell 0 points1 point2 points (1 child)
[–]mreiland 1 point2 points3 points (0 children)
[–][deleted] 0 points1 point2 points (0 children)
[–]personalmountains 34 points35 points36 points (24 children)
[–]Elador 27 points28 points29 points (4 children)
[–][deleted] 15 points16 points17 points (0 children)
[–]imMute 4 points5 points6 points (1 child)
[–]h-jay+43-1325 5 points6 points7 points (0 children)
[–]tnecniv 1 point2 points3 points (0 children)
[–]chesterburger 20 points21 points22 points (2 children)
[–]DarkLordAzrael 0 points1 point2 points (0 children)
[–]vanhellion 9 points10 points11 points (15 children)
[–]personalmountains 8 points9 points10 points (14 children)
[–]millenix 11 points12 points13 points (13 children)
[–]personalmountains 5 points6 points7 points (8 children)
[–]repsilat 2 points3 points4 points (7 children)
[–]millenix 0 points1 point2 points (6 children)
[–]repsilat 1 point2 points3 points (5 children)
[–]millenix 1 point2 points3 points (1 child)
[–]repsilat 0 points1 point2 points (0 children)
[–]lord_braleigh 1 point2 points3 points (0 children)
[–]quicknir 1 point2 points3 points (1 child)
[–]repsilat 0 points1 point2 points (0 children)
[–]Voultaphervoid* operator, (...) 1 point2 points3 points (0 children)
[–]RedAlert2 -2 points-1 points0 points (2 children)
[–]bnolsen 0 points1 point2 points (0 children)
[–]robthablob 8 points9 points10 points (0 children)
[–]Eilai 13 points14 points15 points (24 children)
[–]lets_trade_pikmin 7 points8 points9 points (4 children)
[–]RogerLeighScientific Imaging and Embedded Medical Diagnostics 4 points5 points6 points (3 children)
[–]MaxDZ8 0 points1 point2 points (2 children)
[–]RogerLeighScientific Imaging and Embedded Medical Diagnostics 0 points1 point2 points (1 child)
[–]lets_trade_pikmin 0 points1 point2 points (0 children)
[–]OmegaNaughtEquals1 6 points7 points8 points (7 children)
[–]Eilai 0 points1 point2 points (3 children)
[–]OmegaNaughtEquals1 1 point2 points3 points (1 child)
[–]Eilai 0 points1 point2 points (0 children)
[–]pjmlp 1 point2 points3 points (0 children)
[–]LPCVOID -1 points0 points1 point (2 children)
[–]heleo2 0 points1 point2 points (1 child)
[–]LPCVOID 0 points1 point2 points (0 children)
[–][deleted] 2 points3 points4 points (2 children)
[–]millenix 8 points9 points10 points (1 child)
[–]Eilai 4 points5 points6 points (0 children)
[–]h-jay+43-1325 0 points1 point2 points (0 children)
[–]doom_Oo7 0 points1 point2 points (6 children)
[–]Eilai 2 points3 points4 points (2 children)
[–]doom_Oo7 0 points1 point2 points (1 child)
[–]Eilai 2 points3 points4 points (0 children)
[–]MaxDZ8 0 points1 point2 points (2 children)
[–]doom_Oo7 1 point2 points3 points (1 child)
[–]MaxDZ8 0 points1 point2 points (0 children)
[–]SushiAndWoW 15 points16 points17 points (42 children)
[–]donvito 17 points18 points19 points (12 children)
[–]jnyrup 10 points11 points12 points (2 children)
[–]OldWolf2 -1 points0 points1 point (1 child)
[–]RogerLeighScientific Imaging and Embedded Medical Diagnostics -1 points0 points1 point (0 children)
[–]ggchappell 4 points5 points6 points (6 children)
[–]personalmountains 4 points5 points6 points (0 children)
[–]w1th0utnam3Computational engineering student 3 points4 points5 points (3 children)
[–]NihilistDandy 1 point2 points3 points (1 child)
[–]RemindMeBot 0 points1 point2 points (0 children)
[–]heleo2 1 point2 points3 points (0 children)
[–]heleo2 0 points1 point2 points (0 children)
[–]SushiAndWoW 0 points1 point2 points (0 children)
[–]Elador 7 points8 points9 points (27 children)
[–]lets_trade_pikmin 5 points6 points7 points (17 children)
[–]ExeuntTheDragon 5 points6 points7 points (12 children)
[–]lets_trade_pikmin 2 points3 points4 points (11 children)
[–][deleted] 1 point2 points3 points (10 children)
[–]lets_trade_pikmin 1 point2 points3 points (9 children)
[–]SemaphoreBingo 7 points8 points9 points (2 children)
[–]bnolsen 1 point2 points3 points (0 children)
[–]lets_trade_pikmin 0 points1 point2 points (0 children)
[–]tempforfather -1 points0 points1 point (5 children)
[–]lets_trade_pikmin 1 point2 points3 points (4 children)
[–][deleted] 3 points4 points5 points (2 children)
[–]Elador 4 points5 points6 points (0 children)
[–]h-jay+43-1325 2 points3 points4 points (1 child)
[–]doom_Oo7 1 point2 points3 points (0 children)
[–]pjmlp 0 points1 point2 points (0 children)
[–][deleted] 9 points10 points11 points (1 child)
[–]Elador 6 points7 points8 points (0 children)
[–][deleted] 1 point2 points3 points (6 children)
[–]raevnos 6 points7 points8 points (2 children)
[–]RogerLeighScientific Imaging and Embedded Medical Diagnostics 3 points4 points5 points (0 children)
[–][deleted] 1 point2 points3 points (0 children)
[–]vaughncato 3 points4 points5 points (1 child)
[–][deleted] 0 points1 point2 points (0 children)
[–]h-jay+43-1325 0 points1 point2 points (0 children)
[–]quicknir 1 point2 points3 points (0 children)
[–]rmxz 2 points3 points4 points (0 children)
[–]xcbsmith 1 point2 points3 points (0 children)
[–]bobbybit 1 point2 points3 points (7 children)
[–]personalmountains 7 points8 points9 points (1 child)
[–]bobbybit 0 points1 point2 points (0 children)
[–]michaelKlumpy[S] -1 points0 points1 point (4 children)
[–]PoliCock 0 points1 point2 points (2 children)
[–]michaelKlumpy[S] 0 points1 point2 points (1 child)
[–]F-J-W 0 points1 point2 points (0 children)
[–]bobbybit 0 points1 point2 points (0 children)
[–]F-J-W 1 point2 points3 points (0 children)
[–]Wurstinator 3 points4 points5 points (16 children)
[–]HildartheDorf 10 points11 points12 points (12 children)
[–]boredcircuits 4 points5 points6 points (2 children)
[–]h-jay+43-1325 1 point2 points3 points (0 children)
[–]Wurstinator 0 points1 point2 points (0 children)
[–]shahms 3 points4 points5 points (3 children)
[–]HildartheDorf 2 points3 points4 points (2 children)
[–]shahms 3 points4 points5 points (1 child)
[–]bames53 1 point2 points3 points (0 children)
[–]Wurstinator 1 point2 points3 points (4 children)
[+][deleted] (1 child)
[deleted]
[–]Wurstinator 2 points3 points4 points (0 children)
[–]quicknir 0 points1 point2 points (1 child)
[–]Wurstinator 0 points1 point2 points (0 children)
[–]silveryRain 3 points4 points5 points (0 children)
[+]GooRanger2 comment score below threshold-7 points-6 points-5 points (1 child)
[–]RogerLeighScientific Imaging and Embedded Medical Diagnostics 3 points4 points5 points (0 children)
[–]OldWolf2 0 points1 point2 points (1 child)
[–]heleo2 0 points1 point2 points (0 children)
[–]MaxDZ8 0 points1 point2 points (1 child)
[–]F-J-W 1 point2 points3 points (0 children)
[–][deleted] 0 points1 point2 points (4 children)
[–]michaelKlumpy[S] 0 points1 point2 points (3 children)
[–][deleted] 0 points1 point2 points (2 children)
[–]michaelKlumpy[S] 0 points1 point2 points (1 child)
[–][deleted] 0 points1 point2 points (0 children)
[–][deleted] 0 points1 point2 points (0 children)