• Log InLog In
  • Register
Liquid`
Team Liquid Liquipedia
EDT 17:08
CEST 23:08
KST 06:08
  • 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
RSL Season 1 - Final Week6[ASL19] Finals Recap: Standing Tall15HomeStory Cup 27 - Info & Preview18Classic wins Code S Season 2 (2025)16Code S RO4 & Finals Preview: herO, Rogue, Classic, GuMiho0
Community News
Esports World Cup 2025 - Brackets Revealed14Weekly Cups (July 7-13): Classic continues to roll8Team TLMC #5 - Submission extension3Firefly given lifetime ban by ESIC following match-fixing investigation17$25,000 Streamerzone StarCraft Pro Series announced7
StarCraft 2
General
RSL Revival patreon money discussion thread Who will win EWC 2025? The GOAT ranking of GOAT rankings Server Blocker Weekly Cups (July 7-13): Classic continues to roll
Tourneys
FEL Cracov 2025 (July 27) - $8000 live event Sparkling Tuna Cup - Weekly Open Tournament Sea Duckling Open (Global, Bronze-Diamond) RSL: Revival, a new crowdfunded tournament series $5,100+ SEL Season 2 Championship (SC: Evo)
Strategy
How did i lose this ZvP, whats the proper response
Custom Maps
External Content
Mutation # 482 Wheel of Misfortune Mutation # 481 Fear and Lava Mutation # 480 Moths to the Flame Mutation # 479 Worn Out Welcome
Brood War
General
Flash Announces (and Retracts) Hiatus From ASL BGH Auto Balance -> http://bghmmr.eu/ BW General Discussion Soulkey Muta Micro Map? [ASL19] Finals Recap: Standing Tall
Tourneys
Starcraft Superstars Winner/Replays [Megathread] Daily Proleagues Cosmonarchy Pro Showmatches CSL Xiamen International Invitational
Strategy
Simple Questions, Simple Answers I am doing this better than progamers do.
Other Games
General Games
Stormgate/Frost Giant Megathread Path of Exile Nintendo Switch Thread CCLP - Command & Conquer League Project The PlayStation 5
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
Heroes of StarCraft mini-set
TL Mafia
TL Mafia Community Thread Vanilla Mini Mafia
Community
General
US Politics Mega-thread We are Ready to Testify: Emergence Things Aren’t Peaceful in Palestine Russo-Ukrainian War Thread Stop Killing Games - European Citizens Initiative
Fan Clubs
SKT1 Classic Fan Club! Maru Fan Club
Media & Entertainment
Movie Discussion! Korean Music Discussion [Manga] One Piece Anime Discussion Thread [\m/] Heavy Metal Thread
Sports
2024 - 2025 Football Thread Formula 1 Discussion TeamLiquid Health and Fitness Initiative For 2023 NBA General Discussion NHL Playoffs 2024
World Cup 2022
Tech Support
Computer Build, Upgrade & Buying Resource Thread
TL Community
The Automated Ban List
Blogs
Ping To Win? Pings And Their…
TrAiDoS
momentary artworks from des…
tankgirl
from making sc maps to makin…
Husyelt
StarCraft improvement
iopq
Customize Sidebar...

Website Feedback

Closed Threads



Active: 624 users

The Big Programming Thread - Page 89

Forum Index > General Forum
Post a Reply
Prev 1 87 88 89 90 91 1031 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
Hyrule19043 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 1031 Next
Please log in or register to reply.
Live Events Refresh
Next event in 12h 52m
[ Submit Event ]
Live Streams
Refresh
StarCraft 2
ZombieGrub250
Hui .198
UpATreeSC 154
Nathanias 146
JuggernautJason68
ForJumy 20
StarCraft: Brood War
Larva 941
ZZZero.O 146
scan(afreeca) 133
Aegong 84
Dota 2
syndereN817
NeuroSwarm111
League of Legends
Grubby4510
Counter-Strike
Stewie2K573
flusha486
byalli350
oskar272
Super Smash Bros
Liquid`Ken24
Heroes of the Storm
Liquid`Hasu618
Other Games
tarik_tv8612
summit1g4309
FrodaN2806
Beastyqt782
ToD296
C9.Mang0165
Skadoodle89
Trikslyr61
Sick50
PPMD36
Organizations
Other Games
gamesdonequick2658
StarCraft 2
Blizzard YouTube
StarCraft: Brood War
BSLTrovo
sctven
[ Show 18 non-featured ]
StarCraft 2
• LUISG 13
• musti20045 10
• IndyKCrew
• sooper7s
• AfreecaTV YouTube
• intothetv
• Kozan
• Migwel
• LaughNgamezSOOP
StarCraft: Brood War
• HerbMon 2
• STPLYoutube
• ZZZeroYoutube
• BSLYoutube
Dota 2
• masondota22614
• Ler77
League of Legends
• TFBlade965
Other Games
• imaqtpie2161
• Shiphtur219
Upcoming Events
CranKy Ducklings
12h 52m
Epic.LAN
14h 52m
CSO Contender
19h 52m
Sparkling Tuna Cup
1d 12h
Online Event
1d 18h
Esports World Cup
3 days
ByuN vs Astrea
Lambo vs HeRoMaRinE
Clem vs TBD
Solar vs Zoun
SHIN vs Reynor
Maru vs TriGGeR
herO vs Lancer
Cure vs ShoWTimE
Esports World Cup
4 days
Esports World Cup
5 days
Esports World Cup
6 days
Liquipedia Results

Completed

JPL Season 2
RSL Revival: Season 1
Murky Cup #2

Ongoing

BSL 2v2 Season 3
Copa Latinoamericana 4
Jiahua Invitational
BSL20 Non-Korean Championship
CSL Xiamen Invitational
CSL Xiamen Invitational: ShowMatche
Championship of Russia 2025
FISSURE Playground #1
BLAST.tv Austin Major 2025
ESL Impact League Season 7
IEM Dallas 2025
PGL Astana 2025
Asian Champions League '25

Upcoming

2025 ACS Season 2
CSLPRO Last Chance 2025
CSLPRO Chat StarLAN 3
BSL Season 21
RSL Revival: Season 2
SEL Season 2 Championship
uThermal 2v2 Main Event
FEL Cracov 2025
Esports World Cup 2025
Underdog Cup #2
ESL Pro League S22
StarSeries Fall 2025
FISSURE Playground #2
BLAST Open Fall 2025
BLAST Open Fall Qual
Esports World Cup 2025
BLAST Bounty Fall 2025
BLAST Bounty Fall Qual
IEM Cologne 2025
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 © 2025 TLnet. All Rights Reserved.