• Log InLog In
  • Register
Liquid`
Team Liquid Liquipedia
EST 02:15
CET 08:15
KST 16:15
  • 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
herO wins SC2 All-Star Invitational3SC2 All-Star Invitational: Tournament Preview5RSL Revival - 2025 Season Finals Preview8RSL Season 3 - Playoffs Preview0RSL Season 3 - RO16 Groups C & D Preview0
Community News
Weekly Cups (Jan 12-18): herO, MaxPax, Solar win0BSL Season 2025 - Full Overview and Conclusion8Weekly Cups (Jan 5-11): Clem wins big offline, Trigger upsets4$21,000 Rongyi Cup Season 3 announced (Jan 22-Feb 7)16Weekly Cups (Dec 29-Jan 4): Protoss rolls, 2v2 returns7
StarCraft 2
General
herO wins SC2 All-Star Invitational PhD study /w SC2 - help with a survey! SC2 Spotted on the EWC 2026 list? Starcraft 2 will not be in the Esports World Cup When will we find out if there are more tournament
Tourneys
$70 Prize Pool Ladder Legends Academy Weekly Open! SC2 All-Star Invitational: Jan 17-18 Sparkling Tuna Cup - Weekly Open Tournament SC2 AI Tournament 2026 $21,000 Rongyi Cup Season 3 announced (Jan 22-Feb 7)
Strategy
Simple Questions Simple Answers
Custom Maps
[A] Starcraft Sound Mod
External Content
Mutation # 509 Doomsday Report Mutation # 508 Violent Night Mutation # 507 Well Trained Mutation # 506 Warp Zone
Brood War
General
[ASL21] Potential Map Candidates BGH Auto Balance -> http://bghmmr.eu/ Gypsy to Korea BSL Season 2025 - Full Overview and Conclusion A cwal.gg Extension - Easily keep track of anyone
Tourneys
[Megathread] Daily Proleagues [BSL21] Non-Korean Championship - Starts Jan 10 Small VOD Thread 2.0 Azhi's Colosseum - Season 2
Strategy
Current Meta Simple Questions, Simple Answers Soma's 9 hatch build from ASL Game 2 Game Theory for Starcraft
Other Games
General Games
Nintendo Switch Thread Battle Aces/David Kim RTS Megathread Stormgate/Frost Giant Megathread Beyond All Reason Awesome Games Done Quick 2026!
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 Mafia Game Mode Feedback/Ideas
Community
General
US Politics Mega-thread Things Aren’t Peaceful in Palestine Russo-Ukrainian War Thread NASA and the Private Sector Canadian Politics Mega-thread
Fan Clubs
The herO Fan Club! The IdrA Fan Club
Media & Entertainment
Anime Discussion Thread [Manga] One Piece
Sports
2024 - 2026 Football Thread
World Cup 2022
Tech Support
Computer Build, Upgrade & Buying Resource Thread
TL Community
The Automated Ban List
Blogs
Navigating the Risks and Rew…
TrAiDoS
My 2025 Magic: The Gathering…
DARKING
Life Update and thoughts.
FuDDx
How do archons sleep?
8882
James Bond movies ranking - pa…
Topin
Customize Sidebar...

Website Feedback

Closed Threads



Active: 1649 users

The Big Programming Thread - Page 227

Forum Index > General Forum
Post a Reply
Prev 1 225 226 227 228 229 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.
AmericanUmlaut
Profile Blog Joined November 2010
Germany2590 Posts
January 08 2013 10:38 GMT
#4521
So here's a question for you all: We've had a lot of discussions about bad interview questions in this thread, but we haven't really talked much about what good interview questions are. My company (in Düsseldorf, in case you're interested) is about to add two new developers, and I'm curious to know what you think I should be asking. We're a web-application company, so we need people who can do HTML, Javascript, PHP, MySQL, and related nonsense. I'm not averse to hiring someone who doesn't have a lot of specific web programming experience (I was a C/C++ guy myself when I started) , but it would obviously be an advantage to have someone who could start writing productive code that much more quickly. So I want to be prepared with enough generalist questions to get a solid picture of someone whose experience is in another field, but also some good tech-specific questions to drill down with someone who represents themselves as an experienced web programmer.

So have at it: What question would you ask in my situation? If you were applying for one of our open positions, what question would you want to be asked to allow you to demonstrate your genius?
The frumious Bandersnatch
IAMFAPMAN
Profile Joined March 2012
60 Posts
January 08 2013 10:43 GMT
#4522
On January 08 2013 19:38 AmericanUmlaut wrote:
If you were applying for one of our open positions, what question would you want to be asked to allow you to demonstrate your genius?


thats a pretty good question IMO ^^
AmericanUmlaut
Profile Blog Joined November 2010
Germany2590 Posts
January 08 2013 10:47 GMT
#4523
On January 08 2013 19:43 IAMFAPMAN wrote:
Show nested quote +
On January 08 2013 19:38 AmericanUmlaut wrote:
If you were applying for one of our open positions, what question would you want to be asked to allow you to demonstrate your genius?


thats a pretty good question IMO ^^

You mean that I should literally ask the applicant what they'd like to be asked? I hadn't considered that, but it sounds like it could be an interesting question.
The frumious Bandersnatch
b3n3tt3
Profile Joined January 2012
595 Posts
January 08 2013 14:20 GMT
#4524
lol I love that next level meta question
Pecul
Profile Joined September 2008
Sweden116 Posts
January 08 2013 14:43 GMT
#4525
Hello TL!

I have a small problem in Python 3.3 GUI

I want to have a button, which when you press it, it will close the current window. Here is what I tried:


+ Show Spoiler +

def mDestroy(window):
window.destroy() #Should be some whitespace at the beginning here, dunno why it wont show it like that in the post.

mGui = Tk()

mGui.geometry("510x450+300+300")

mbutton6 = Button(text="Quit", command = mDestroy(mGui)).pack()


This should work right? But the function seems to mess up my window and the button doesn't work :/
Anyone knows why it doesn't work?

Thanks in advance!
Deleted User 101379
Profile Blog Joined August 2010
4849 Posts
Last Edited: 2013-01-08 14:49:01
January 08 2013 14:47 GMT
#4526
On January 08 2013 23:43 Pecul wrote:
Hello TL!

I have a small problem in Python 3.3 GUI

I want to have a button, which when you press it, it will close the current window. Here is what I tried:


+ Show Spoiler +

def mDestroy(window):
window.destroy() #Should be some whitespace at the beginning here, dunno why it wont show it like that in the post.

mGui = Tk()

mGui.geometry("510x450+300+300")

mbutton6 = Button(text="Quit", command = mDestroy(mGui)).pack()


This should work right? But the function seems to mess up my window and the button doesn't work :/
Anyone knows why it doesn't work?

Thanks in advance!


Can't help for the specific problem since i haven't done a lot of Python programming but to display the code here, use the code tag:


[code]
def mDestroy(window):
window.destroy() #Should be some whitespace at the beginning here, dunno why it wont show it like that in the post.

mGui = Tk()

mGui.geometry("510x450+300+300")

mbutton6 = Button(text="Quit", command = mDestroy(mGui)).pack()

[/code]
njt7
Profile Joined August 2012
Sweden769 Posts
January 08 2013 14:49 GMT
#4527
On January 08 2013 19:38 AmericanUmlaut wrote:

So have at it: What question would you ask in my situation? If you were applying for one of our open positions, what question would you want to be asked to allow you to demonstrate your genius?


I do not think that doing only interviews is the way to go for hiring a programmer. A gaming company I applied for a while back gave all of the interviewees a couple of simple questions but then also handed out a programming task. Well obviously for a gaming company this was to create a smaller game with a pretty short timespan(working against a deadline etc.)

Just give a simple task that involves a couple of different techniques that you would need in the everyday work at your company.

A decent programmer in c/c++ should be able to show his genius this way. The language does not matter it is the solution right?

With this way of hiring you will easily get rid of the bullshiters when you can actually take a gick glance at their code and you can see that they are naming all of their variables to pop or vaginaDouble1 - 69.
"All the casters who flamed me ever for anything."
nyxnyxnyx
Profile Joined April 2010
Indonesia2978 Posts
January 08 2013 15:46 GMT
#4528
i come to you out of desperation. i've failed a Java module twice in a row now and would really appreciate a mentor i could bug with questions. would anyone be up for the challenge?
cool beans
heroyi
Profile Blog Joined March 2009
United States1064 Posts
Last Edited: 2013-01-08 16:14:35
January 08 2013 16:11 GMT
#4529
On January 08 2013 23:49 njt7 wrote:
Show nested quote +
On January 08 2013 19:38 AmericanUmlaut wrote:

So have at it: What question would you ask in my situation? If you were applying for one of our open positions, what question would you want to be asked to allow you to demonstrate your genius?


I do not think that doing only interviews is the way to go for hiring a programmer. A gaming company I applied for a while back gave all of the interviewees a couple of simple questions but then also handed out a programming task. Well obviously for a gaming company this was to create a smaller game with a pretty short timespan(working against a deadline etc.)

Just give a simple task that involves a couple of different techniques that you would need in the everyday work at your company.

A decent programmer in c/c++ should be able to show his genius this way. The language does not matter it is the solution right?

With this way of hiring you will easily get rid of the bullshiters when you can actually take a gick glance at their code and you can see that they are naming all of their variables to pop or vaginaDouble1 - 69.

The question isnt a bad thing to ask. The replies would be interesting but I do agree that alone wouldn't give you a very big grasp of their ability.
So in conjunction have a little activity ready for them for them to work on and witness their work. Make sure to also ask them to think out loud so that you can REALLY understand how their thought process to see if they are indeed geniuses and genuine coders.

on topic :
I have never really been big on the whole network topic thus an absolute noob. I was wondering if someone could possibly point me in the right direction with, preferably, free resources on how to start educating myself on such topic. I am somewhat of a beginner/intermediate coder with C++, java, python and some html. Kinda want to start coding while working with networks considering that is where all the big money lies xD...that and am insecure of my skillset for the market
wat wat in my pants
AmericanUmlaut
Profile Blog Joined November 2010
Germany2590 Posts
January 08 2013 16:14 GMT
#4530
On January 09 2013 01:11 heroyi wrote:
Show nested quote +
On January 08 2013 23:49 njt7 wrote:
On January 08 2013 19:38 AmericanUmlaut wrote:

So have at it: What question would you ask in my situation? If you were applying for one of our open positions, what question would you want to be asked to allow you to demonstrate your genius?


I do not think that doing only interviews is the way to go for hiring a programmer. A gaming company I applied for a while back gave all of the interviewees a couple of simple questions but then also handed out a programming task. Well obviously for a gaming company this was to create a smaller game with a pretty short timespan(working against a deadline etc.)

Just give a simple task that involves a couple of different techniques that you would need in the everyday work at your company.

A decent programmer in c/c++ should be able to show his genius this way. The language does not matter it is the solution right?

With this way of hiring you will easily get rid of the bullshiters when you can actually take a gick glance at their code and you can see that they are naming all of their variables to pop or vaginaDouble1 - 69.

The question isnt a bad thing to ask. The replies would be interesting but I do agree that alone wouldn't give you a very big grasp of their ability.
So in conjunction have a little activity ready for them for them to work on and witness their work. Make sure to also ask them to think out loud so that you can REALLY understand how their thought process to see if they are indeed geniuses and genuine coders.

on topic :
I have never really been big on the whole network topic thus an absolute noob. I was wondering if someone could possibly point me in the right direction with, preferably, free resources on how to start educating myself on such topic. I am somewhat of a beginner/intermediate coder with C++, java, python and some html

What is it you're trying to do? There's a big difference between programming a communications protocoll for a multiplayer game, writing a web application with a RESTful interface and implementing a SOAP API, for example.
The frumious Bandersnatch
njt7
Profile Joined August 2012
Sweden769 Posts
Last Edited: 2013-01-08 16:35:25
January 08 2013 16:27 GMT
#4531
You are will be using sockets in one way or another when working with networks so Id start with those.

http://en.wikipedia.org/wiki/Network_socket
http://docs.python.org/2/library/socket.html

Maybe you could build a irc bot using a socket in python to ease into it. That was my first encounter to sockets.
"All the casters who flamed me ever for anything."
Savi[wOk]
Profile Blog Joined August 2012
United States81 Posts
Last Edited: 2013-01-08 22:29:29
January 08 2013 22:29 GMT
#4532
JavaScript Question



console.log("HelloWorld");

document.write("HelloWorld");

I've been learning to script with using CodeAcademy online and also some books on the matter.
Is their a difference between the different wordings in order to get certain things done?
Lets play starcraft
tec27
Profile Blog Joined June 2004
United States3702 Posts
January 08 2013 22:59 GMT
#4533
On January 09 2013 07:29 Savi[wOk] wrote:
JavaScript Question



console.log("HelloWorld");

document.write("HelloWorld");

I've been learning to script with using CodeAcademy online and also some books on the matter.
Is their a difference between the different wordings in order to get certain things done?

document.write writes directly to the current window's document (IE: the page the JS is running on), whereas console.log is writing to the web debugger's console. document.write is awful, don't ever use it. If you have a book that's telling you to use it, burn that book immediately, or at least never look at it again.
Can you jam with the console cowboys in cyberspace?
MisterD
Profile Blog Joined June 2010
Germany1338 Posts
January 08 2013 23:10 GMT
#4534
On January 09 2013 00:46 nyxnyxnyx wrote:
i come to you out of desperation. i've failed a Java module twice in a row now and would really appreciate a mentor i could bug with questions. would anyone be up for the challenge?

feel free to shoot me pms or contact me on irc (quakenet #teamliquid or #tl.code, same nick as here), due to the geographical distance though i'll likely be asleep throughout half of your day, so i don't know if someone from closer to you would maybe be more suitable.
Gold isn't everything in life... you need wood, too!
NukeTheBunnys
Profile Joined July 2010
United States1004 Posts
January 08 2013 23:51 GMT
#4535
Im looking to do some c++\openGL game related programming. Does anyone have any suggestions for a cross platform library (or libraries) that can do windowing, input, and sound. And before someone says I should use an engine like Unity, or a different language - half the point of doing this is I'm interested in the low level game systems like managing the input/threading/audio streams

Windows APIs (not multi-platform, but oh well - I can encapsulate the code anddeal with porting the code if I ever want to port it)
SDL - started working with it but had some troubles getting it set up on windows and visual studio, but otherwise it looks like it would meet all my desires.
Allegro - can be used with openGL, but the documentation of using allegro with openGL (2d or 3d) is pretty sparse

I have also considered using openAL for 3d positional sound, but that will likely come after I get some of the other systems working

Anyone have other suggestions, or experience with the mentioned libraries.
When you play the game of drones you win or you die.
tec27
Profile Blog Joined June 2004
United States3702 Posts
Last Edited: 2013-01-09 00:00:04
January 08 2013 23:59 GMT
#4536
http://www.glfw.org/ can handle the windowing/input, don't really have a suggestion as for the audio though
Can you jam with the console cowboys in cyberspace?
Mstring
Profile Joined September 2011
Australia510 Posts
January 09 2013 00:01 GMT
#4537
I've use GLFW. It's tiny and very simple. No sound though. I've only used it on windows but it claims to be cross platform.
berated-
Profile Blog Joined February 2007
United States1134 Posts
January 09 2013 00:50 GMT
#4538
On January 08 2013 19:38 AmericanUmlaut wrote:
So here's a question for you all: We've had a lot of discussions about bad interview questions in this thread, but we haven't really talked much about what good interview questions are. My company (in Düsseldorf, in case you're interested) is about to add two new developers, and I'm curious to know what you think I should be asking. We're a web-application company, so we need people who can do HTML, Javascript, PHP, MySQL, and related nonsense. I'm not averse to hiring someone who doesn't have a lot of specific web programming experience (I was a C/C++ guy myself when I started) , but it would obviously be an advantage to have someone who could start writing productive code that much more quickly. So I want to be prepared with enough generalist questions to get a solid picture of someone whose experience is in another field, but also some good tech-specific questions to drill down with someone who represents themselves as an experienced web programmer.

So have at it: What question would you ask in my situation? If you were applying for one of our open positions, what question would you want to be asked to allow you to demonstrate your genius?


We have an interview process where all developers interview potential new hires since we are a pretty small shop (10 devlopers). I have been interviewing developers for almost 5 yrs and the one question that I'm still looking for a great answer for is "Why are you here interviewing at our company?".

It's extremely frank but I can pretty much say with the last couple of people that we have hired their less than enthusiastic answer pretty much correlates with their work. They are solid developers but they don't seem to have the passion, the drive to want to be the best.

The thing I've found that I want more in a developer more than any level of expertise or skill or genius is the desire to want to do a great job and want to improve on ones craft. That type of attitude is contagious.
heroyi
Profile Blog Joined March 2009
United States1064 Posts
January 09 2013 03:02 GMT
#4539
On January 09 2013 01:14 AmericanUmlaut wrote:
Show nested quote +
On January 09 2013 01:11 heroyi wrote:
On January 08 2013 23:49 njt7 wrote:
On January 08 2013 19:38 AmericanUmlaut wrote:

So have at it: What question would you ask in my situation? If you were applying for one of our open positions, what question would you want to be asked to allow you to demonstrate your genius?


I do not think that doing only interviews is the way to go for hiring a programmer. A gaming company I applied for a while back gave all of the interviewees a couple of simple questions but then also handed out a programming task. Well obviously for a gaming company this was to create a smaller game with a pretty short timespan(working against a deadline etc.)

Just give a simple task that involves a couple of different techniques that you would need in the everyday work at your company.

A decent programmer in c/c++ should be able to show his genius this way. The language does not matter it is the solution right?

With this way of hiring you will easily get rid of the bullshiters when you can actually take a gick glance at their code and you can see that they are naming all of their variables to pop or vaginaDouble1 - 69.

The question isnt a bad thing to ask. The replies would be interesting but I do agree that alone wouldn't give you a very big grasp of their ability.
So in conjunction have a little activity ready for them for them to work on and witness their work. Make sure to also ask them to think out loud so that you can REALLY understand how their thought process to see if they are indeed geniuses and genuine coders.

on topic :
I have never really been big on the whole network topic thus an absolute noob. I was wondering if someone could possibly point me in the right direction with, preferably, free resources on how to start educating myself on such topic. I am somewhat of a beginner/intermediate coder with C++, java, python and some html

What is it you're trying to do? There's a big difference between programming a communications protocoll for a multiplayer game, writing a web application with a RESTful interface and implementing a SOAP API, for example.

how about establishing a basic primitive network 101
wat wat in my pants
Zeke50100
Profile Blog Joined February 2010
United States2220 Posts
January 09 2013 03:07 GMT
#4540
On January 09 2013 08:51 NukeTheBunnys wrote:
Im looking to do some c++\openGL game related programming. Does anyone have any suggestions for a cross platform library (or libraries) that can do windowing, input, and sound. And before someone says I should use an engine like Unity, or a different language - half the point of doing this is I'm interested in the low level game systems like managing the input/threading/audio streams

Windows APIs (not multi-platform, but oh well - I can encapsulate the code anddeal with porting the code if I ever want to port it)
SDL - started working with it but had some troubles getting it set up on windows and visual studio, but otherwise it looks like it would meet all my desires.
Allegro - can be used with openGL, but the documentation of using allegro with openGL (2d or 3d) is pretty sparse

I have also considered using openAL for 3d positional sound, but that will likely come after I get some of the other systems working

Anyone have other suggestions, or experience with the mentioned libraries.


SDL can fully integrate with OpenGL. You just leave all of the rendering up to OpenGL, and just pass the OpenGL flag when initializing SDL (it's different with SDL 2.0, and I have yet to integrate OpenGL with SDL 2.0. It shouldn't be too different, though). I believe lazyfoo's tutorial should be fine for getting started with integrating the two, after which you just let OpenGL do all the rest of the work. I would highly recommend going with the SDL + OpenGL route.

OpenAL isn't too difficult to learn, thankfully. I have it running with both SDL 1.2 and 2.0 seamlessly (I'm not even bothering with using SDL's audio subsystem), and it's incredibly similar to OpenGL. If you're going the OAL route, I would suggest picking up libogg (and libvorbis) to handle audio file loading in *.ogg files.
Prev 1 225 226 227 228 229 1032 Next
Please log in or register to reply.
Live Events Refresh
Next event in 2h 46m
[ Submit Event ]
Live Streams
Refresh
StarCraft: Brood War
actioN 358
Larva 204
Light 142
Movie 99
Shine 90
Shinee 89
Hm[arnc] 74
ZergMaN 60
Nal_rA 30
EffOrt 23
[ Show more ]
Bale 18
HiyA 12
Icarus 8
NotJumperer 1
League of Legends
JimRising 777
C9.Mang0473
Other Games
summit1g6720
WinterStarcraft338
XaKoH 143
Mew2King105
Organizations
Other Games
gamesdonequick1199
StarCraft: Brood War
UltimateBattle 90
StarCraft 2
Blizzard YouTube
StarCraft: Brood War
BSLTrovo
sctven
[ Show 14 non-featured ]
StarCraft 2
• AfreecaTV YouTube
• intothetv
• Kozan
• IndyKCrew
• LaughNgamezSOOP
• Laughngamez YouTube
• Migwel
• sooper7s
StarCraft: Brood War
• BSLYoutube
• STPLYoutube
• ZZZeroYoutube
League of Legends
• Lourlo1379
• Stunt388
Other Games
• Shiphtur209
Upcoming Events
The PondCast
2h 46m
OSC
3h 46m
Clem vs Cure
ByuN vs TBD
TBD vs Solar
MaxPax vs TBD
Krystianer vs TBD
ShoWTimE vs TBD
Big Brain Bouts
2 days
Serral vs TBD
BSL 21
3 days
BSL 21
4 days
Wardi Open
5 days
Monday Night Weeklies
5 days
WardiTV Invitational
6 days
Liquipedia Results

Completed

Proleague 2026-01-20
SC2 All-Star Inv. 2025
NA Kuram Kup

Ongoing

C-Race Season 1
BSL 21 Non-Korean Championship
CSL 2025 WINTER (S19)
KCM Race Survival 2026 Season 1
OSC Championship Season 13
Underdog Cup #3
BLAST Bounty Winter Qual
eXTREMESLAND 2025
SL Budapest Major 2025
ESL Impact League Season 8
BLAST Rivals Fall 2025
IEM Chengdu 2025

Upcoming

Escore Tournament S1: W5
Acropolis #4 - TS4
Acropolis #4
IPSL Spring 2026
Bellum Gens Elite Stara Zagora 2026
HSC XXVIII
Rongyi Cup S3
Nations Cup 2026
PGL Bucharest 2026
Stake Ranked Episode 1
BLAST Open Spring 2026
ESL Pro League Season 23
ESL Pro League Season 23
PGL Cluj-Napoca 2026
IEM Kraków 2026
BLAST Bounty Winter 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.