• Log InLog In
  • Register
Liquid`
Team Liquid Liquipedia
EST 23:33
CET 05:33
KST 13:33
  • 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 3 - Playoffs Preview0RSL Season 3 - RO16 Groups C & D Preview0RSL Season 3 - RO16 Groups A & B Preview2TL.net Map Contest #21: Winners12Intel X Team Liquid Seoul event: Showmatches and Meet the Pros10
Community News
[BSL21] Ro.16 Group Stage (C->B->A->D)1Weekly Cups (Nov 17-23): Solar, MaxPax, Clem win2RSL Season 3: RO16 results & RO8 bracket13Weekly Cups (Nov 10-16): Reynor, Solar lead Zerg surge2[TLMC] Fall/Winter 2025 Ladder Map Rotation14
StarCraft 2
General
When will we find out if there are more tournament Weekly Cups (Nov 17-23): Solar, MaxPax, Clem win SC: Evo Complete - Ranked Ladder OPEN ALPHA Weekly Cups (Nov 10-16): Reynor, Solar lead Zerg surge RSL Season 3: RO16 results & RO8 bracket
Tourneys
Tenacious Turtle Tussle RSL Revival: Season 3 $5,000+ WardiTV 2025 Championship StarCraft Evolution League (SC Evo Biweekly) Constellation Cup - Main Event - Stellar Fest
Strategy
Ride the Waves in Surf City: Why Surfing Lessons H
Custom Maps
Map Editor closed ?
External Content
Mutation # 501 Price of Progress Mutation # 500 Fright night Mutation # 499 Chilling Adaptation Mutation # 498 Wheel of Misfortune|Cradle of Death
Brood War
General
Which season is the best in ASL? FlaSh on: Biggest Problem With SnOw's Playstyle soO on: FanTaSy's Potential Return to StarCraft Data analysis on 70 million replays 2v2 maps which are SC2 style with teams together?
Tourneys
[BSL21] RO16 Tie Breaker - Group B - Sun 21:00 CET [BSL21] GosuLeague T1 Ro16 - Tue & Thu 22:00 CET [Megathread] Daily Proleagues [BSL21] RO16 Tie Breaker - Group A - Sat 21:00 CET
Strategy
Game Theory for Starcraft How to stay on top of macro? Current Meta PvZ map balance
Other Games
General Games
Stormgate/Frost Giant Megathread Should offensive tower rushing be viable in RTS games? Nintendo Switch Thread Path of Exile Clair Obscur - Expedition 33
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
Mafia Game Mode Feedback/Ideas
Community
General
US Politics Mega-thread Russo-Ukrainian War Thread Things Aren’t Peaceful in Palestine YouTube Thread Artificial Intelligence Thread
Fan Clubs
White-Ra Fan Club The herO Fan Club!
Media & Entertainment
[Manga] One Piece Movie Discussion! Anime Discussion Thread
Sports
2024 - 2026 Football Thread Formula 1 Discussion NBA General Discussion MLB/Baseball 2023 TeamLiquid Health and Fitness Initiative For 2023
World Cup 2022
Tech Support
Computer Build, Upgrade & Buying Resource Thread
TL Community
The Automated Ban List
Blogs
The Health Impact of Joining…
TrAiDoS
Dyadica Evangelium — Chapt…
Hildegard
Saturation point
Uldridge
DnB/metal remix FFO Mick Go…
ImbaTosS
Customize Sidebar...

Website Feedback

Closed Threads



Active: 2489 users

The Big Programming Thread - Page 640

Forum Index > General Forum
Post a Reply
Prev 1 638 639 640 641 642 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.
spinesheath
Profile Blog Joined June 2009
Germany8679 Posts
June 12 2015 20:24 GMT
#12781
On June 13 2015 04:02 sabas123 wrote:
Im sorry about being so awefully unspecific.

The thing I meant was to learn more about cs patterns, and thought that writing compilers would be a good place because it would be rich of diffrent techniques and patterns to learn from.

I geuss the thing im trying to say is, what kind of knowlage should I look for to improve myself after learning basic OOP stuff like polymorphism and clean code?

It's hard to tell over a forum, but judging from the fact that you mentioned polymorphism as something that you learned: Just get some actual practice. I suggest that you pick something less theoretical than a compiler. And, as mentioned above, be critical of your own code. Always explore better ways to do something.
If you have a good reason to disagree with the above, please tell me. Thank you.
Manit0u
Profile Blog Joined August 2004
Poland17469 Posts
June 12 2015 20:38 GMT
#12782
On June 13 2015 04:02 sabas123 wrote:
Im sorry about being so awefully unspecific.

The thing I meant was to learn more about cs patterns, and thought that writing compilers would be a good place because it would be rich of diffrent techniques and patterns to learn from.

I geuss the thing im trying to say is, what kind of knowlage should I look for to improve myself after learning basic OOP stuff like polymorphism and clean code?


I guess that the first thing you should note is that most compilers are written in C, which has exactly 2 patterns to learn - DRY and KISS (the most important ones of them all). You also won't get much OOP with it either.

To address your other concerns, clean code isn't really a pattern or an OOP stuff, it's pretty general stuff that you can (and should) apply to every programming language. You said you've learned polymorphism, but have you learned some actual patterns, how to recognize them, when to use them and so on? I'm talking about stuff like observer, factory and others.

You should definitely read up on SOLID and GRASP too while you're at it. Those are good methodologies that make use of design patterns.
Time is precious. Waste it wisely.
sabas123
Profile Blog Joined December 2010
Netherlands3122 Posts
June 12 2015 21:32 GMT
#12783
the reason why I mention polymorphism is that it was pretty much the most advanced topic I could find in my course planning for the remaining parts of my study.

Since I didn't really knew what to start learning I tried to improve the things I was currently making, thus learning how to write clean code by the SOLID principles,

I never heard about GRASP, ill be looking into that, thanks.
The harder it becomes, the more you should focus on the basics.
Manit0u
Profile Blog Joined August 2004
Poland17469 Posts
Last Edited: 2015-06-12 22:43:43
June 12 2015 22:37 GMT
#12784
My latest hobby:

Whenever I glimpse some code in a movie or a TV show I'll try to figure out what it does, if it's any good etc. Sometimes there's really cool stuff in there, easter eggs, some fun algorithms and such. Matrix was really disappointing in this matter, a pity.

My latest find that I didn't get to work on yet, but I sure will as it'll let me scrape some rust off of my C knowledge (at least I think it's C from the brief glimpse).

[image loading]

[image loading]

Anyone else do that?
Time is precious. Waste it wisely.
Nesserev
Profile Blog Joined January 2011
Belgium2760 Posts
Last Edited: 2015-06-12 23:10:32
June 12 2015 22:59 GMT
#12785
--- Nuked ---
Manit0u
Profile Blog Joined August 2004
Poland17469 Posts
Last Edited: 2015-06-12 23:19:35
June 12 2015 23:16 GMT
#12786
On June 13 2015 07:59 Nesserev wrote:
Show nested quote +
On June 13 2015 07:37 Manit0u wrote:
My latest hobby:

Whenever I glimpse some code in a movie or a TV show I'll try to figure out what it does, if it's any good etc. Sometimes there's really cool stuff in there, easter eggs, some fun algorithms and such. Matrix was really disappointing in this matter, a pity.

My latest find that I didn't get to work on yet, but I sure will as it'll let me scrape some rust off of my C knowledge (at least I think it's C from the brief glimpse).

+ Show Spoiler +
[image loading]


Anyone else do that?

Ends with the includes, looks legit *sarcasm*
Yup, it's C; C with holes, that is... seems like it's doing something with buffers.

I hate any form of programming, hacking, ... or anything related to technology in TV shows or movies, because it's always so 'wrong', or really overdramatic (see below):



Yeah, I know. That's why I'm going through some of the code I find this way and see if any of it is real. Pertaining the C stuff I posted above, the includes were at the bottom because it's just some loose notes. According to the show said code was pertaining to some multi-threading... The code on the computer screen (related to the notes) is supposedly some revolutionary compression algorithm.

Also, oldie but goodie:

Time is precious. Waste it wisely.
Mr. Wiggles
Profile Blog Joined August 2010
Canada5894 Posts
June 13 2015 02:15 GMT
#12787
Sometimes they just take code from wherever they can find it, like this guy's program making it into White House Down:

http://hackoftheday.securitytube.net/2013/04/my-code-made-it-to-hollywood-movie.html
you gotta dance
wherebugsgo
Profile Blog Joined February 2010
Japan10647 Posts
Last Edited: 2015-06-13 03:06:05
June 13 2015 02:36 GMT
#12788
On June 10 2015 15:57 Itsmedudeman wrote:
So guys, I'm in need of advice. I graduate pretty soon as an ECE major (basically electrical engineering) but I think I want to be programming in my career instead. Unfortunately I'm not in a a position to take an extra year of school to graduate with a CS degree, but I have taken quite a bit of CS related stuff including operating systems, data structures, and mobile application development courses. Right now I'm just working on some side projects of mine over the summer and building some web applications and possibly some native applications for android/iphone, but I'm worried about getting a job once I graduate since I'll be behind other people who graduated with CS degrees. I didn't take an algorithms course, or other database courses. What do you guys suggest would be helpful for getting a job in my current position?

TLDR: Not graduating with a CS degree, have some skills, working on apps, what to do from here for a career in programming?


just apply to SWE jobs and try to have something on your resume that indicates you have programming knowledge/experience

You'll need algorithms and database knowledge down pat if you want to pass interviews, because almost all the interviews you'll get will involve heavy technical questions. for example between the 14-15 combined interviewers I had @ Google, Facebook, and Microsoft only one of them asked me anything related to systems design and the rest were all whiteboard coding problems. Focus on one language, preferably one of Java/C++/Python. I had one startup that specifically wanted me to write Java code (and I'm not really up to snuff with Java) but in most cases you can write somewhere in between a real language and pseudocode, as long as your interviewer understands you-unless they are having you work on a laptop or coderpad in which case they probably expect your code to run.

The hardest part is getting to the point where they ask you to interview. Try to contact people on LinkedIn (I used the free trial month of premium) and if your school still is having job fairs go to those. If you have attended any job fairs or you have exchanged emails with recruiters, ping them via email with a line saying how you met them. Tell them a little bit about yourself and hope they ask you for a resume and a follow-up (don't cold-send them your resume because most people don't like that for whatever reason, at least in my experience)

Also if you want a somewhat easier time, make a profile on AngelList (www.angel.co) and start marking startups that interest you. It was very very useful for me and once I got an offer from a startup that I had been introduced to via AngelList my job search accelerated incredibly because other companies also wanted to hire me or at the very least wrap up my process within the time frame I set for them. If you're not perceived as a potential value to an employer they will generally not give you much priority and you can get stuck in their process-most of my friends who interviewed at Google/FB/Microsoft etc. and ended up getting offers were the ones who already had offers from other places. Those who didn't, even if they ended up getting hired in the end, had to go through 3-4 months of bureaucracy.

e: also I should stress if you are doing side projects it helps tremendously to be doing things you are actually interested in, because interviewers like when they can get a candidate to talk at length about something and sound like they know what they were doing (and simultaneously be able to explain it) Toward the tail end of my last job I was interviewing candidates for SWE and one of the best ways to figure out if someone would be a good fit or knew what they were doing was to see how they would respond to questions about some project they listed on their resume.
spinesheath
Profile Blog Joined June 2009
Germany8679 Posts
Last Edited: 2015-06-13 05:40:06
June 13 2015 05:34 GMT
#12789
On June 13 2015 08:16 Manit0u wrote:
Yeah, I know. That's why I'm going through some of the code I find this way and see if any of it is real. Pertaining the C stuff I posted above, the includes were at the bottom because it's just some loose notes. According to the show said code was pertaining to some multi-threading... The code on the computer screen (related to the notes) is supposedly some revolutionary compression algorithm.

Considering that most of that code consists of output and parsing the startup paramerters of the program, I'd doubt that it's a compression algorithm. I also find it slightly fishy that there is no indentation and no closing braces. As for the note: on the plus side it uses ++i instead of i++. But it doesn't seem to do much else.

Unrelated: I recently stumbled across this thing: Wat. It was mentioned on the most recent explainxkcd and is highly amusing. I had to download the video to watch it.
If you have a good reason to disagree with the above, please tell me. Thank you.
phar
Profile Joined August 2011
United States1080 Posts
Last Edited: 2015-06-13 05:45:55
June 13 2015 05:45 GMT
#12790
Wherebus has good advice above.

And yes, especially as a new grad, you will be expected to have roughly 0 system design ability. To the extent you get asked one, it will probably be to probe and see if you're very exceptional, but the expectation is probably that you would fail*.

Lack of a CS degree is not a dealbreaker. If you have some CS coursework and an ECE degree, you should be able to get your foot in the door. Most big places have a spot specifically for new grads where you can send in resumes. Apply to many places, expect that many will not respond.

Read this: http://steve-yegge.blogspot.com/2008/03/get-that-job-at-google.html - even though it says Google, the advice is fairly general.

Brush up on algorithms & data structures.

Write a lot of code.
Who after all is today speaking about the destruction of the Armenians?
wherebugsgo
Profile Blog Joined February 2010
Japan10647 Posts
June 13 2015 06:48 GMT
#12791
btw also programming contest websites are pretty useful if you want to just start doing interview-like questions.

Do them on a pad of paper where you time yourself to like 20 minutes. You want to talk to yourself as you solve the problem, and the reason for the time limit is because most interviews are like 45 minutes but you sometimes spend the first half talking about your resume and random other stuff before starting. The faster you can do those problems the easier you'll have it in a high pressure setting in which you are in an unfamiliar place, talking to an unfamiliar person, and potentially trying to solve an unfamiliar problem.

I used hackerrank and topcoder a lot just to get some more experience solving short problems. If you do their DB/algorithms sections and just plow through as many problems as you can you'll get a lot of good experience and probably encounter some problems that are similar or identical to many that are asked by technical interviewers.

put whatever you are proud of on your github or bitbucket or whatever and put that link in your resume as well. I had about 3-4 people contact me through my github instead of my LinkedIn-since I had it forwarding to some random email I never check I got burned because I missed out on an interview from a couple companies I liked in my area due to it.
Amnesty
Profile Joined April 2003
United States2054 Posts
June 14 2015 03:02 GMT
#12792
SQL question, Obviously a simplified a example

database
Colums
id Color
1 Red
2 Red
3 Yellow
4 Green


What i would like.
Gives me the total counts of colors

Color Count
Red 2
Yellow 1
Green 1


Note i don't know beforehand how many colors are present. Its not a fixed set.
How can i accomplish this?
The sky just is, and goes on and on; and we play all our BW games beneath it.
Acrofales
Profile Joined August 2010
Spain18132 Posts
June 14 2015 03:08 GMT
#12793
select color, count(*) from colortable group by color
killa_robot
Profile Joined May 2010
Canada1884 Posts
Last Edited: 2015-06-14 03:26:33
June 14 2015 03:23 GMT
#12794
TV hacking is always hilarious. My favourite is all the real time stuff.

"Oh no, they're hacking into us! I'll just manually try to keep them out! Oh no, a Trojan!"

Smash the keyboard a few times. Suddenly something explodes.

"Damn, they got us."

On June 13 2015 11:36 wherebugsgo wrote:
Show nested quote +
On June 10 2015 15:57 Itsmedudeman wrote:
So guys, I'm in need of advice. I graduate pretty soon as an ECE major (basically electrical engineering) but I think I want to be programming in my career instead. Unfortunately I'm not in a a position to take an extra year of school to graduate with a CS degree, but I have taken quite a bit of CS related stuff including operating systems, data structures, and mobile application development courses. Right now I'm just working on some side projects of mine over the summer and building some web applications and possibly some native applications for android/iphone, but I'm worried about getting a job once I graduate since I'll be behind other people who graduated with CS degrees. I didn't take an algorithms course, or other database courses. What do you guys suggest would be helpful for getting a job in my current position?

TLDR: Not graduating with a CS degree, have some skills, working on apps, what to do from here for a career in programming?


just apply to SWE jobs and try to have something on your resume that indicates you have programming knowledge/experience

You'll need algorithms and database knowledge down pat if you want to pass interviews, because almost all the interviews you'll get will involve heavy technical questions. for example between the 14-15 combined interviewers I had @ Google, Facebook, and Microsoft only one of them asked me anything related to systems design and the rest were all whiteboard coding problems. Focus on one language, preferably one of Java/C++/Python. I had one startup that specifically wanted me to write Java code (and I'm not really up to snuff with Java) but in most cases you can write somewhere in between a real language and pseudocode, as long as your interviewer understands you-unless they are having you work on a laptop or coderpad in which case they probably expect your code to run.


Wow, I could never go to that many interviews for a job. I don't even bother to apply to such large places. Way too intimidating.

I applied to a place I thought was smaller before, ended up being 3 people interviewing me one by one over the course of 2-3 hours. Terrible experience, especially because only the first interview was really meaningful and the others were largely just repeating stuff I mentioned to the first guy.
necrosexy
Profile Joined March 2011
451 Posts
June 14 2015 05:28 GMT
#12795
any recommended resources for learning unix and shell programming?
Frolossus
Profile Joined February 2010
United States4779 Posts
June 14 2015 06:11 GMT
#12796
On June 14 2015 14:28 necrosexy wrote:
any recommended resources for learning unix and shell programming?

http://www.tldp.org/LDP/Bash-Beginners-Guide/html/
Nesserev
Profile Blog Joined January 2011
Belgium2760 Posts
Last Edited: 2015-06-14 11:18:20
June 14 2015 11:11 GMT
#12797
--- Nuked ---
r3dox
Profile Blog Joined May 2003
Germany261 Posts
June 14 2015 13:27 GMT
#12798
On June 14 2015 12:02 Amnesty wrote:
SQL question, Obviously a simplified a example

database
Colums
id Color
1 Red
2 Red
3 Yellow
4 Green


What i would like.
Gives me the total counts of colors

Color Count
Red 2
Yellow 1
Green 1


Note i don't know beforehand how many colors are present. Its not a fixed set.
How can i accomplish this?


if you have to turn to a forum for a rather simple SQL question like this, i suggest you take the time to work through this amazing SQL interactive tutorial: http://sqlzoo.net/
wherebugsgo
Profile Blog Joined February 2010
Japan10647 Posts
Last Edited: 2015-06-14 20:19:14
June 14 2015 20:11 GMT
#12799
On June 14 2015 12:23 killa_robot wrote:
Wow, I could never go to that many interviews for a job. I don't even bother to apply to such large places. Way too intimidating.

I applied to a place I thought was smaller before, ended up being 3 people interviewing me one by one over the course of 2-3 hours. Terrible experience, especially because only the first interview was really meaningful and the others were largely just repeating stuff I mentioned to the first guy.


it sucks but that's the way you have to do it if you want a well-paying job at a tech company in SV.

Most of my on-site interviews were all-day affairs, usually starting around 10 in the morning and ending around 4. The hardest part is the fatigue once you have enough practice and you know what is expected. Also you can consider the phone screens to just be individual interviews prior to the "real thing".

But it paid off for me :D hard to beat $150k++ in annual compensation and amazing perks right out of college

edit: also I should say that some of the hardest interviews are not at the places you'd expect. The ones for me that were hardest were some startups in SF and places like Dropbox, Quora, Patreon etc which are on the smallish to medium size.

for example at one of the places I interviewed at I was requested to solve something that is a slight variation of the collaboration distance problem. (e.g. Kevin Bacon number or Erdős number) and I was given maybe 20-30 minutes to whiteboard my solution to the problem which was initially not in an easily or obviously solvable format. I'm pretty sure that question was designed to fail almost every candidate that applied.
Nesserev
Profile Blog Joined January 2011
Belgium2760 Posts
June 14 2015 20:49 GMT
#12800
--- Nuked ---
Prev 1 638 639 640 641 642 1032 Next
Please log in or register to reply.
Live Events Refresh
PiGosaur Cup
01:00
#59
SteadfastSC297
CranKy Ducklings147
EnkiAlexander 60
Liquipedia
[ Submit Event ]
Live Streams
Refresh
StarCraft 2
SteadfastSC 297
RuFF_SC2 163
StarCraft: Brood War
Britney 9435
Artosis 625
Snow 60
Soulkey 58
Noble 44
Sharp 22
Icarus 6
Dota 2
monkeys_forever467
League of Legends
JimRising 790
Counter-Strike
Coldzera 1969
Other Games
summit1g7889
C9.Mang0342
ViBE176
WinterStarcraft132
Trikslyr60
Organizations
Other Games
gamesdonequick1048
Dota 2
PGL Dota 2 - Main Stream266
StarCraft: Brood War
UltimateBattle 10
StarCraft 2
Blizzard YouTube
StarCraft: Brood War
BSLTrovo
sctven
[ Show 17 non-featured ]
StarCraft 2
• Hupsaiya 77
• Kozan
• LaughNgamezSOOP
• sooper7s
• AfreecaTV YouTube
• intothetv
• Migwel
• IndyKCrew
StarCraft: Brood War
• Azhi_Dahaki27
• RayReign 9
• STPLYoutube
• ZZZeroYoutube
• BSLYoutube
League of Legends
• Rush1099
• Lourlo514
• Stunt321
Other Games
• Scarra2057
Upcoming Events
Replay Cast
4h 27m
Wardi Open
7h 27m
OSC
8h 27m
Tenacious Turtle Tussle
19h 27m
The PondCast
1d 5h
Replay Cast
1d 18h
OSC
2 days
LAN Event
2 days
Replay Cast
2 days
Replay Cast
3 days
[ Show More ]
WardiTV Korean Royale
3 days
Sparkling Tuna Cup
4 days
WardiTV Korean Royale
4 days
Replay Cast
4 days
Wardi Open
5 days
Monday Night Weeklies
5 days
Replay Cast
5 days
Wardi Open
6 days
Liquipedia Results

Completed

SOOP Univ League 2025
RSL Revival: Season 3
Eternal Conflict S1

Ongoing

C-Race Season 1
IPSL Winter 2025-26
KCM Race Survival 2025 Season 4
YSL S2
BSL Season 21
CSCL: Masked Kings S3
Slon Tour Season 2
META Madness #9
SL Budapest Major 2025
BLAST Rivals Fall 2025
IEM Chengdu 2025
PGL Masters Bucharest 2025
Thunderpick World Champ.
CS Asia Championships 2025
ESL Pro League S22
StarSeries Fall 2025
FISSURE Playground #2

Upcoming

BSL 21 Non-Korean Championship
Acropolis #4
IPSL Spring 2026
HSC XXVIII
RSL Offline Finals
WardiTV 2025
IEM Kraków 2026
BLAST Bounty Winter 2026
BLAST Bounty Winter 2026: Closed Qualifier
eXTREMESLAND 2025
ESL Impact League Season 8
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.