• Log InLog In
  • Register
Liquid`
Team Liquid Liquipedia
EST 22:25
CET 04:25
KST 12:25
  • Home
  • Forum
  • Calendar
  • Streams
  • Liquipedia
  • Features
  • Store
  • EPT
  • TL+
  • StarCraft 2
  • Brood War
  • Smash
  • Heroes
  • Counter-Strike
  • Overwatch
  • Liquibet
  • Fantasy StarCraft
  • TLPD
  • StarCraft 2
  • Brood War
  • Blogs
Forum Sidebar
Events/Features
News
Featured News
Clem wins HomeStory Cup 284HomeStory Cup 28 - Info & Preview13Rongyi Cup S3 - Preview & Info3herO wins SC2 All-Star Invitational14SC2 All-Star Invitational: Tournament Preview5
Community News
Weekly Cups (Jan 26-Feb 1): herO, Clem, ByuN, Classic win2RSL Season 4 announced for March-April7Weekly Cups (Jan 19-25): Bunny, Trigger, MaxPax win3Weekly Cups (Jan 12-18): herO, MaxPax, Solar win0BSL Season 2025 - Full Overview and Conclusion8
StarCraft 2
General
Clem wins HomeStory Cup 28 HomeStory Cup 28 - Info & Preview Stellar Fest "01" Jersey Charity Auction StarCraft 2 Not at the Esports World Cup 2026 Weekly Cups (Jan 26-Feb 1): herO, Clem, ByuN, Classic win
Tourneys
$5,000 WardiTV Winter Championship 2026 HomeStory Cup 28 RSL Season 4 announced for March-April PIG STY FESTIVAL 7.0! (19 Feb - 1 Mar) StarCraft Evolution League (SC Evo Biweekly)
Strategy
Custom Maps
[A] Starcraft Sound Mod
External Content
Mutation # 511 Temple of Rebirth The PondCast: SC2 News & Results Mutation # 510 Safety Violation Mutation # 509 Doomsday Report
Brood War
General
[ASL21] Potential Map Candidates Can someone share very abbreviated BW cliffnotes? 2024 BoxeR's birthday message Liquipedia.net NEEDS editors for Brood War BSL Season 21 - Complete Results
Tourneys
Escore Tournament StarCraft Season 1 Small VOD Thread 2.0 KCM Race Survival 2026 Season 1 The Casual Games of the Week Thread
Strategy
Zealot bombing is no longer popular? Simple Questions, Simple Answers Current Meta Soma's 9 hatch build from ASL Game 2
Other Games
General Games
Diablo 2 thread Battle Aces/David Kim RTS Megathread EVE Corporation Nintendo Switch Thread Path of Exile
Dota 2
Official 'what is Dota anymore' discussion
League of Legends
Heroes of the Storm
Simple Questions, Simple Answers Heroes of the Storm 2.0
Hearthstone
Deck construction bug Heroes of StarCraft mini-set
TL Mafia
Mafia Game Mode Feedback/Ideas Vanilla Mini Mafia
Community
General
US Politics Mega-thread Russo-Ukrainian War Thread The Games Industry And ATVI YouTube Thread Things Aren’t Peaceful in Palestine
Fan Clubs
The herO Fan Club! The IdrA Fan Club
Media & Entertainment
[Manga] One Piece Anime Discussion Thread
Sports
2024 - 2026 Football Thread
World Cup 2022
Tech Support
Quickbooks Payroll Service Official Guide Quickbooks Customer Service Official Guide
TL Community
The Automated Ban List
Blogs
Play, Watch, Drink: Esports …
TrAiDoS
My 2025 Magic: The Gathering…
DARKING
Life Update and thoughts.
FuDDx
How do archons sleep?
8882
Customize Sidebar...

Website Feedback

Closed Threads



Active: 2379 users

The Big Programming Thread - Page 630

Forum Index > General Forum
Post a Reply
Prev 1 628 629 630 631 632 1032 Next
Thread Rules
1. This is not a "do my homework for me" thread. If you have specific questions, ask, but don't post an assignment or homework problem and expect an exact solution.
2. No recruiting for your cockamamie projects (you won't replace facebook with 3 dudes you found on the internet and $20)
3. If you can't articulate why a language is bad, don't start slinging shit about it. Just remember that nothing is worse than making CSS IE6 compatible.
4. Use [code] tags to format code blocks.
Soap
Profile Blog Joined April 2010
Brazil1546 Posts
May 12 2015 21:00 GMT
#12581
I finally understood what dynamic typing means from that article and now I'm so mad about college. Three semesters of inane problems where I could either waste time designing a solution beforehand, or waste time going back to declare variables. With C, if I don't remember to initialize them I get seg faults (if I have an array, seg faults are guaranteed). With Java, I get NullPointerException, wait, isn't the point of Java that we're too stupid to deal with pointers? Oh, I declared two variables on the same line and the "= new Whatever()" only applies to one! At that rate I was expecting that by graduation I'd have to write an essay to the compiler about how I want to use each variable.

Now I'm here and people are like "j/k dynamic typing exists, PHP has it and somehow it's a problem"? PHP is momentarily my favourite language!

But seriously, it seems I need to decide whether to learn PHP or JS, which are ugly but make me money, or Python, which is pretty but would starve me because business people know it as a highly venomous language. (unless I find a entrepreneur rich buddy who 1) knows enough programming to let other people enjoy it; 2) delivers complete enough stuff so the clients don't care about how.)

I read on old blogs from Patrick McKenzie (damn GTA always making me remember him as Patrick McReary) about Ruby and from Paul Graham about Lisp, but the problem with following old trends is it not only implies one is influenceable but also that lacks a sense of time.
suid
Profile Joined May 2015
11 Posts
May 12 2015 21:11 GMT
#12582
On May 11 2015 06:33 Deathmanbob wrote:
Hey all, I am pretty noob to this but had a few questions.
What is a good way to learn C? I have been just kind of dicking around with HTML, CSS, Java script, Ruby, and been playing around in Unity. I want to stop dicking around and actually learn this for real, and from what I have heard from people, that means learning C.


Though it should be obvious, writing code in HTML, CSS and Javascript will literally teach you nothing about programming in C. You can try and argue that languages like Javascript will since their syntax is somewhat similar at times, but 10 years from now, if you become good at C, you will never in your life admit that knowing Javascript was a factor in learning C. Not only do you need to learn C syntax, but this language requires you to understand what your compiler is doing if you are planning on doing anything serious. Getting the hang of program loading and linking is something you also must master. C also comes more naturally if you learn how to use a debugger. Having said this, I strongly recommend you skip learning the arcane C language and get more experience with C++; that is, if you intend on seeking an actual career in a development field outside of kernel hacking. Maybe you don't. Nevertheless, since they are so closely related , learning about the C compiler and C syntax will be useful for learning C++ much faster.

Hacking in C is how I really learned about the esoteric secrets of C programming starting about a decade ago. Places like http://io.smashthestack.org/ helped me really start understanding how C works. Reading papers such as the Malloc Maleficarum (http://dl.packetstormsecurity.net/papers/attack/MallocMaleficarum.txt) blew my mind after reaching the point where the concepts could be comprehended and appreciated.

I learned infinitely more about C from gdb than I did any textbook; but really, to learn the basics, I can't recommend any one in specific.
Ropid
Profile Joined March 2009
Germany3557 Posts
Last Edited: 2015-05-12 21:17:16
May 12 2015 21:15 GMT
#12583
On May 13 2015 06:00 Soap wrote:
I finally understood what dynamic typing means from that article and now I'm so mad about college. [...]

Static typing does not have to be annoying. In Haskell, you don't have to declare the types if you don't want to. The compiler does magic and just guesses them for you. The types are then used to tell you that you are making mistakes, for example calling a function that can't work on your data.
"My goal is to replace my soul with coffee and become immortal."
Shield
Profile Blog Joined August 2009
Bulgaria4824 Posts
Last Edited: 2015-05-12 21:36:20
May 12 2015 21:35 GMT
#12584
On May 13 2015 06:00 Soap wrote:
I finally understood what dynamic typing means from that article and now I'm so mad about college. Three semesters of inane problems where I could either waste time designing a solution beforehand, or waste time going back to declare variables. With C, if I don't remember to initialize them I get seg faults (if I have an array, seg faults are guaranteed). With Java, I get NullPointerException, wait, isn't the point of Java that we're too stupid to deal with pointers? Oh, I declared two variables on the same line and the "= new Whatever()" only applies to one! At that rate I was expecting that by graduation I'd have to write an essay to the compiler about how I want to use each variable.

Now I'm here and people are like "j/k dynamic typing exists, PHP has it and somehow it's a problem"? PHP is momentarily my favourite language!

But seriously, it seems I need to decide whether to learn PHP or JS, which are ugly but make me money, or Python, which is pretty but would starve me because business people know it as a highly venomous language. (unless I find a entrepreneur rich buddy who 1) knows enough programming to let other people enjoy it; 2) delivers complete enough stuff so the clients don't care about how.)

I read on old blogs from Patrick McKenzie (damn GTA always making me remember him as Patrick McReary) about Ruby and from Paul Graham about Lisp, but the problem with following old trends is it not only implies one is influenceable but also that lacks a sense of time.


Dude if you complain about static typing, you should probably reconsider being a programmer. Static typing is one of the most wonderful things because you know what's up, where it's declared (some random variable doesn't appear out of no where) and what you can expect from it.

If you're too lazy to declare stuff, think of the type safety it provides in return. Do you want some code that you can't explain and that may screw up at any time just because you start using some implicit data type incorrectly?
Manit0u
Profile Blog Joined August 2004
Poland17651 Posts
Last Edited: 2015-05-12 23:08:12
May 12 2015 23:04 GMT
#12585
On May 13 2015 06:35 darkness wrote:
Show nested quote +
On May 13 2015 06:00 Soap wrote:
I finally understood what dynamic typing means from that article and now I'm so mad about college. Three semesters of inane problems where I could either waste time designing a solution beforehand, or waste time going back to declare variables. With C, if I don't remember to initialize them I get seg faults (if I have an array, seg faults are guaranteed). With Java, I get NullPointerException, wait, isn't the point of Java that we're too stupid to deal with pointers? Oh, I declared two variables on the same line and the "= new Whatever()" only applies to one! At that rate I was expecting that by graduation I'd have to write an essay to the compiler about how I want to use each variable.

Now I'm here and people are like "j/k dynamic typing exists, PHP has it and somehow it's a problem"? PHP is momentarily my favourite language!

But seriously, it seems I need to decide whether to learn PHP or JS, which are ugly but make me money, or Python, which is pretty but would starve me because business people know it as a highly venomous language. (unless I find a entrepreneur rich buddy who 1) knows enough programming to let other people enjoy it; 2) delivers complete enough stuff so the clients don't care about how.)

I read on old blogs from Patrick McKenzie (damn GTA always making me remember him as Patrick McReary) about Ruby and from Paul Graham about Lisp, but the problem with following old trends is it not only implies one is influenceable but also that lacks a sense of time.


Dude if you complain about static typing, you should probably reconsider being a programmer. Static typing is one of the most wonderful things because you know what's up, where it's declared (some random variable doesn't appear out of no where) and what you can expect from it.

If you're too lazy to declare stuff, think of the type safety it provides in return. Do you want some code that you can't explain and that may screw up at any time just because you start using some implicit data type incorrectly?


I (as a PHP programmer primarily) concur. It's annoying as hell to retrace some variable being passed to the function back to the point of its origin, checking it every step of the way just to make sure that it is what it should be. Fucking waste of time.

I'm a strong promoter of not ever changing the type of the variable if you can avoid it (if you can't, just create another variable). This way, if the entire team is on the same page, we save a lot of time and nerves.
Time is precious. Waste it wisely.
ZenithM
Profile Joined February 2011
France15952 Posts
May 13 2015 00:39 GMT
#12586
Javascript is probably the language that I find the most trending up right now. You can basically do everything with it, it has really interesting extensions (like TypeScript), cool libraries, developing tools are becoming increasingly rich, it's powerful, it's fast and optimized (thanks Google for starting that trend ;D), to a point where it's a legitimate target language for a compiler.
It's not the cleanest language around though (maybe in an ideal world one of its numerous extension attempts would be used).
Soap
Profile Blog Joined April 2010
Brazil1546 Posts
May 13 2015 00:42 GMT
#12587
Keep in mind I'm talking about college. I don't think students should be insured against mistakes, the same way they shouldn't insure their beater cars. It costs too much time going back and forth to manage variables when you design on the fly, relative to how much the code is worth (nothing). And if they crash it, it better cost them so they don't do it again.

Instead they're handed a BMW, spend time setting up the GPS instead of learning how to drive, and then rely on the car features to keep them on the road. They pass for good drivers, but it's so uneventful they eventually get bored, and buy an aircraft (take on managing projects), expecting piloting to be not that different from driving, and then they crash and take a bunch of people with them. Because they only know how easy things are.

Note that's the rhetoric people use to say programmers should learn C. I say C is too easy. Fine, if you forget to release memory you'll just see it being gobbled up for no good reason, or it crashes by trying to access stuff it doesn't own in the weirdest ways. But dynamic typing forces to keep the code in your mind, to not have "code that you can't explain". If there is one thing I wanna have a student be able to do is that.

In a production environment which feeds a design for programmers to turn it into something that works in testing, it doesn't pay enough for people to care. Then static typing all the way, so it's harder to break. But that's a lower bound on skill.
phar
Profile Joined August 2011
United States1080 Posts
May 13 2015 01:31 GMT
#12588
On May 12 2015 23:46 Manit0u wrote:
Let's take one such article as an example: http://whydoesitsuck.com/why-does-php-suck/

http://eev.ee/blog/2012/04/09/php-a-fractal-of-bad-design/
Who after all is today speaking about the destruction of the Armenians?
Ropid
Profile Joined March 2009
Germany3557 Posts
May 13 2015 09:54 GMT
#12589
On May 13 2015 09:42 Soap wrote:
Keep in mind I'm talking about college. I don't think students should be insured against mistakes, the same way they shouldn't insure their beater cars. It costs too much time going back and forth to manage variables when you design on the fly, relative to how much the code is worth (nothing). And if they crash it, it better cost them so they don't do it again.

Instead they're handed a BMW, spend time setting up the GPS instead of learning how to drive, and then rely on the car features to keep them on the road. They pass for good drivers, but it's so uneventful they eventually get bored, and buy an aircraft (take on managing projects), expecting piloting to be not that different from driving, and then they crash and take a bunch of people with them. Because they only know how easy things are.

Note that's the rhetoric people use to say programmers should learn C. I say C is too easy. Fine, if you forget to release memory you'll just see it being gobbled up for no good reason, or it crashes by trying to access stuff it doesn't own in the weirdest ways. But dynamic typing forces to keep the code in your mind, to not have "code that you can't explain". If there is one thing I wanna have a student be able to do is that.

In a production environment which feeds a design for programmers to turn it into something that works in testing, it doesn't pay enough for people to care. Then static typing all the way, so it's harder to break. But that's a lower bound on skill.

This seems confused! Shouldn't you get the same amount of errors in both cases, and the same amount of spots to fix in your code? You do still get an error in Lisp etc., except at runtime instead of from the compiler.

When you do the small toy programs for school, implementing algorithms and stuff, you can then dick around with the function that had the error from the Lisp interpreter's command line while the program is kept running. With something neat like that, I'm sure you can easily patch things up without learning much about what your original mistake in your thinking was.

In any case... it's all a bit beside the point with regards to Java and students? It's not chosen for a good reason. I bet the only reason it's used is just because the students would all cry if you show up with Lisp etc., because that's not useful preparation for the "real world" and for work. I think there was an example not long ago in this thread here. There was someone bitching about having to do something in Lisp because of his professor or something.
"My goal is to replace my soul with coffee and become immortal."
ZenithM
Profile Joined February 2011
France15952 Posts
Last Edited: 2015-05-13 10:00:35
May 13 2015 09:58 GMT
#12590
On May 13 2015 09:42 Soap wrote:
Keep in mind I'm talking about college. I don't think students should be insured against mistakes, the same way they shouldn't insure their beater cars. It costs too much time going back and forth to manage variables when you design on the fly, relative to how much the code is worth (nothing). And if they crash it, it better cost them so they don't do it again.

Instead they're handed a BMW, spend time setting up the GPS instead of learning how to drive, and then rely on the car features to keep them on the road. They pass for good drivers, but it's so uneventful they eventually get bored, and buy an aircraft (take on managing projects), expecting piloting to be not that different from driving, and then they crash and take a bunch of people with them. Because they only know how easy things are.

Note that's the rhetoric people use to say programmers should learn C. I say C is too easy. Fine, if you forget to release memory you'll just see it being gobbled up for no good reason, or it crashes by trying to access stuff it doesn't own in the weirdest ways. But dynamic typing forces to keep the code in your mind, to not have "code that you can't explain". If there is one thing I wanna have a student be able to do is that.

In a production environment which feeds a design for programmers to turn it into something that works in testing, it doesn't pay enough for people to care. Then static typing all the way, so it's harder to break. But that's a lower bound on skill.

I don't think you're looking at it the right way. Difficulty in programming isn't bound to your programming language. Most of the mainstream languages are still fairly reasonable (regardless of what some of us, myself a prime example, may say) and easy to pick up. What and how you attempt to code is when you'll set the bar on skill, if anything your programming language is your skill floor, definitely not the skill ceiling (and who is interested in the skill floor when you plan to make a career out of it? ^^).
I don't think I've ever read anywhere that static typing brings a lower bound on skill (and it doesn't make sense to me). Remember, a programming language is just a tool, it's not your end game, that's not like "Starcraft 2 with automine vs BW with dragoon AI" (because it seems a bit like it's the type of analogy you're getting at :D). Regarless of what choice you make, PHP, Javascript or C are all fine options.
Manit0u
Profile Blog Joined August 2004
Poland17651 Posts
May 13 2015 10:47 GMT
#12591
It actually doesn't matter what they teach you at school. What matters is that what they teach you is in no way related to what you'll be doing in the real world. Where I work now we have 16 developers, of whom only 2 have CS education and both of them are saying that they only did it to get the paper because they don't use any of the programming skills acquired during 5 years of university.

It's pretty sad though. You spend a lot of time trying to learn something, fresh out of school you review some job offers and you have absolutely no idea what 90% of the requirements mean because no one ever told you that. You're no longer in the world of "write a small app to get your degree", you're in the world of "are you proficient with this framework that uses about a million lines of code to build even the simplest of applications?". You get to work on projects spanning thousands of files, using frameworks, tools and libraries that you haven't heard about before etc.

People who had Java during their CS courses, please tell me - did they teach you anything about stuff like Maven, Spring, Hibernate, JDBC? Because that are just few of the tools you'll be using out in the real world and knowing them well is pretty much a prerequisite for getting a job.
Time is precious. Waste it wisely.
Nesserev
Profile Blog Joined January 2011
Belgium2760 Posts
May 13 2015 11:31 GMT
#12592
--- Nuked ---
ZenithM
Profile Joined February 2011
France15952 Posts
May 13 2015 11:33 GMT
#12593
Teaching programming is hard if you intend to keep up with every single new flavor-of-the-month tool. Tools, libraries and frameworks evolve so fast in the industry (well, faster than professors can update their class material at least :D) and there are so many alternatives that you can't really choose to teach one and leave the others out.
And your limited amount of class hours often are barely enough to talk about the language itself in the first place. Not saying that what is tought is adequate, I agree that it's not, but I'm saying that it's also not easy to teach something evolving as fast as software engineering :D. It's not like teaching math or regular engineering, which are pretty stable.
solidbebe
Profile Blog Joined November 2010
Netherlands4921 Posts
May 13 2015 12:24 GMT
#12594
On May 13 2015 19:47 Manit0u wrote:
It actually doesn't matter what they teach you at school. What matters is that what they teach you is in no way related to what you'll be doing in the real world. Where I work now we have 16 developers, of whom only 2 have CS education and both of them are saying that they only did it to get the paper because they don't use any of the programming skills acquired during 5 years of university.

It's pretty sad though. You spend a lot of time trying to learn something, fresh out of school you review some job offers and you have absolutely no idea what 90% of the requirements mean because no one ever told you that. You're no longer in the world of "write a small app to get your degree", you're in the world of "are you proficient with this framework that uses about a million lines of code to build even the simplest of applications?". You get to work on projects spanning thousands of files, using frameworks, tools and libraries that you haven't heard about before etc.

People who had Java during their CS courses, please tell me - did they teach you anything about stuff like Maven, Spring, Hibernate, JDBC? Because that are just few of the tools you'll be using out in the real world and knowing them well is pretty much a prerequisite for getting a job.

Im at the end of my first year of my CS bachelor. One of my courses now is called software quality and testing. The practical consists of testing a small pacman game framework with the help of maven (and eclemma).
That's the 2nd time in a week I've seen someone sig a quote from this GD and I have never witnessed a sig quote happen in my TL history ever before. -Najda
Manit0u
Profile Blog Joined August 2004
Poland17651 Posts
Last Edited: 2015-05-13 12:46:18
May 13 2015 12:44 GMT
#12595
On May 13 2015 20:33 ZenithM wrote:
Teaching programming is hard if you intend to keep up with every single new flavor-of-the-month tool. Tools, libraries and frameworks evolve so fast in the industry (well, faster than professors can update their class material at least :D) and there are so many alternatives that you can't really choose to teach one and leave the others out.
And your limited amount of class hours often are barely enough to talk about the language itself in the first place. Not saying that what is tought is adequate, I agree that it's not, but I'm saying that it's also not easy to teach something evolving as fast as software engineering :D. It's not like teaching math or regular engineering, which are pretty stable.


Personally I think that teaching CS should not be teaching about the basic language but picking one framework for it - not necessarily the most bleeding edge, something that's stable enough, has been around for some time and has reasonable LTS versions. You then teach people about the language by teaching them to use said framework. This way they get hands on experience with at least one of them and it'll be easier for them to learn others.

I learned PHP this way, knew barely anything about it before my first internship (had only minor experience with C, LPC and C#) and I was thrown straight away into the development team working on a big project from scratch (web app deployed in 11 countries). First month was pretty hard, but after that I got the gist of it and it all suddenly made sense and work became very enjoyable.

That's pretty much how CS courses should go. First year - some basic programming in something simple like Python, so that people get the hang of the basic programming-related concepts. Second and subsequent years - throw them in the deep end of some framework (like Spring for Java) and actually make them create a working application in teams, including managing git repositories, doing actual research (it's surprising how many people lack basic googling/stackoverflowing skills) and what not.

I know this would make the course much harder, but people who complete it would actually have some useful experience and could find a job in the field much easier. Purely academic approach simply isn't doing anything for most of the people attending those courses and trying to learn all that yourself is nigh impossible.
Time is precious. Waste it wisely.
Ropid
Profile Joined March 2009
Germany3557 Posts
May 13 2015 13:30 GMT
#12596
There's also the complete opposite, you know. I actually regret that the academic side of "computer science" wasn't there enough.

I've looked at this here today: http://ncatlab.org/nlab/show/polynomial functor

It is related to object-oriented programming. I don't understand.

You need to give room for something like this as well, or you won't find people that want to work on it in depth. Also, if people can't even vaguely get what the stuff is about, they won't really know if this is actually an interesting topic for them or not. You need to show the basics that would enable people to start approaching those kinds of topics. I felt that was missing.
"My goal is to replace my soul with coffee and become immortal."
ZenithM
Profile Joined February 2011
France15952 Posts
Last Edited: 2015-05-13 14:42:27
May 13 2015 14:38 GMT
#12597
I actually think that you can't teach programming in 3 years of college education like we do over here. Good programmers are not the ones who learned in class the meager things tought in there, they're the ones who were interested in it since they were 12 :D.
Myself I never had actual programming classes, and I followed a heavy math curriculum, then a super theoretical computer science master whose structure kinda implies that if you're interested in programming, you already know it, and if you're not interested you don't need to be taught and will become a computer science researcher, most likely.

Maybe in the US you're better at teaching CS and software engineering in a few years, but I doubt the top prospects coming out of college are people who knew nothing about it after high school :D
RoyGBiv_13
Profile Blog Joined August 2010
United States1275 Posts
May 13 2015 18:30 GMT
#12598
Anecdotal evidence disagrees with the assertion that you cannot teach programming is just 3 years. Many people have learned how to be effective programmers in much less time than that.

+ Show Spoiler +
I'd certainly be interested in experimental data, but I don't really keep up on education journal :-/


It's easy to have a revisionist view of your own background after realizing that you are a programmer. Many programmers will say they have been interested since they were 12, but so were a lot of non-programmers who just never "realized" it.


Probably the only thing that programmers have in common is that they like to program.
Any sufficiently advanced technology is indistinguishable from magic
killa_robot
Profile Joined May 2010
Canada1884 Posts
May 13 2015 20:49 GMT
#12599
On May 13 2015 19:47 Manit0u wrote:
People who had Java during their CS courses, please tell me - did they teach you anything about stuff like Maven, Spring, Hibernate, JDBC? Because that are just few of the tools you'll be using out in the real world and knowing them well is pretty much a prerequisite for getting a job.


Nope. Used Hadoop, but apart from that didn't use any frameworks.

You don't go to school to learn how to work though, you go to school to learn how to learn. One of the greatest disconnects we have right now is between schools and employers.
solidbebe
Profile Blog Joined November 2010
Netherlands4921 Posts
Last Edited: 2015-05-13 21:05:41
May 13 2015 21:04 GMT
#12600
So Im very new to C++ and don't know anything about the language's intricacies yet. I've implemented this algorithm which computes the sum of values on the even levels of a tree. Given that I have to use lists (and not vectors or what have it), is this a good implementation?

+ Show Spoiler +

void visitTreeEvenLevels(std::list<Tree> treelist, int i, float& total){
if (treelist.size() == 0){
return;
}
std::list<Tree>::const_iterator ptr = treelist.begin();
std::list<Tree> cont;
for (; ptr != treelist.end(); ptr++){
std::list<Tree> temp = ptr->children;
std::list<Tree>::const_iterator ptr2 = temp.begin();
for (; ptr2 != temp.end(); ptr2++){
cont.push_front(*ptr2);
if (i % 2 == 0){
total += ptr2->value;
}
}
}
++i;
visitTreeEvenLevels(cont, i, total);
}


Just looking for criticism from experienced C/C++ people
That's the 2nd time in a week I've seen someone sig a quote from this GD and I have never witnessed a sig quote happen in my TL history ever before. -Najda
Prev 1 628 629 630 631 632 1032 Next
Please log in or register to reply.
Live Events Refresh
Replay Cast
00:00
Rongyi Cup S3 - Playoffs Day 3
LiquipediaDiscussion
[ Submit Event ]
Live Streams
Refresh
StarCraft 2
JimRising 677
UpATreeSC 307
RuFF_SC2 167
StarCraft: Brood War
Artosis 752
Shuttle 122
Hyuk 75
Noble 24
Dota 2
monkeys_forever601
NeuroSwarm94
LuMiX1
League of Legends
C9.Mang0330
Cuddl3bear10
Counter-Strike
taco 592
Foxcn305
Super Smash Bros
hungrybox439
Mew2King102
Other Games
summit1g7754
ViBE70
Livibee48
Hui .39
Organizations
Other Games
gamesdonequick2002
BasetradeTV1351
StarCraft 2
Blizzard YouTube
StarCraft: Brood War
BSLTrovo
sctven
[ Show 17 non-featured ]
StarCraft 2
• Berry_CruncH133
• Hupsaiya 83
• davetesta39
• Kozan
• Migwel
• AfreecaTV YouTube
• sooper7s
• intothetv
• IndyKCrew
• LaughNgamezSOOP
StarCraft: Brood War
• Pr0nogo 1
• STPLYoutube
• ZZZeroYoutube
• BSLYoutube
Dota 2
• masondota21612
League of Legends
• Doublelift4210
• Scarra1701
Upcoming Events
Big Brain Bouts
13h 35m
goblin vs Kelazhur
TriGGeR vs Krystianer
Replay Cast
20h 35m
RongYI Cup
1d 7h
herO vs Maru
Replay Cast
1d 20h
uThermal 2v2 Circuit
2 days
Replay Cast
3 days
Wardi Open
3 days
Monday Night Weeklies
3 days
Sparkling Tuna Cup
4 days
The PondCast
6 days
Liquipedia Results

Completed

Proleague 2026-02-04
HSC XXVIII
Underdog Cup #3

Ongoing

CSL 2025 WINTER (S19)
KCM Race Survival 2026 Season 1
Acropolis #4 - TS4
Escore Tournament S1: W7
Rongyi Cup S3
Nations Cup 2026
IEM Kraków 2026
BLAST Bounty Winter 2026
BLAST Bounty Winter Qual
eXTREMESLAND 2025
SL Budapest Major 2025
ESL Impact League Season 8

Upcoming

Escore Tournament S1: W8
Acropolis #4
IPSL Spring 2026
HSC XXIX
uThermal 2v2 2026 Main Event
Bellum Gens Elite Stara Zagora 2026
RSL Revival: Season 4
WardiTV Winter 2026
LiuLi Cup: 2025 Grand Finals
FISSURE Playground #3
IEM Rio 2026
PGL Bucharest 2026
Stake Ranked Episode 1
BLAST Open Spring 2026
ESL Pro League Season 23
ESL Pro League Season 23
PGL Cluj-Napoca 2026
TLPD

1. ByuN
2. TY
3. Dark
4. Solar
5. Stats
6. Nerchio
7. sOs
8. soO
9. INnoVation
10. Elazer
1. Rain
2. Flash
3. EffOrt
4. Last
5. Bisu
6. Soulkey
7. Mini
8. Sharp
Sidebar Settings...

Advertising | Privacy Policy | Terms Of Use | Contact Us

Original banner artwork: Jim Warren
The contents of this webpage are copyright © 2026 TLnet. All Rights Reserved.