• Log InLog In
  • Register
Liquid`
Team Liquid Liquipedia
EDT 15:10
CET 20:10
KST 04:10
  • 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
[ASL21] Ro24 Preview Pt1: New Chaos0Team Liquid Map Contest #22 - Presented by Monster Energy7ByuL: The Forgotten Master of ZvT30Behind the Blue - Team Liquid History Book19Clem wins HomeStory Cup 289
Community News
Weekly Cups (March 16-22): herO doubles, Cure surprises3Blizzard Classic Cup @ BlizzCon 2026 - $100k prize pool48Weekly Cups (March 9-15): herO, Clem, ByuN win42026 KungFu Cup Announcement6BGE Stara Zagora 2026 cancelled12
StarCraft 2
General
Potential Updates Coming to the SC2 CN Server What mix of new & old maps do you want in the next ladder pool? (SC2) Blizzard Classic Cup @ BlizzCon 2026 - $100k prize pool Weekly Cups (March 16-22): herO doubles, Cure surprises Weekly Cups (August 25-31): Clem's Last Straw?
Tourneys
Sparkling Tuna Cup - Weekly Open Tournament World University TeamLeague (500$+) | Signups Open RSL Season 4 announced for March-April WardiTV Team League Season 10 KSL Week 87
Strategy
Custom Maps
[M] (2) Frigid Storage Publishing has been re-enabled! [Feb 24th 2026]
External Content
The PondCast: SC2 News & Results Mutation # 518 Radiation Zone Mutation # 517 Distant Threat Mutation # 516 Specter of Death
Brood War
General
How much money terran looses from gas steal? mca64Launcher - New Version with StarCraft: Remast RepMastered™: replay sharing and analyzer site ASL21 General Discussion BGH Auto Balance -> http://bghmmr.eu/
Tourneys
[ASL21] Ro24 Group B [ASL21] Ro24 Group C [Megathread] Daily Proleagues 2026 Changsha Offline Cup
Strategy
Fighting Spirit mining rates Simple Questions, Simple Answers Soma's 9 hatch build from ASL Game 2
Other Games
General Games
General RTS Discussion Thread Nintendo Switch Thread Stormgate/Frost Giant Megathread Path of Exile Dawn of War IV
Dota 2
Official 'what is Dota anymore' discussion The Story of Wings Gaming
League of Legends
G2 just beat GenG in First stand
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
TL Mafia Community Thread Five o'clock TL Mafia Mafia Game Mode Feedback/Ideas Vanilla Mini Mafia
Community
General
US Politics Mega-thread Canadian Politics Mega-thread Russo-Ukrainian War Thread European Politico-economics QA Mega-thread Things Aren’t Peaceful in Palestine
Fan Clubs
The IdrA Fan Club
Media & Entertainment
[Req][Books] Good Fantasy/SciFi books Movie Discussion! [Manga] One Piece
Sports
2024 - 2026 Football Thread Cricket [SPORT] Formula 1 Discussion Tokyo Olympics 2021 Thread General nutrition recommendations
World Cup 2022
Tech Support
Laptop capable of using Photoshop Lightroom?
TL Community
The Automated Ban List
Blogs
Funny Nicknames
LUCKY_NOOB
Money Laundering In Video Ga…
TrAiDoS
Iranian anarchists: organize…
XenOsky
FS++
Kraekkling
Shocked by a laser…
Spydermine0240
Unintentional protectionism…
Uldridge
ASL S21 English Commentary…
namkraft
Customize Sidebar...

Website Feedback

Closed Threads



Active: 1935 users

The Big Programming Thread - Page 238

Forum Index > General Forum
Post a Reply
Prev 1 236 237 238 239 240 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.
tec27
Profile Blog Joined June 2004
United States3702 Posts
February 02 2013 20:28 GMT
#4741
On February 02 2013 23:28 MisterD wrote:
Show nested quote +
On February 02 2013 18:55 phar wrote:
On February 02 2013 17:01 AmericanUmlaut wrote:but my impression is that everyone is in love with whichever one they have the most experience with.

At my first pass I read that as "loathe whichever one they have the most experience with", but maybe that's just because I use Eclipse and it apparently can't stop from freezing every other god damn minute with 24G RAM and 8 cores.

you are aware that eclipse, as a java application, runs in a VM with a fixed upper memory limit which by default is at 384mb? It doesn't care at all how much ram you have if you don't allow it to use it. edit your eclipse.ini if you want to use more!

I'm fairly certain phar is using a custom eclipse ini, just the codebase he works on is very, very large.
Can you jam with the console cowboys in cyberspace?
phar
Profile Joined August 2011
United States1080 Posts
Last Edited: 2013-02-02 21:35:45
February 02 2013 21:32 GMT
#4742
Yea after upping it to 8G and trying a bunch of different shit, I just decided fuck it and came up with a list of things to try to avoid. Never building in eclipse, debug only after building externally first, never F3 too far down the stack, only autocomplete if you're 100% certain that there's only like ~50 possible targets instead of a gazillion, never use eclipse refactoring on non-private thingies, etc etc.
Who after all is today speaking about the destruction of the Armenians?
Craton
Profile Blog Joined December 2009
United States17281 Posts
Last Edited: 2013-02-03 08:29:32
February 03 2013 01:25 GMT
#4743
On February 02 2013 16:49 beamer159 wrote:
What software do most companies use to write and test code? I ask because I started learning programming in school with Visual Basic, and then progressed to Visual C++. Then, for Java, I used Netbeans. After a couple years, all my classes switched over to using Linux with Vim and such. Now, in my upcoming class, I will probably be using Eclipse. Is there an industry standard for programming? I'm primarily interested in C++ programming, and I'm aware that on Windows, the go-to software package is VS. So I actually have 2 questions: Is Windows or Linux the dominant OS in the programming industry, and in terms of Linux, what is most-used C++ development tool in the industry?

I suppose it varies quite a bit.

We use a good mix of C/C++/Java/VB.NET between different projects. We also have a lot of PL/SQL-based backend stuff. We often have simple .NET front-ends to help facilitate running all of our PL/SQL items, which is especially useful for integration testing.
twitch.tv/cratonz
pyro19
Profile Joined August 2010
6575 Posts
February 03 2013 08:22 GMT
#4744
Can anybody link me a good tutorial to learn binary search trees in data structures using C...I missed like a week of lectures and now i cannot wrap my head around it
Thy Shall Die Alone...or emm..something like that.
phar
Profile Joined August 2011
United States1080 Posts
February 03 2013 08:28 GMT
#4745
Are you stuck on what a binary search tree is, or how to write C code? Do you know what a struct is?

Either way, stanford: http://cslibrary.stanford.edu/110/BinaryTrees.html
Who after all is today speaking about the destruction of the Armenians?
nucLeaRTV
Profile Joined May 2011
Romania822 Posts
February 03 2013 08:30 GMT
#4746
That's actually useful as I'm starting Data structures in llike 3 weeks.
"Having your own haters means you are famous"
pyro19
Profile Joined August 2010
6575 Posts
Last Edited: 2013-02-03 08:39:56
February 03 2013 08:39 GMT
#4747
On February 03 2013 17:28 phar wrote:
Are you stuck on what a binary search tree is, or how to write C code? Do you know what a struct is?

Either way, stanford: http://cslibrary.stanford.edu/110/BinaryTrees.html


I got stuck on the Code..
Thank a bunch for the link tho
Thy Shall Die Alone...or emm..something like that.
YiSunsin
Profile Joined August 2010
Slovakia60 Posts
February 03 2013 11:48 GMT
#4748
Hi all, so I have another carrer-advice problem: from tester to programmer

I am currently working part-time in big open source company as a tester, while I am about to finish my Masters degree in IT security. As everybody in this thread, I had C and Java classes at school, which I found pretty useless and realised how little they mean in reality. Even though I was taught all the important C stuff, when I look at source code of product that I test, I know this kind of programming is far down the road.

I have done some agile programming in two, we did some plugins in Java for internal testing tools. It was a good experience, but really the first one for me as programmer. I do some programming in Ruby for my Masters thesis, but since it`s just my project, I lack feedback and I feel it`s more like a playground in programming, rather than learning and improving.

To sum it up, I am writing bash scripts for testing all day and troubleshoot nasty things in Linux environment, did some Ruby and Java programming and I am quite good at Unix/Linux. From this thread I understand this is not a good basis for any programmer

So my three questions:
How can I transition from tester to programmer ?
What language should I learn and practice (first) ?
I want to become a (at least decent) programmer and understand the code, before I start pursuing carrer in security. Is this a way to go?

Thanks for all the tips !

Btw. currently I lean towards learning Haskell - way too sexy language and has so many things to learn that would benefit me. Just not sure if this is of any use in security
"BO for girls: @8 movie, @10 dinner , around 12 I lean in for the kiss and if that messes up, I try to get back with a little bit of harassment." Day[9]
SevenShots
Profile Joined November 2011
Germany84 Posts
February 03 2013 11:58 GMT
#4749
I've had a full class on functional programming with focus on haskell.
To be honest I still don't see what the whole buzz is about. I can't see real use to it other
than playing around and building some prototypes.
YiSunsin
Profile Joined August 2010
Slovakia60 Posts
Last Edited: 2013-02-03 12:22:57
February 03 2013 12:22 GMT
#4750
On February 03 2013 20:58 SevenShots wrote:
I've had a full class on functional programming with focus on haskell.
To be honest I still don't see what the whole buzz is about. I can't see real use to it other
than playing around and building some prototypes.


At my university, they though the best politics would be to teach C and Haskell at the first semester. Half of the students passed Haskell, and even though I did, I didn`t like it at all . I got proper theoretical backgroung and I appreciated theoretical aspects of Haskell, and still I didn`t see any usefullness in it. Only after I started working and saw another team with testing framework based on functional language (and they are testing web-app frontend ), and after I realised how many bugs I generate thanks to side-effects when programming, only then I started to appreciate Haskell
"BO for girls: @8 movie, @10 dinner , around 12 I lean in for the kiss and if that messes up, I try to get back with a little bit of harassment." Day[9]
SevenShots
Profile Joined November 2011
Germany84 Posts
Last Edited: 2013-02-03 12:46:27
February 03 2013 12:45 GMT
#4751
Well, in my opinion not generating side-effects is simply a matter of good coding-style.

I don't know a lot about professional testing and it sure can be that functional programming is of great use there.
But in real systems/environments i think it is just way to bad performance wise.

I personally think that C is a pain in the ass, but you probably just can't get around it if you really want to
start a career in programming.
Also I think it's not really a matter about what language you learn first. I think one should choose a reasonable
language (probably Java/C/C++) and work with it, especially in a (small) project. Once you are reasonably good
at one language learning another one becomes way easier.

€: At my university we also had haskell in the first semester. I think haskell is really awesome for understanding
concepts like recursive functions and a lot of other things. Just not for real projects.
Nick3
Profile Joined March 2011
513 Posts
February 03 2013 12:49 GMT
#4752
On February 03 2013 20:58 SevenShots wrote:
I've had a full class on functional programming with focus on haskell.
To be honest I still don't see what the whole buzz is about. I can't see real use to it other
than playing around and building some prototypes.


If you only have learned the basics of Haskell it is quite obviuous that it is hard to see how it can be used for implementation of larger projects, the same could be said for any programming language. The problem is that people look at the basics of the language and then they conclude that the language can not be used in "real" applications. There are areas that Haskell excels in, for example mathematical computations, AI, domain specific languages etc. Programming is all about choosing the right tool for solving a problem, and OOP is not always that tool.

Here is a link with example of how Haskell is used in the industry: link
Kambing
Profile Joined May 2010
United States1176 Posts
February 03 2013 12:50 GMT
#4753
On February 03 2013 21:22 YiSunsin wrote:
Show nested quote +
On February 03 2013 20:58 SevenShots wrote:
I've had a full class on functional programming with focus on haskell.
To be honest I still don't see what the whole buzz is about. I can't see real use to it other
than playing around and building some prototypes.


At my university, they though the best politics would be to teach C and Haskell at the first semester. Half of the students passed Haskell, and even though I did, I didn`t like it at all . I got proper theoretical backgroung and I appreciated theoretical aspects of Haskell, and still I didn`t see any usefullness in it. Only after I started working and saw another team with testing framework based on functional language (and they are testing web-app frontend ), and after I realised how many bugs I generate thanks to side-effects when programming, only then I started to appreciate Haskell


Yup. It's not necessarily the fact that you'll use Haskell day-to-day (although there are places where you can do that). You should have learned that:

(1) Effects impede reasoning about programs, yet are necessary to write real-world applications (albeit much less so than you probably first imagined).
(2) Compositionality leads to elegant, concise code.
(3) A strong typing combined with the above allows you to reason and make guarantees about your programs in ways that you are not able to in traditional programming languages.

Those three key concepts should bleed over into anything else that you write, irrespective of the language involved.
mcc
Profile Joined October 2010
Czech Republic4646 Posts
Last Edited: 2013-02-03 15:48:48
February 03 2013 15:46 GMT
#4754
On February 03 2013 21:45 SevenShots wrote:
Well, in my opinion not generating side-effects is simply a matter of good coding-style.

I don't know a lot about professional testing and it sure can be that functional programming is of great use there.
But in real systems/environments i think it is just way to bad performance wise.

I personally think that C is a pain in the ass, but you probably just can't get around it if you really want to
start a career in programming.
Also I think it's not really a matter about what language you learn first. I think one should choose a reasonable
language (probably Java/C/C++) and work with it, especially in a (small) project. Once you are reasonably good
at one language learning another one becomes way easier.

€: At my university we also had haskell in the first semester. I think haskell is really awesome for understanding
concepts like recursive functions and a lot of other things. Just not for real projects.

Coding style can help, but in big projects they are unavoidable in the end. And functional programming can help to lower the number of them.

As for functional programming in general it can be used for real projects, but it is not suitable for all of them. But paradigms of functional programming are starting to be brought into languages like C# and D and are extremely useful there. Functionally pure functions are for example thread safe (I am ignoring some issues) and you can be absolutely sure about that. Whereas without that no coding style will make it so and you will have to do proper analysis to prove that.

EDIT: Kambing said that much better and more generalized
Arnstein
Profile Blog Joined May 2010
Norway3381 Posts
February 03 2013 16:37 GMT
#4755
How can I make a two dimensional array in C++ where you write both values?
It's not like this.
int todim[5][5]; {10, 20, 30, 40, 50}{1, 2, 3, 4, 1};

rsol in response to the dragoon voice being heard in SCII: dragoon ai reaches new lows: wanders into wrong game
Kambing
Profile Joined May 2010
United States1176 Posts
Last Edited: 2013-02-03 16:50:00
February 03 2013 16:49 GMT
#4756
On February 04 2013 01:37 Arnstein wrote:
How can I make a two dimensional array in C++ where you write both values?
It's not like this.
int todim[5][5]; {10, 20, 30, 40, 50}{1, 2, 3, 4, 1};



Arrays-of-arrays initializer syntax:


int todim[5][5] = { { 10, 20, 30, 40, 50 },
{ 1 , 2 , 3 , 4 , 1 } };
Arnstein
Profile Blog Joined May 2010
Norway3381 Posts
February 03 2013 16:56 GMT
#4757
Thank you very much

Also, isn't xretning the horisontal print here, and yretning the vertical?


for (int xretning = 0; xretning < 5; xretning++)
{
for (int yretning = 0; yretning < 7; yretning++)
{
cout << tabell[xretning][yretning] << " ";
}
cout << endl;
}


For me it prints 7 numbers horisontally, and 5 numbers vertically.
rsol in response to the dragoon voice being heard in SCII: dragoon ai reaches new lows: wanders into wrong game
Kambing
Profile Joined May 2010
United States1176 Posts
February 03 2013 17:10 GMT
#4758
On February 04 2013 01:56 Arnstein wrote:
Thank you very much

Also, isn't xretning the horisontal print here, and yretning the vertical?


for (int xretning = 0; xretning < 5; xretning++)
{
for (int yretning = 0; yretning < 7; yretning++)
{
cout << tabell[xretning][yretning] << " ";
}
cout << endl;
}


For me it prints 7 numbers horisontally, and 5 numbers vertically.


From what you said alone I'd say, no, your logic is reversed. =)

To see that, trace through the code line by line on paper and see what the execution yields.
DertoQq
Profile Joined October 2010
France906 Posts
February 03 2013 17:52 GMT
#4759
On February 04 2013 01:56 Arnstein wrote:
Thank you very much

Also, isn't xretning the horisontal print here, and yretning the vertical?


for (int xretning = 0; xretning < 5; xretning++)
{
for (int yretning = 0; yretning < 7; yretning++)
{
cout << tabell[xretning][yretning] << " ";
}
cout << endl;
}


For me it prints 7 numbers horisontally, and 5 numbers vertically.


If your put it in english, your code will execute 5 time a loop that will print 7 values followed by an end line.

so : 7 columns, 5 rows
"i've made some empty promises in my life, but hands down that was the most generous" - Michael Scott
Arnstein
Profile Blog Joined May 2010
Norway3381 Posts
February 03 2013 19:32 GMT
#4760
For some reason I can't get my head around this. I visualize it like first you get xretning[0], and then you make yretning from 0 6, then you get xretning[1] and get the vertical yretning from 0-6. Is there a visualiser for C++ much like pythontutor.com?

rsol in response to the dragoon voice being heard in SCII: dragoon ai reaches new lows: wanders into wrong game
Prev 1 236 237 238 239 240 1032 Next
Please log in or register to reply.
Live Events Refresh
Next event in 4h 50m
[ Submit Event ]
Live Streams
Refresh
StarCraft 2
elazer 249
mouzHeroMarine 225
OGKoka 167
UpATreeSC 156
TKL 142
ProTech128
JuggernautJason58
MindelVK 45
StarCraft: Brood War
Britney 18922
Calm 3838
Mini 839
EffOrt 647
Shuttle 279
ggaemo 207
actioN 108
Mind 84
Mong 63
Aegong 33
[ Show more ]
IntoTheRainbow 10
Bale 8
Dota 2
Gorgc8915
Counter-Strike
pashabiceps3141
Heroes of the Storm
Liquid`Hasu114
Other Games
Grubby2782
FrodaN1122
Beastyqt680
KnowMe181
B2W.Neo133
QueenE97
C9.Mang080
ZombieGrub25
Organizations
StarCraft 2
ComeBackTV 206
Dota 2
PGL Dota 2 - Main Stream35
StarCraft 2
Blizzard YouTube
StarCraft: Brood War
BSLTrovo
sctven
[ Show 19 non-featured ]
StarCraft 2
• Reevou 4
• intothetv
• Kozan
• sooper7s
• Migwel
• AfreecaTV YouTube
• LaughNgamezSOOP
• IndyKCrew
StarCraft: Brood War
• 80smullet 3
• FirePhoenix3
• STPLYoutube
• ZZZeroYoutube
• BSLYoutube
Dota 2
• WagamamaTV946
• lizZardDota267
League of Legends
• Nemesis2876
• TFBlade745
Other Games
• imaqtpie787
• Shiphtur165
Upcoming Events
Replay Cast
4h 50m
KCM Race Survival
13h 50m
The PondCast
14h 50m
WardiTV Team League
16h 50m
OSC
16h 50m
Replay Cast
1d 4h
WardiTV Team League
1d 16h
Big Brain Bouts
1d 21h
Fjant vs SortOf
YoungYakov vs Krystianer
Reynor vs HeRoMaRinE
RSL Revival
2 days
Cure vs Zoun
herO vs Rogue
WardiTV Team League
2 days
[ Show More ]
Platinum Heroes Events
2 days
BSL
3 days
RSL Revival
3 days
ByuN vs Maru
MaxPax vs TriGGeR
WardiTV Team League
3 days
BSL
3 days
Replay Cast
4 days
Replay Cast
4 days
Afreeca Starleague
4 days
Light vs Calm
Royal vs Mind
Wardi Open
4 days
Monday Night Weeklies
4 days
OSC
5 days
Sparkling Tuna Cup
5 days
Afreeca Starleague
5 days
Rush vs PianO
Flash vs Speed
Replay Cast
6 days
Afreeca Starleague
6 days
BeSt vs Leta
Queen vs Jaedong
Liquipedia Results

