• Log InLog In
  • Register
Liquid`
Team Liquid Liquipedia
EDT 10:06
CEST 16:06
KST 23:06
  • 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
Team Liquid Map Contest #22 - The Finalists14[ASL21] Ro16 Preview Pt1: Fresh Flow9[ASL21] Ro24 Preview Pt2: News Flash10[ASL21] Ro24 Preview Pt1: New Chaos0Team Liquid Map Contest #22 - Presented by Monster Energy21
Community News
2026 GSL Season 1 Qualifiers11Maestros of the Game 2 announced32026 GSL Tour plans announced11Weekly Cups (April 6-12): herO doubles, "Villains" prevail1MaNa leaves Team Liquid21
StarCraft 2
General
MaNa leaves Team Liquid 2026 GSL Tour plans announced Team Liquid Map Contest #22 - The Finalists Weekly Cups (April 6-12): herO doubles, "Villains" prevail Oliveira Would Have Returned If EWC Continued
Tourneys
GSL CK: More events planned pending crowdfunding 2026 GSL Season 1 Qualifiers Sparkling Tuna Cup - Weekly Open Tournament Master Swan Open (Global Bronze-Master 2) SEL Doubles (SC Evo Bimonthly)
Strategy
Custom Maps
[D]RTS in all its shapes and glory <3 [A] Nemrods 1/4 players [M] (2) Frigid Storage
External Content
Mutation # 521 Memorable Boss The PondCast: SC2 News & Results Mutation # 520 Moving Fees Mutation # 519 Inner Power
Brood War
General
Pros React To: Tulbo in Ro.16 Group A ASL21 General Discussion BGH Auto Balance -> http://bghmmr.eu/ Data needed RepMastered™: replay sharing and analyzer site
Tourneys
Escore Tournament StarCraft Season 2 [Megathread] Daily Proleagues [ASL21] Ro16 Group A [ASL21] Ro16 Group B
Strategy
Simple Questions, Simple Answers What's the deal with APM & what's its true value Any training maps people recommend? Fighting Spirit mining rates
Other Games
General Games
Nintendo Switch Thread General RTS Discussion Thread Battle Aces/David Kim RTS Megathread Stormgate/Frost Giant Megathread Starcraft Tabletop Miniature Game
Dota 2
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
Vanilla Mini Mafia Mafia Game Mode Feedback/Ideas TL Mafia Community Thread Five o'clock TL Mafia
Community
General
Things Aren’t Peaceful in Palestine US Politics Mega-thread Russo-Ukrainian War Thread YouTube Thread Canadian Politics Mega-thread
Fan Clubs
The IdrA Fan Club
Media & Entertainment
Anime Discussion Thread [Req][Books] Good Fantasy/SciFi books [Manga] One Piece Movie Discussion!
Sports
2024 - 2026 Football Thread McBoner: A hockey love story Formula 1 Discussion Cricket [SPORT]
World Cup 2022
Tech Support
[G] How to Block Livestream Ads
TL Community
The Automated Ban List
Blogs
Reappraising The Situation T…
TrAiDoS
lurker extra damage testi…
StaticNine
Broowar part 2
qwaykee
Funny Nicknames
LUCKY_NOOB
Iranian anarchists: organize…
XenOsky
ASL S21 English Commentary…
namkraft
Customize Sidebar...

Website Feedback

Closed Threads



Active: 1735 users

The Big Programming Thread - Page 9

Forum Index > General Forum
Post a Reply
Prev 1 7 8 9 10 11 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.
Badjas
Profile Blog Joined October 2008
Netherlands2038 Posts
July 11 2010 21:52 GMT
#161
As a programmer I crave the thought of having a finished product. And a happy end user. From there is the motivation to work on the right stuff and implement it up to par.

And when I was younger, I was motivated sometimes by learning a new trick, or trying out a gameplay idea, being intrigued by things you see. If you're curious and have the right mentality you will have an enjoyable time learning to program. You'll hit a brick wall though if you want to write your operating system as a first foray. If you're older and have high expectations of your abilities, you can be much more easily frustrated than if you're a kid who is already fascinated by lights blinking at a constant rate. The internet provides all you need to learn to program but classes help to speed up learning.
I <3 the internet, I <3 you
SonuvBob
Profile Blog Joined October 2006
Aiur21550 Posts
July 11 2010 21:57 GMT
#162
On July 12 2010 06:02 xLethargicax wrote:
I've always wanted to learn a programming language. Whenever I seem to try from an internet source or a book, I just get so bored.

The prospect of programming excites me, but I feel like there is no way for me to learn except for a class. Do you programmers just crave the thought of learning a language? or is it more enjoying the product?

Will I ever be a programmer =[[[[[[[[[?

Try fiddling around with some existing code (something simple) in whatever language you want to learn. Just start out making one small change at a time and see if it has the effect you expect (which is usually breaking it in an interesting way :p). You should be able to figure out what each piece of code does (use a reference for the more difficult stuff) and learn the basic syntax of the language pretty quickly.
Administrator
catamorphist
Profile Joined May 2010
United States297 Posts
Last Edited: 2010-07-11 21:58:41
July 11 2010 21:57 GMT
#163
Yeah, I would add that it's almost impossible for a beginner to sit down for a few hours and try to do something programming-related and "fail." There's such a big world of stuff that if you reflect back on your few hours, you'll realize that you have really learned some cool, concrete things, even if you didn't do what you were trying to do. If you put in the time, you will learn, no matter what you are putting in the time doing. So don't overthink it -- just work. Or don't.
http://us.battle.net/sc2/en/profile/281144/1/catamorphist/
Adeny
Profile Blog Joined January 2009
Norway1233 Posts
July 11 2010 22:04 GMT
#164
So, I've decided to check out what's up in the .NET world, and coming from C++, it only seems natural to start at C#. So if you've been through the procces of filtering through online tutorials and sites, maybe you could throw me a hand in helping me pick the better resources?
Epsilon8
Profile Blog Joined May 2010
Canada173 Posts
July 11 2010 22:07 GMT
#165
On July 12 2010 07:04 Adeny wrote:
So, I've decided to check out what's up in the .NET world, and coming from C++, it only seems natural to start at C#. So if you've been through the procces of filtering through online tutorials and sites, maybe you could throw me a hand in helping me pick the better resources?


.Net is superb. You might want to check out the MSDN forums for information and I'm not 100 % sure but I believe Microsoft has tutorials on that site as well. If not its still the best repository of information and examples available.

Plus since its Microsoft you never have to worry about correctness or if the code is out of date. : P

If you wish to travel far and fast, travel light. Take off all your envies, jealousies, unforgiveness, selfishness, and fears.
catamorphist
Profile Joined May 2010
United States297 Posts
July 11 2010 22:18 GMT
#166
On July 12 2010 07:04 Adeny wrote:
Plus since its Microsoft you never have to worry about correctness or if the code is out of date. : P


No idea what you mean here -- there's a lot of very crufty old (pre-generics) .NET code out there, much of it written by Microsoft.

I write C# in my day job. Here are the generally most awesome C# resources I know of:

http://stackoverflow.com - very C#-oriented, pretty much has a question about everything at this point, does a good job of bubbling good answers to the top.

http://blogs.msdn.com/b/ericlippert/ - Lippert is on the C# compiler team and knows about every little corner case in the language. A ton of reasonably thought-provoking C# posts.

http://community.bartdesmet.net/blogs/bart/default.aspx - Also a lot of interesting in-depth C# and .NET material.

http://ayende.com/Blog/ - Likewise, although with a general focus on data access.
http://us.battle.net/sc2/en/profile/281144/1/catamorphist/
Epsilon8
Profile Blog Joined May 2010
Canada173 Posts
Last Edited: 2010-07-11 22:33:19
July 11 2010 22:31 GMT
#167
+ Show Spoiler +
On July 12 2010 07:18 catamorphist wrote:
Show nested quote +
On July 12 2010 07:04 Adeny wrote:
Plus since its Microsoft you never have to worry about correctness or if the code is out of date. : P


No idea what you mean here -- there's a lot of very crufty old (pre-generics) .NET code out there, much of it written by Microsoft.

I write C# in my day job. Here are the generally most awesome C# resources I know of:

http://stackoverflow.com - very C#-oriented, pretty much has a question about everything at this point, does a good job of bubbling good answers to the top.

http://blogs.msdn.com/b/ericlippert/ - Lippert is on the C# compiler team and knows about every little corner case in the language. A ton of reasonably thought-provoking C# posts.

http://community.bartdesmet.net/blogs/bart/default.aspx - Also a lot of interesting in-depth C# and .NET material.

http://ayende.com/Blog/ - Likewise, although with a general focus on data access.


Sorry that was a bit ambiguous. If it is crusty old code on MSDN it is marked; MSDN code examples have the version to which the example is applicable. MSDN has been very helpful to me personally : P. I'm not saying thats the only site I've used over the years but it is the main one that I have always had success with.
If you wish to travel far and fast, travel light. Take off all your envies, jealousies, unforgiveness, selfishness, and fears.
saluber
Profile Blog Joined July 2010
United States22 Posts
July 12 2010 01:08 GMT
#168
This is a good idea. I do artificial intelligence research at my university and one of our projects right now is a StarCraft AI built off the BWAPI Project on Google Code. Anyone else a bot developer?
En Taro Adun :)
jgad
Profile Blog Joined March 2008
Canada899 Posts
July 12 2010 01:35 GMT
#169
On July 12 2010 07:18 catamorphist wrote:
Show nested quote +
On July 12 2010 07:04 Adeny wrote:
Plus since its Microsoft you never have to worry about correctness or if the code is out of date. : P


No idea what you mean here -- there's a lot of very crufty old (pre-generics) .NET code out there, much of it written by Microsoft.

I write C# in my day job. Here are the generally most awesome C# resources I know of:

http://stackoverflow.com - very C#-oriented, pretty much has a question about everything at this point, does a good job of bubbling good answers to the top.


Stack Overflow is much more than just C# oriented - it's a treasure trove for just about any language. Chances are that if you have a question about any language someone there will have an answer for you. Thumbs up for Stack Overflow, indeed.
콩까지마
Hidden_MotiveS
Profile Blog Joined February 2010
Canada2562 Posts
July 12 2010 01:37 GMT
#170
Well I'm learning C++ sorta right now, will post here if there's anything I need help with.
Adeny
Profile Blog Joined January 2009
Norway1233 Posts
July 12 2010 09:09 GMT
#171
On July 12 2010 07:18 catamorphist wrote:
Show nested quote +
On July 12 2010 07:04 Adeny wrote:
Plus since its Microsoft you never have to worry about correctness or if the code is out of date. : P



I have no idea how you did that, but you quoted the wrong guy, heh.
BluzMan
Profile Blog Joined April 2006
Russian Federation4235 Posts
July 12 2010 09:11 GMT
#172
li = ['this', 'is', 'sparta']
print ['i' in i for i in li]

I don't know whether to love or hate Python.
You want 20 good men, but you need a bad pussy.
BluzMan
Profile Blog Joined April 2006
Russian Federation4235 Posts
July 12 2010 09:22 GMT
#173
On July 12 2010 06:02 xLethargicax wrote:
I've always wanted to learn a programming language. Whenever I seem to try from an internet source or a book, I just get so bored.

The prospect of programming excites me, but I feel like there is no way for me to learn except for a class. Do you programmers just crave the thought of learning a language? or is it more enjoying the product?

Will I ever be a programmer =[[[[[[[[[?


Learning from scratch unless you have a clear goal before you is one of the hardest things to do.

Really, set a simple goal. Like:
1) Make a calculator (boring).
2) Make a Tetris clone (somewhat boring, but can be fun).
3) Make a web app that does something you need.

Learning in the context of something you need is much more fun and easy. It's just a change of a viewpoint. Time after time, you encounter routine tasks when working with a computer. You can call yourself a programmer if time after time something clicks in your brain whispering: "There is no need to do this shit manually, a program can do that for me". I started from .bat scripting and grep. Yep, it's no big deal, but I really needed something to help me find relevant info in 4 MB text files. Then, I needed something to organize that info so that my work with those files would turn into running "log_parser.py" and emailing someone the results. Then, all of a sudden, I realized that I'm actually using REGEXP alot and can write applications that abuse it. The examples are limitless.

Another good way to get into the shit is modding games (at least for people involved into TL.net since most of us are gamers). I started with simple triggers in StarEdit. Then, complex triggers in StarEdit. Then, alot of Lua scripting in King's Bounty: The Legend. Then, once again, all of a sudden I know Lua like if I was born a scripter.

It's not hard, just change your mindset. There are limitless tasks that can be solved through programming. As soon as you have a goal, you learn fast and efficient.
You want 20 good men, but you need a bad pussy.
LuckyLuke43
Profile Joined May 2010
Norway169 Posts
Last Edited: 2010-07-12 14:32:30
July 12 2010 12:41 GMT
#174
I've got a really strange problem, that I could use some help with.
I've been googling for literally an hour straight today, and I googled last night before bed too.

The problem is that cmd.exe _and_ command.com is opening realllly slow. it takes like 5-7 seconds to open. Sure, compiling from MSV this is understandable, but it even happens if I run either command from 'run'. With MSV open or closed, doesn't matter apparently.

This is puzzling to me. What would make this happen, and maybe even more puzzling; why??

Any thoughts?

thanks<3

Edit: I know this strictly isn't programming.. but in order to continue programming and keep spamming you guys with newbie programming questions, I need it fixed
Our deepest fear is not that we are inadequate. Our deepest fear is that we are powerful beyond measure.
kar1181
Profile Joined May 2010
United Kingdom515 Posts
July 12 2010 13:08 GMT
#175
Programming related, has anyone played around with battle.net 2.0 much, like in terms of getting game stats and the like out of it? Sadly, I'm not sure if Blizz is going to provide any sort of API to do it.
Craton
Profile Blog Joined December 2009
United States17281 Posts
July 12 2010 13:36 GMT
#176
Someone had a program that was pulling division stats out and uploading them, but I haven't seen anything else.
twitch.tv/cratonz
Adeny
Profile Blog Joined January 2009
Norway1233 Posts
July 12 2010 15:00 GMT
#177
C# question time!
in C++ i would do this: if (a[i] == b[ii]). However in C# I'm sitting on two arraylists (whatever the hell that is), and I want to loop through both of them the way you'd solved one of the bike-locks with codes... 001, 002, 003 etc. which I'd usually do by nesting for loops, i < 9, ii < 9 and so on... I don't know if I'm making any sense. Let's try again, what I'm looking for is a replacement to this, but with arraylists;

for (int i = 0; i < 9; i++)
{
for (int ii = 0; ii < 9; ii++)
{
if (arrayA[i] == arrayB[ii])
return true;
}
}
AssuredVacancy
Profile Blog Joined September 2008
United States1167 Posts
July 12 2010 15:06 GMT
#178
On July 13 2010 00:00 Adeny wrote:
C# question time!
in C++ i would do this: if (a[i] == b[ii]). However in C# I'm sitting on two arraylists (whatever the hell that is), and I want to loop through both of them the way you'd solved one of the bike-locks with codes... 001, 002, 003 etc. which I'd usually do by nesting for loops, i < 9, ii < 9 and so on... I don't know if I'm making any sense. Let's try again, what I'm looking for is a replacement to this, but with arraylists;

for (int i = 0; i < 9; i++)
{
for (int ii = 0; ii < 9; ii++)
{
if (arrayA[i] == arrayB[ii])
return true;
}
}


Dunno the syntax in C#, but in java it's

ArrayList a = new ArrayList();
a.get(i);//gets the element at i
a.set(i);//sets the element at i

Although most of the time you could just use an iterator to loop through the items using a for each loop.
We spend our youth attaining wealth, and our wealth attaining youth.
MasterOfChaos
Profile Blog Joined April 2007
Germany2896 Posts
Last Edited: 2010-07-12 15:19:08
July 12 2010 15:08 GMT
#179
That code looks like perfectly valid C#.
But why would you use a non generic container like ArrayList? Use the generic List<T>. If you are not using a generic list the contents are regarded as object, which means that == checks reference equality and ignores overloaded equality operators.
I don't like the style too much though. I'd use foreach loops in this case. Or if you want to do it without loops just use linq.
For example:
return arrayA.Intersect(arrayB).Count()>0

this one doesn't support early out though since Count() evaluates the hole sequence.

And to learn C# get the language standard. It contains a chapter which describes most of C# in a compact way.
LiquipediaOne eye to kill. Two eyes to live.
TanGeng
Profile Blog Joined January 2009
Sanya12364 Posts
Last Edited: 2010-07-12 15:15:53
July 12 2010 15:14 GMT
#180
On July 13 2010 00:00 Adeny wrote:
C# question time!
in C++ i would do this: if (a[i] == b[ii]). However in C# I'm sitting on two arraylists (whatever the hell that is), and I want to loop through both of them the way you'd solved one of the bike-locks with codes... 001, 002, 003 etc. which I'd usually do by nesting for loops, i < 9, ii < 9 and so on... I don't know if I'm making any sense. Let's try again, what I'm looking for is a replacement to this, but with arraylists;

for (int i = 0; i < 9; i++)
{
for (int ii = 0; ii < 9; ii++)
{
if (arrayA[i] == arrayB[ii])
return true;
}
}


I think that's done with a foreach keyword, but this doesn't stop at 9 but goes through the whole arrayList - longer or shorter.

foreach (int i in arrayA)
{
foreach (int ii in arrayB)
{
if (i == ii)
return true;
}
}


as for your original syntax it might be valid as well. It depends on what is in your arrayList.
Moderator我们是个踏实的赞助商模式俱乐部
Prev 1 7 8 9 10 11 1032 Next
Please log in or register to reply.
Live Events Refresh
SC Evo League
13:30
SEL Doubles #2
SteadfastSC57
BRAT_OK 51
LiquipediaDiscussion
WardiTV Map Contest Tou…
12:00
Group C
WardiTV882
TKL 251
Rex117
3DClanTV 50
Liquipedia
[ Submit Event ]
Live Streams
Refresh
StarCraft 2
Lowko431
uThermal 262
TKL 251
mouzHeroMarine 215
Rex 117
SteadfastSC 57
Railgan 55
BRAT_OK 51
Hui .8
StarCraft: Brood War
Britney 54174
Calm 6564
Horang2 1763
Mini 1025
EffOrt 748
firebathero 667
BeSt 416
actioN 381
ggaemo 202
Mind 181
[ Show more ]
Last 131
Soulkey 97
Pusan 84
Sexy 75
Barracks 60
910 53
Sharp 43
ToSsGirL 43
Aegong 41
[sc1f]eonzerg 40
Hyun 39
Backho 36
Hm[arnc] 24
Rock 20
Movie 18
soO 16
Nal_rA 16
Noble 12
Bale 11
GoRush 11
IntoTheRainbow 10
Icarus 9
Terrorterran 4
Dota 2
Gorgc6146
LuMiX1
League of Legends
Reynor25
Heroes of the Storm
Khaldor338
Liquid`Hasu22
Other Games
singsing1830
B2W.Neo1256
qojqva346
DeMusliM215
Mew2King112
Sick75
Trikslyr42
QueenE36
Organizations
Dota 2
PGL Dota 2 - Main Stream8167
PGL Dota 2 - Secondary Stream4203
Other Games
BasetradeTV421
StarCraft: Brood War
lovetv 13
StarCraft 2
Blizzard YouTube
StarCraft: Brood War
BSLTrovo
sctven
[ Show 16 non-featured ]
StarCraft 2
• iHatsuTV 8
• CranKy Ducklings SOOP4
• sooper7s
• Migwel
• LaughNgamezSOOP
• IndyKCrew
• Kozan
• intothetv
• AfreecaTV YouTube
StarCraft: Brood War
• FirePhoenix5
• BSLYoutube
• STPLYoutube
• ZZZeroYoutube
Dota 2
• C_a_k_e 936
League of Legends
• Jankos1672
• TFBlade1116
Upcoming Events
IPSL
1h 54m
WolFix vs nOmaD
dxtr13 vs Razz
BSL
4h 54m
UltrA vs KwarK
Gosudark vs cavapoo
dxtr13 vs HBO
Doodle vs Razz
Patches Events
7h 54m
CranKy Ducklings
9h 54m
Sparkling Tuna Cup
19h 54m
WardiTV Map Contest Tou…
20h 54m
Ladder Legends
1d
BSL
1d 4h
StRyKeR vs rasowy
Artosis vs Aether
JDConan vs OyAji
Hawk vs izu
IPSL
1d 4h
JDConan vs TBD
Aegong vs rasowy
Replay Cast
1d 18h
[ Show More ]
Wardi Open
1d 19h
Afreeca Starleague
1d 19h
Bisu vs Ample
Jaedong vs Flash
Monday Night Weeklies
2 days
RSL Revival
2 days
Afreeca Starleague
2 days
Barracks vs Leta
Royal vs Light
WardiTV Map Contest Tou…
2 days
RSL Revival
3 days
Replay Cast
4 days
The PondCast
4 days
KCM Race Survival
4 days
WardiTV Map Contest Tou…
4 days
Replay Cast
5 days
Escore
5 days
RSL Revival
6 days
WardiTV Map Contest Tou…
6 days
Liquipedia Results

Completed

Escore Tournament S2: W3
RSL Revival: Season 4
NationLESS Cup

Ongoing

BSL Season 22
ASL Season 21
CSL 2026 SPRING (S20)
IPSL Spring 2026
KCM Race Survival 2026 Season 2
StarCraft2 Community Team League 2026 Spring
WardiTV TLMC #16
Nations Cup 2026
IEM Rio 2026
PGL Bucharest 2026
Stake Ranked Episode 1
BLAST Open Spring 2026
ESL Pro League S23 Finals
ESL Pro League S23 Stage 1&2
PGL Cluj-Napoca 2026
IEM Kraków 2026

Upcoming

Escore Tournament S2: W4
Acropolis #4
BSL 22 Non-Korean Championship
CSLAN 4
Kung Fu Cup 2026 Grand Finals
HSC XXIX
uThermal 2v2 2026 Main Event
2026 GSL S2
RSL Revival: Season 5
2026 GSL S1
XSE Pro League 2026
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
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.