• Log InLog In
  • Register
Liquid`
Team Liquid Liquipedia
EST 19:54
CET 01:54
KST 09:54
  • 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
ByuL: The Forgotten Master of ZvT25Behind the Blue - Team Liquid History Book17Clem wins HomeStory Cup 289HomeStory Cup 28 - Info & Preview13Rongyi Cup S3 - Preview & Info8
Community News
Weekly Cups (Feb 9-15): herO doubles up2ACS replaced by "ASL Season Open" - Starts 21/0241LiuLi Cup: 2025 Grand Finals (Feb 10-16)46Weekly Cups (Feb 2-8): Classic, Solar, MaxPax win2Nexon's StarCraft game could be FPS, led by UMS maker16
StarCraft 2
General
Behind the Blue - Team Liquid History Book ByuL: The Forgotten Master of ZvT Liquipedia WCS Portal Launched Kaelaris on the futue of SC2 and much more... How do you think the 5.0.15 balance patch (Oct 2025) for StarCraft II has affected the game?
Tourneys
PIG STY FESTIVAL 7.0! (19 Feb - 1 Mar) Sparkling Tuna Cup - Weekly Open Tournament StarCraft Evolution League (SC Evo Biweekly) How do the "codes" work in GSL? LiuLi Cup: 2025 Grand Finals (Feb 10-16)
Strategy
Custom Maps
Map Editor closed ? [A] Starcraft Sound Mod
External Content
Mutation # 514 Ulnar New Year The PondCast: SC2 News & Results Mutation # 513 Attrition Warfare Mutation # 512 Overclocked
Brood War
General
A new season just kicks off A cwal.gg Extension - Easily keep track of anyone Do you consider PvZ imbalanced? Recent recommended BW games BGH Auto Balance -> http://bghmmr.eu/
Tourneys
[Megathread] Daily Proleagues Escore Tournament StarCraft Season 1 Small VOD Thread 2.0 KCM Race Survival 2026 Season 1
Strategy
Simple Questions, Simple Answers Zealot bombing is no longer popular? Fighting Spirit mining rates Current Meta
Other Games
General Games
Diablo 2 thread Battle Aces/David Kim RTS Megathread Nintendo Switch Thread ZeroSpace Megathread 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
Vanilla Mini Mafia TL Mafia Community Thread Mafia Game Mode Feedback/Ideas
Community
General
Mexico's Drug War US Politics Mega-thread Russo-Ukrainian War Thread Canadian Politics Mega-thread Ask and answer stupid questions here!
Fan Clubs
The IdrA Fan Club The herO Fan Club!
Media & Entertainment
[Req][Books] Good Fantasy/SciFi books [Manga] One Piece Anime Discussion Thread
Sports
2024 - 2026 Football Thread Formula 1 Discussion TL MMA Pick'em Pool 2013
World Cup 2022
Tech Support
TL Community
The Automated Ban List
Blogs
ASL S21 English Commentary…
namkraft
Inside the Communication of …
TrAiDoS
My 2025 Magic: The Gathering…
DARKING
Life Update and thoughts.
FuDDx
Customize Sidebar...

Website Feedback

Closed Threads



Active: 2658 users

The Big Programming Thread - Page 89

Forum Index > General Forum
Post a Reply
Prev 1 87 88 89 90 91 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.
mmp
Profile Blog Joined April 2009
United States2130 Posts
October 20 2011 20:38 GMT
#1761
On October 21 2011 05:19 Kfish wrote:
I've been learning to program in some languages such as C#, Java, C++, C and recently started reading some Python.

I guess I reached an intermediate level, I understand inheritance, polymorphism, pointers to a certain extent (still can't figure out what the HEAP and STACK are lol), and I'm learning some SQL. I can see the differences in the languages and I'm starting to find out why one might be better than another for certain tasks. I'm really a newb though, haven't finished my first year at uni but I do read a lot and try to code a lot.

I still can't manage to DO SOMETHING useful with this. I have no idea where to start making a name for myself besides the books.

I've read, start contributing to open source. That sounds great! Where do I start? NO CLUE! haha

I even started making a game engine with opengl tao framework in C# (until I realized the book I was reading has some fail to it).

What do I need to do? I'm frustrated, I want to make something useful already. How do I get an idea and put it on paper and then into code, thats something I haven't learned in books or my Uni courses yet.

I feel that there is so much to learn out there that I don't know what to focus on first. I mean, I realize I should be polishing my skills in one language instead of reading through and learning the basics/intermediate stuff for a whole bunch.

Help is appreciated, I love programming and I want to learn it all... I could use some guidance.

You should work on a project that is interesting to you. Is there a piece of software that you wish existed (I can think of dozens)? Is there an open source project that already aims to achieve that objective? Should you aid that project or start a competing project?

And then there is coding for research/productivity. Perhaps you want to run mathematical/physical simulations? Maybe you want to work on machine learning, language processing, computer vision, etc. There are lots of tough problems that computer scientists use computer programming and math to investigate.

Or maybe you want to start a specific business with a software product or service?

As an analogy, an artist cares about the quality of his tools and his technique, but his objective is to use the tools & technique to achieve art. Expertise comes through repetition, and cannot be forced.

There is a lot to learn historically and academically if you want to be productive. Historically, you need to know what is out there, what has been tried and succeeded or failed, and what is possible. Academically, the more you learn and improve your technique, the more quickly you will see solutions to problems, and your work quality improves when you are able to see the better solutions.

I would recommend looking into open source projects because you will see high caliber use of the language and better design principles than if you tried things naively based on books or tutorials. Taking college classes can help also, but they are mostly pedagogical around abstract topics and will not give you the volume of concrete experience that you would achieve hacking alone. The key thing is that you let other people review your code when you hit a wall or feel like things are getting tedious, and they will show you how to do things more efficiently.
I (λ (foo) (and (<3 foo) ( T_T foo) (RAGE foo) )) Starcraft
tofucake
Profile Blog Joined October 2009
Hyrule19193 Posts
October 20 2011 20:42 GMT
#1762
On October 21 2011 05:21 mmp wrote:
Show nested quote +
On October 21 2011 04:48 tofucake wrote:
Stuff is broken down into languages (or groups, ie HTML/CSS/Javascript). The particular section you read really depends on your interests. If you want to do website type things, HTML/CSS/Javascript are basically required (not so much Javascript). Actual programming in terms of web stuff will likely be PHP, ASP (.Net in general), or Perl.

On the other hand, if you want to do programming you're going to want to focus more on a "traditional" language, typically of the C family (or Java if you hate yourself).

What? If you do your programming in Javascript, you can very easily share your code via HTTP. And it is very rare today to see websites that use little-to-no Javascript, even if it is often abused for shiny bullshit.

Also, ASP is antiquated and .NET is baroque. If you want to do *modern* backend dev you should look into Django, Rails, JSP/Tomcat, or one of the many frameworks built on top of PHP. You have a lot of good alternatives when making a web server today, but PHP is probably the only legacy server-side language that is still relevant.

You misunderstood. Javascript is certainly very useful, but I suggest avoiding it at first. Primary goals should be learning output, control (in whatever language), and data before dealing with javascript, which is mainly for jazz, ads, and simplifying the UI, while at the same time adds a whole new layer of complexity and can make debugging a pain.

ASP is antiquated and I hate it, but it technically works. .NET is lumped in with ASP because it works but I don't like it for web stuff. And as always I advocate learning a language before a framework.
Liquipediaasante sana squash banana
GogoKodo
Profile Blog Joined April 2003
Canada1785 Posts
October 20 2011 20:43 GMT
#1763
On October 21 2011 05:19 Kfish wrote:
I've been learning to program in some languages such as C#, Java, C++, C and recently started reading some Python.

I guess I reached an intermediate level, I understand inheritance, polymorphism, pointers to a certain extent (still can't figure out what the HEAP and STACK are lol), and I'm learning some SQL. I can see the differences in the languages and I'm starting to find out why one might be better than another for certain tasks. I'm really a newb though, haven't finished my first year at uni but I do read a lot and try to code a lot.

I still can't manage to DO SOMETHING useful with this. I have no idea where to start making a name for myself besides the books.

I've read, start contributing to open source. That sounds great! Where do I start? NO CLUE! haha

I even started making a game engine with opengl tao framework in C# (until I realized the book I was reading has some fail to it).

What do I need to do? I'm frustrated, I want to make something useful already. How do I get an idea and put it on paper and then into code, thats something I haven't learned in books or my Uni courses yet.

I feel that there is so much to learn out there that I don't know what to focus on first. I mean, I realize I should be polishing my skills in one language instead of reading through and learning the basics/intermediate stuff for a whole bunch.

Help is appreciated, I love programming and I want to learn it all... I could use some guidance.

I would recommend github for a place to take a look and contribute to open source projects. Find a project you think is interesting take a look to see if there are outstanding issues and fork it! Github has a nice help section to get you started as well.
twitter: @terrancem
Kfish
Profile Blog Joined May 2010
Chile282 Posts
October 20 2011 20:56 GMT
#1764
Developing software like desktop applications and games is what I would like to do the most. I would also like to make websites. Idk, I just think I would like to do it all haha.

Something I've been thinking of doing is to make a list of the skills companies are looking for and then start learning one by one. I just don't know where to start

I'm going to surf more on github and see if I find something, I've already looked at it and made a user and my own repository (gotta learn how to use it properly).

What do companies expect from their programmers? What is the popular skillset one should have?

These are questions I think about often.
GogoKodo
Profile Blog Joined April 2003
Canada1785 Posts
Last Edited: 2011-10-20 21:05:15
October 20 2011 21:04 GMT
#1765
On October 21 2011 05:56 Kfish wrote:
Developing software like desktop applications and games is what I would like to do the most. I would also like to make websites. Idk, I just think I would like to do it all haha.

Something I've been thinking of doing is to make a list of the skills companies are looking for and then start learning one by one. I just don't know where to start

I'm going to surf more on github and see if I find something, I've already looked at it and made a user and my own repository (gotta learn how to use it properly).

What do companies expect from their programmers? What is the popular skillset one should have?

These are questions I think about often.

It really depends on the company and the job. But I think one thing that is quite important (good for the interview) is to really talk about things external to programming itself. Planning, problem solving, analysis, being able to communicate technical things to non-technical people, making design documents, making interface documents etc.
twitter: @terrancem
fabiano
Profile Blog Joined August 2009
Brazil4644 Posts
October 20 2011 21:08 GMT
#1766
On October 21 2011 05:56 Kfish wrote:
What do companies expect from their programmers? What is the popular skillset one should have?


Depending on the size of the company, flexibility is one popular request.

By that I mean that they expect you to know one language, say C, but you are not restricted to only C. They expect you to be able to learn a new language depending on the needs of their project. Thats why its important to have the knowledge of programming paradigms because once you know a paradigm, learning a new language on the same paradigm will be as simple as learning a new syntax.

SQL comes to mind too.

There must be many others, but I'm not very experienced so I will leave these two
"When the geyser died, a probe came out" - SirJolt
Deleted User 101379
Profile Blog Joined August 2010
4849 Posts
October 20 2011 21:30 GMT
#1767
On October 21 2011 05:38 mmp wrote:
(...snip...)
I would recommend looking into open source projects because you will see high caliber use of the language and better design principles than if you tried things naively based on books or tutorials. (...snip...)


Have you ever looked at the source code of a lot of common open source programs?
The source code in many projects looks absolutely horrible, often because it's a private project that turned into something bigger than it was intended for.

Contributing is a nice way to learn how to write code as long as you don't learn FROM the code.

I'm all for open source, but 99% of all programmers shouldn't be allowed to touch code... which is true for commercial as well as open source projects.
Ultraliskhero
Profile Joined April 2010
Canada249 Posts
October 21 2011 00:19 GMT
#1768
Hi,

I'm not sure if I'm breaking any rules to the thread but I just have a quick question concerning my C++ programming assignment that I need to finish ASAP. (sry no time to read the rules)

I have a class called Resistor and another class called Strip.
In the class called Strip, there is a private variable called resistors that is an array of objects of type Resistor, declared like this:

Resistor resistors[length];

Now in the default constructor of the class Strip, I said:

resistors = new Resistor[length];

I am trying to dynamically allocate the array of objects of type Resistor in the constructor for Strip, but I get an compiler error saying:

incompatible types in assignment of Resistor* to Resistor[length]

Can anyone tell me what is wrong with my code?
Thanks in advance.
Deleted User 101379
Profile Blog Joined August 2010
4849 Posts
Last Edited: 2011-10-21 07:53:07
October 21 2011 07:36 GMT
#1769
On October 21 2011 09:19 Ultraliskhero wrote:
Hi,

I'm not sure if I'm breaking any rules to the thread but I just have a quick question concerning my C++ programming assignment that I need to finish ASAP. (sry no time to read the rules)

I have a class called Resistor and another class called Strip.
In the class called Strip, there is a private variable called resistors that is an array of objects of type Resistor, declared like this:

Resistor resistors[length];

Now in the default constructor of the class Strip, I said:

resistors = new Resistor[length];

I am trying to dynamically allocate the array of objects of type Resistor in the constructor for Strip, but I get an compiler error saying:

incompatible types in assignment of Resistor* to Resistor[length]

Can anyone tell me what is wrong with my code?
Thanks in advance.


It's C++, not Java. The new keyword is wrong at this position since it returns a pointer but you have an array.

You are already initializing the array by doing the
Resistor resistors[length];


What you probably want to do is to declare it as:
Resistor *resistors;


and then you can initialize it in the constructor with
resistors = new Resistor[length];



My C++ is quite rusty so the syntax might not be 100% correct.

EDIT: Also, don't forget to delete[] it again when it's no longer used or you end up having a memory leak.
Deleted User 61629
Profile Blog Joined March 2010
1664 Posts
October 21 2011 10:01 GMT
#1770
--- Nuked ---
sekritzzz
Profile Joined December 2010
1515 Posts
October 21 2011 17:03 GMT
#1771
Someone earlier recommended that I start with C# but couldn't find a reference point to start from in the OP. I went google searching but found pretty mediocre sites. Anyone got a decent site I would find helpful?
EscPlan9
Profile Blog Joined December 2006
United States2777 Posts
October 21 2011 22:05 GMT
#1772
On October 21 2011 06:30 Morfildur wrote:
I'm all for open source, but 99% of all programmers shouldn't be allowed to touch code... which is true for commercial as well as open source projects.


Well aren't you Mr Elitist. So only you should even try coding anything. Everyone else just give up. Why bother learning to program when you'll likely end up like the 99% and should never be allowed to touch code? There's no such thing as improving programming through experience! You either are born as the 1% or not.

I understand the viewpoint that every programmer thinks other programmers are terrible, but many times I see you say people shouldn't even program in the first place! And that's just ridiculous.
Undefeated TL Tecmo Super Bowl League Champion
Pawsom
Profile Blog Joined February 2009
United States928 Posts
October 21 2011 22:06 GMT
#1773
On October 22 2011 07:05 EscPlan9 wrote:
Show nested quote +
On October 21 2011 06:30 Morfildur wrote:
I'm all for open source, but 99% of all programmers shouldn't be allowed to touch code... which is true for commercial as well as open source projects.


Well aren't you Mr Elitist. So only you should even try coding anything. Everyone else just give up. Why bother learning to program when you'll likely end up like the 99% and should never be allowed to touch code? There's no such thing as improving programming through experience! You either are born as the 1% or not.

I understand the viewpoint that every programmer thinks other programmers are terrible, but many times I see you say people shouldn't even program in the first place! And that's just ridiculous.


I am the 99 %
morty
Profile Joined July 2010
Germany38 Posts
October 21 2011 22:29 GMT
#1774
Kfish i can only recommend Ruby on Rails, you get to learn a lot of nice programming things with it. Its super rewarding and allows you to write a simple Web-Blog software in 15 minutes
<- this is a bit dated already but is a nice teaser

github is an excellent recommendation but to be able to help with open source software you need to work on your skills first .

https://github.com/outsmartin/htwcollab is a project i just started together with some guys from my university and we try to build an platform for a better working together in the uni itself.

for getting to know ruby and rails a good start is
tryruby and
rails for zombies :D
Kfish
Profile Blog Joined May 2010
Chile282 Posts
October 22 2011 02:29 GMT
#1775
I'll check it out morty, thanks! And thanks to everyone elses responses too you have all been really helpful.

OpAndroid
Profile Joined July 2010
United States84 Posts
October 22 2011 19:56 GMT
#1776
Hey all, got a question for you. So I'm a relative newbie at programming, taking my first intro class this year, and I've run into a situation in which I'm somewhat lost as to what to do. So my assignment is to write a code that can encode and decode an input using a Caeser Cipher. Basically what the cipher does is that it takes the alphabet and shifts every letter over a certain amount, so a shift of 3 would change abc to def. We are intended to use character arrays and functions in order to accomplish this task.

Ok, so the problem I am having, is that I am unsure of the exact approach to take. I think a good approach would be to take the input the user supplies, and then encode/decode each letter in that input depending on the degree of the shift that they enter.

So there is basically an array for the alphabet and an array for the input which is limited to 140 characters, and the degree to shift:

alpha[26]="abcdefghijklmnopqrstuvwxyz"
input[140]= whatever they input

So lets say the user inputs: "hi, how are you?" and a shift of 3, then the program would take input[0], or h, find h in the alphabet array as alpha[7], apply the shift of 3 to find alpha[10], or k, and then put that value of k into an array for our output.

I feel like this would work, but I'm completely unsure on how to carry this out. For instance, I don't know how to make the arrays work together in this manner, how can I have one element from one array be found in a completely different array? Is that even possible?

If all else fails I'm considering just writing the program so that it operates through ascii codes, and just handling it all that way, but this assignment is designed to test our knowledge of arrays, not just math. BTW, we haven't been taught strings yet, as I've seen a lot of advice related to strings on the internet, so that's out. Thanks for whatever help I can get.
morty
Profile Joined July 2010
Germany38 Posts
October 22 2011 20:02 GMT
#1777
ascii characters are represtend by integers internally so you can just use a loop to add your desired amount to the character, just gotta be careful when you need to wrap around xyz -> abc if you want to google after this algorithm there is a thing called rot13 which does exactly what u want
Gak2
Profile Joined September 2010
Canada418 Posts
Last Edited: 2011-10-22 20:12:32
October 22 2011 20:09 GMT
#1778
you're gonna have to loop through the array.
Let's say you're looking for char c

for (i = 0, i < alpha.length; i++)
if (alpha[i] == c)
break;


Then you can use alpha[i+3] to shift the characters (you stil gotta worry about the wrap around, hint: use %)
fabiano
Profile Blog Joined August 2009
Brazil4644 Posts
October 22 2011 20:25 GMT
#1779
Which language are you planning on programming OpAndroid? It feels like C.

Anyway, I would do the following (pseudocode):

alphabet[26] = {'a', 'b', etc...};
userInput[140] = functionThatGrabsUserInput();
shiftValue = functionThatGrabsShiftValue();
output[140] = howeverYouShouldInstatiateThisVector();

currentIndex = 0;
for each value in userInput {
index = getArrayIndexForChar(userInput, userInput[index]);

if(index + shiftValue >= 26) {
index = (index + shiftValue) - 26;
}

output[currentIndex++] = alpha[index];
}

return output;



getArrayIndexForChar(char* array, char c) {
arrayIndex = 0;
for each character in array {
if(character == c) {
return arrayIndex;
}

arrayIndex++;
}

return -1;
}


I think thats it, be aware that I did not test it. Just made something so I could give you a hint of a possible way to solve the problem
"When the geyser died, a probe came out" - SirJolt
Pawsom
Profile Blog Joined February 2009
United States928 Posts
Last Edited: 2011-10-22 20:32:01
October 22 2011 20:31 GMT
#1780
You guys are probably providing a bit too much code for help with an entry level CS homework problem...

EDIT: What I mean is we all know you can solve the problem, but try to help him without just giving it away.
Prev 1 87 88 89 90 91 1032 Next
Please log in or register to reply.
Live Events Refresh
Replay Cast
00:00
HomeStory Cup 28 - Playoffs
CranKy Ducklings112
LiquipediaDiscussion
[ Submit Event ]
Live Streams
Refresh
StarCraft 2
ProTech149
RuFF_SC2 119
Nina 95
FoxeR 56
Ketroc 28
StarCraft: Brood War
Britney 9810
GuemChi 1286
Artosis 806
nyoken 52
NaDa 12
Dota 2
NeuroSwarm112
League of Legends
JimRising 651
Reynor57
Counter-Strike
taco 478
Super Smash Bros
Mew2King75
Heroes of the Storm
Khaldor222
Other Games
summit1g11172
Maynarde127
KnowMe55
PiLiPiLi1
Organizations
Other Games
gamesdonequick1174
StarCraft 2
Blizzard YouTube
StarCraft: Brood War
BSLTrovo
sctven
[ Show 20 non-featured ]
StarCraft 2
• Berry_CruncH235
• musti20045 16
• intothetv
• LaughNgamezSOOP
• sooper7s
• AfreecaTV YouTube
• Migwel
• Kozan
• IndyKCrew
StarCraft: Brood War
• blackmanpl 21
• RayReign 17
• Azhi_Dahaki10
• STPLYoutube
• ZZZeroYoutube
• BSLYoutube
Dota 2
• masondota21122
League of Legends
• Doublelift3754
• Scarra1092
Other Games
• imaqtpie1585
• Shiphtur158
Upcoming Events
Replay Cast
8h 6m
Wardi Open
11h 6m
Monday Night Weeklies
16h 6m
OSC
23h 6m
WardiTV Winter Champion…
1d 11h
Replay Cast
2 days
WardiTV Winter Champion…
2 days
The PondCast
3 days
Replay Cast
3 days
Korean StarCraft League
5 days
[ Show More ]
CranKy Ducklings
5 days
SC Evo Complete
5 days
Replay Cast
5 days
Sparkling Tuna Cup
6 days
uThermal 2v2 Circuit
6 days
Liquipedia Results

Completed

Proleague 2026-02-22
LiuLi Cup: 2025 Grand Finals
Underdog Cup #3

Ongoing

KCM Race Survival 2026 Season 1
Acropolis #4 - TS5
WardiTV Winter 2026
PiG Sty Festival 7.0
Nations Cup 2026
PGL Cluj-Napoca 2026
IEM Kraków 2026
BLAST Bounty Winter 2026
BLAST Bounty Winter Qual
eXTREMESLAND 2025
SL Budapest Major 2025

Upcoming

Jeongseon Sooper Cup
Spring Cup 2026
[S:21] ASL SEASON OPEN 2nd Round
[S:21] ASL SEASON OPEN 2nd Round Qualifier
Acropolis #4 - TS6
Acropolis #4
IPSL Spring 2026
HSC XXIX
uThermal 2v2 2026 Main Event
Bellum Gens Elite Stara Zagora 2026
RSL Revival: Season 4
PGL Astana 2026
BLAST Rivals Spring 2026
CCT Season 3 Global 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
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.