Completed

Proleague 2026-03-24
WardiTV Winter 2026
Underdog Cup #3

Ongoing

KCM Race Survival 2026 Season 1
BSL Season 22
CSL Elite League 2026
CSL Season 20: Qualifier 1
ASL Season 21
Acropolis #4 - TS6
RSL Revival: Season 4
Nations Cup 2026
NationLESS Cup
BLAST Open Spring 2026
ESL Pro League S23 Finals
ESL Pro League S23 Stage 1&2
PGL Cluj-Napoca 2026
IEM Kraków 2026
BLAST Bounty Winter 2026
BLAST Bounty Winter Qual

Upcoming

2026 Changsha Offline CUP
CSL Season 20: Qualifier 2
CSL 2026 SPRING (S20)
Acropolis #4
IPSL Spring 2026
BSL 22 Non-Korean Championship
CSLAN 4
Kung Fu Cup 2026 Grand Finals
HSC XXIX
uThermal 2v2 2026 Main Event
IEM Cologne Major 2026
Stake Ranked Episode 2
CS Asia Championships 2026
Asian Champions League 2026
IEM Atlanta 2026
PGL Astana 2026
BLAST Rivals Spring 2026
CCT Season 3 Global Finals
IEM Rio 2026
PGL Bucharest 2026
Stake Ranked Episode 1
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.