• Log InLog In
  • Register
Liquid`
Team Liquid Liquipedia
EDT 05:49
CEST 11:49
KST 18:49
  • 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
[ASL22] Ro24 Preview: Summer's End9Serral wins HomeStory Cup 2915Serral wins Maestros of the Game 244ByuL, and the Limitations of Standard Play3Team Liquid Map Contest #22: Results and Winners7
Community News
Weekly Cups (August 10-16): SHIN doubles2GSTL Returns in 2026!45Weekly Cups (Aug 3-9): Protoss get shut out7RSL goes to London! 2026 Offline Finals Nov 21-2212Weekly Cups (July 27-Aug 2): SHIN's big week0
StarCraft 2
General
Geoff 'iNcontroL' Robinson has passed away SC4ALL II: SC2 Player Announcement 6/8 - Maru GSTL Returns in 2026! Balance hotfix patch 5.0.16b (July 16) Serral wins Maestros of the Game 2
Tourneys
Sparkling Tuna Cup - Weekly Open Tournament PIG STY FESTIVAL 8.0! (13 - 23 August) WORTEX 2026 - Hungarian SC2 Finals Budapest SC2 AI Tournament 2026 Fall 2026 GSTL Announcement
Strategy
[G] Having the right mentality to improve
Custom Maps
Nexus Wars 2021 GUIDE [M] (2) Industrial Park
External Content
The PondCast: SC2 News & Results Mutation # 539 Thunder Dome Mutation # 538 Media Blackout Mutation # 537 Hostile Territory
Brood War
General
Replay Review Process - What do you do? Pros React To: First 'Fastest' Map in ASL History BW General Discussion [Personal Project Share] Terran Defense v0.60 ASL22 General Discussion
Tourneys
Brood War in Budapest ! WORTEX 2026 BW Finals [ASL22] Ro24 Group C Small VOD Thread 2.0 Toronto invitational lan 22 august
Strategy
Odyssey Mineral Stack Saturation Fighting Spirit mining rates Any training maps people recommend? Simple Questions, Simple Answers
Other Games
General Games
Nintendo Switch Thread General RTS Discussion Thread Anyone here play Quakeworld back in the day? Stormgate/Frost Giant Megathread EVE Corporation
Dota 2
Official 'what is Dota anymore' discussion
League of Legends
[TL LoL EUW IHs] Teemo shall perish TSM pausing esports and CLG Dead
Heroes of the Storm
Heroes of the Storm 2.0
Hearthstone
Deck construction bug
TL Mafia
TL Mafia Power Rank TL Mafia Community Thread NeO.D_StephenKing vs This Guy From 1 Million Dance
Community
General
US Politics Mega-thread Russo-Ukrainian War Thread Canadian Politics Mega-thread Dating: How's your luck? Artificial Intelligence Thread
Fan Clubs
The Creator Fan Club MarineLorD Fan Club The ShoWTimE Fan Club
Media & Entertainment
Movie Discussion! Anime Discussion Thread
Sports
Football (Soccer) Thread MLB/Baseball 2023 TeamLiquid Health and Fitness Initiative For 2023 NBA General Discussion
World Cup 2022
Tech Support
Computer Build, Upgrade & Buying Resource Thread Simple Questions Simple Answers FPS when play League Of Legend on laptop
TL Community
The Automated Ban List Northern Ireland Global Starcraft
Blogs
Young Players Exit Esports E…
TrAiDoS
LOCKPICKING NOOB
LUCKY_NOOB
Cathedral Of CS And NY pizza a…
FuDDx
Please support my new stand…
Peanutsc
Customize Sidebar...

Website Feedback

Closed Threads



Active: 5825 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
Hyrule19240 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
Next event in 11m
[ Submit Event ]
Live Streams
Refresh
StarCraft 2
ProTech38
BRAT_OK 30
MindelVK 13
StarCraft: Brood War
Leta 3565
Shuttle 2659
Hyuk 900
Bisu 725
BeSt 582
Killer 229
EffOrt 153
PianO 113
Sharp 101
Mind 46
[ Show more ]
Hm[arnc] 36
Stork 34
Bale 24
Aegong 20
Pusan 18
Sacsri 17
Noble 14
Zeus 13
ZergMaN 10
Dota 2
The International172303
Gorgc10396
singsing3294
Counter-Strike
shoxiejesuss890
Super Smash Bros
Mew2King44
Other Games
Sick146
[ Show 12 non-featured ]
StarCraft 2
• StrangeGG 34
• LUISG 22
• AfreecaTV YouTube
• intothetv
• Kozan
• IndyKCrew
• Migwel
StarCraft: Brood War
• BSLYoutube
• STPLYoutube
• ZZZeroYoutube
Dota 2
• WagamamaTV187
League of Legends
• Jankos1097
Upcoming Events
Sparkling Tuna Cup
11m
PiG Sty Festival
2h 11m
Solar vs Reynor
Serral vs Maru
OSC
6h 11m
Afreeca Starleague
1d
hero vs ggaemo
Larva vs Mong
The Patches Monday
1d 6h
Afreeca Starleague
2 days
Soulkey vs PianO
JyJ vs sSak
GSL
2 days
PiGosaur Cup
2 days
Replay Cast
2 days
Afreeca Starleague
3 days
Mini vs Calm
Queen vs EffOrt
[ Show More ]
Replay Cast
3 days
The PondCast
4 days
IntoTheTV X SOOP
5 days
GSL
6 days
Replay Cast
6 days
Liquipedia Results

Completed

Escore Tournament S3: W8
CranK Gathers Season 4: BW vs SC2 Team League
Eternal Conflict S2 Finale

Ongoing

KCM Race Survival 2026 Season 3
K-JUNGMAN
ASL Season 22
Super Anchor Qualifying S3
CSL Season 22: Qualifier 1
RSL Revival: Season 6
PiG Sty Festival 8.0
META DYMY #4
Esports World Cup 2026
Esports World Cup 2026: LCQ
BLAST Bounty Summer 2026
BLAST Bounty Summer Qual
Stake Ranked Episode 3
XSE Pro League 2026
IEM Cologne Major 2026

Upcoming

CSL Season 22: Qualifier 2
CSL 2026 AUTUMN (S22)
Acropolis #5
Acropolis #5 - TRS
Blizzard Classic Cup 2026
Acropolis #5 - GSA
Acropolis #5 - GSB
HSC XXX
SC4ALL II: StarCraft II
Kung Fu Cup 2026 Grand Finals
RSL Offline Finals
Calamity Invitational
Big Dog Cup 2026 Div 1
IEM Beijing 2026
Stake Ranked Episode 5
PGL Masters Bucharest 2026
Thunderpick World Champ. '26
ESL Pro League Season 24
Stake Ranked Episode 4
1win Private Club #1
Logitech G Play Connect 2026
SL StarSeries Fall 2026
FISSURE Playground #3
BLAST Open Fall 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.