• Log InLog In
  • Register
Liquid`
Team Liquid Liquipedia
EDT 11:01
CEST 17:01
KST 00:01
  • 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] Ro16 Preview: Holy Diver0[ASL22] Ro16 Preview: Rough Waters10[ASL22] Ro24 Preview: Siren's Call8[ASL22] Ro24 Preview: Summer's End9Serral wins HomeStory Cup 2915
Community News
StarCraft open world shooter announced at BlizzCon71Weekly Cups (Aug 30-Sep 7): herO thrives amid growing schism10Official StarCraft website teases new content ahead of BlizzCon?172Stellar Fest TWO the Moon (Dec 16-20)9Weekly Cups (August 24-30): Patches' balance mod takes over3
StarCraft 2
General
StarCraft open world shooter announced at BlizzCon How do you feel about the StarCraft shooter announcement at BlizzCon 2026? Balance hotfix patch 5.0.16b (July 16) Team Liquid Map Contest #22: Results and Winners Weekly Cups (Aug 30-Sep 7): herO thrives amid growing schism
Tourneys
Sparkling Tuna Cup - Weekly Open Tournament RSL goes to London! 2026 Offline Finals Nov 21-22 KSL Week #92 IntoTheTV X SOOP SC2 League : Weekly & Monthly 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 # 542 The Ascended Mutation # 541 Binary Choice Mutation # 540 Dodge This
Brood War
General
Official StarCraft website teases new content ahead of BlizzCon? [ASL22] Ro16 Preview: Holy Diver ASL22 General Discussion BGH Auto Balance -> http://bghmmr.eu/ Broodwar Prediction Market
Tourneys
[ASL22] Ro16 Group C [ASL22] Ro16 Group B [ASL22] Ro16 Group A Escore Tournament - Season 3
Strategy
Replay Review Process - What do you do? Simple Questions, Simple Answers Odyssey Mineral Stack Saturation Game Theory for Starcraft
Other Games
General Games
Diablo IV Nintendo Switch Thread EVE Corporation [Maplestory Hardcore] Let's Play~!! General RTS Discussion Thread
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 Community Thread
Community
General
UK Politics Mega-thread US Politics Mega-thread Things Aren’t Peaceful in Palestine Trading/Investing Thread Russo-Ukrainian War Thread
Fan Clubs
MarineLorD Fan Club The Creator Fan Club The ShoWTimE Fan Club
Media & Entertainment
Movie Discussion! Diablo Animated Series on Netflix
Sports
Football (Soccer) Thread TeamLiquid Health and Fitness Initiative For 2023 MLB/Baseball 2023
World Cup 2022
Tech Support
Computer Build, Upgrade & Buying Resource Thread
TL Community
The Automated Ban List Northern Ireland Global Starcraft
Blogs
Virtual Romance, Real-Life C…
TrAiDoS
Regacy Esports:Our Goa…
regacyesports
Dreaming of BW patches (mod…
c3rberUs
LOCKPICKING NOOB
LUCKY_NOOB
Customize Sidebar...

Website Feedback

Closed Threads



Active: 5205 users

The Big Programming Thread - Page 489

Forum Index > General Forum
Post a Reply
Prev 1 487 488 489 490 491 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.
obesechicken13
Profile Blog Joined July 2008
United States10467 Posts
Last Edited: 2014-06-07 12:13:32
June 07 2014 12:12 GMT
#9761
I have an interview on Thursday with a data company looking for someone to do QA/programming. The programming position requires C and I'm not confident in my abilities with it. I think this is technical but no coding is required.

How should I go about studying for it. I know databases and networking fairly well. I can review my notes for networking.
Even though I've used bash, I'm fairly bad at it and have to look up basic things. Like process management. The extent of my working knowledge is like listing file size in a directory using ls -l.
I'm not confident in parallel programming. I understand what it is but I don't think I've actually programmed with it specifically in mind.
I'm fairly confident in data structures but I suck at answering conceptual questions about them.

1. Common web technologies and protocols (http, dns, tcp/ip etc)
2) Linux
3) Databases
4) Parallel programming
5) Data structures

My current plan is to go through cracking the coding interview and read a few data structures problems.
What else do you advise I go through? Remember, I only have less than a week!
I think in our modern age technology has evolved to become more addictive. The things that don't give us pleasure aren't used as much. Work was never meant to be fun, but doing it makes us happier in the long run.
Xyik
Profile Blog Joined November 2009
Canada728 Posts
June 07 2014 12:59 GMT
#9762
On June 07 2014 21:12 obesechicken13 wrote:
I have an interview on Thursday with a data company looking for someone to do QA/programming. The programming position requires C and I'm not confident in my abilities with it. I think this is technical but no coding is required.

How should I go about studying for it. I know databases and networking fairly well. I can review my notes for networking.
Even though I've used bash, I'm fairly bad at it and have to look up basic things. Like process management. The extent of my working knowledge is like listing file size in a directory using ls -l.
I'm not confident in parallel programming. I understand what it is but I don't think I've actually programmed with it specifically in mind.
I'm fairly confident in data structures but I suck at answering conceptual questions about them.

1. Common web technologies and protocols (http, dns, tcp/ip etc)
2) Linux
3) Databases
4) Parallel programming
5) Data structures

My current plan is to go through cracking the coding interview and read a few data structures problems.
What else do you advise I go through? Remember, I only have less than a week!


You might want to read up on mapreduce and make sure you know databases really well. If the position requires C and you're not confident in it I suggest you brush up on it. Any reason algorithms aren't on that list? If you're working with big data they will likely want to see that you're strong in algorithms I'd guess.
obesechicken13
Profile Blog Joined July 2008
United States10467 Posts
Last Edited: 2014-06-07 13:16:53
June 07 2014 13:16 GMT
#9763
On June 07 2014 21:59 Xyik wrote:
Show nested quote +
On June 07 2014 21:12 obesechicken13 wrote:
I have an interview on Thursday with a data company looking for someone to do QA/programming. The programming position requires C and I'm not confident in my abilities with it. I think this is technical but no coding is required.

How should I go about studying for it. I know databases and networking fairly well. I can review my notes for networking.
Even though I've used bash, I'm fairly bad at it and have to look up basic things. Like process management. The extent of my working knowledge is like listing file size in a directory using ls -l.
I'm not confident in parallel programming. I understand what it is but I don't think I've actually programmed with it specifically in mind.
I'm fairly confident in data structures but I suck at answering conceptual questions about them.

1. Common web technologies and protocols (http, dns, tcp/ip etc)
2) Linux
3) Databases
4) Parallel programming
5) Data structures

My current plan is to go through cracking the coding interview and read a few data structures problems.
What else do you advise I go through? Remember, I only have less than a week!


You might want to read up on mapreduce and make sure you know databases really well. If the position requires C and you're not confident in it I suggest you brush up on it. Any reason algorithms aren't on that list? If you're working with big data they will likely want to see that you're strong in algorithms I'd guess.

I think algo's covered in data structures. It's hard to have an interview question with conceptual questions w/o algorithms.

Mapreduce is the thing hadoop uses? I'll reread it. Thanks.
I think in our modern age technology has evolved to become more addictive. The things that don't give us pleasure aren't used as much. Work was never meant to be fun, but doing it makes us happier in the long run.
nunez
Profile Blog Joined February 2011
Norway4003 Posts
Last Edited: 2014-06-07 13:40:56
June 07 2014 13:39 GMT
#9764
@obese
been reading advanced programming in the unix environment, re: linux / c.
i'm sure you can browse through the most relevant chapters in a couple of days.
conspired against by a confederacy of dunces.
obesechicken13
Profile Blog Joined July 2008
United States10467 Posts
June 07 2014 13:43 GMT
#9765
On June 07 2014 22:39 nunez wrote:
@obese
been reading advanced programming in the unix environment, re: linux / c.
i'm sure you can browse through the most relevant chapters in a couple of days.

Thanks
I think in our modern age technology has evolved to become more addictive. The things that don't give us pleasure aren't used as much. Work was never meant to be fun, but doing it makes us happier in the long run.
Shield
Profile Blog Joined August 2009
Bulgaria4824 Posts
Last Edited: 2014-06-10 12:01:11
June 10 2014 11:58 GMT
#9766
I'm currently reading 'Clean Code' (page 76/462), chapter "Command Query Separation". It says an add/set function shouldn't also return a boolean result. It should either do something or answer something but not both. Is this criticism towards Java's design of Collection#add?
spinesheath
Profile Blog Joined June 2009
Germany8679 Posts
June 10 2014 17:14 GMT
#9767
There is plenty of criticism on Java's classes in good books out there.
As always, it's a tradeoff. The boolean Add has probably a minor performance advantage, and for classes that are meant to be useful in as many circumstances as possible there is an argument to be made for offering the more performant option. A weak one though. Especially since it's Java.
Java's Add certainly isn't an argument against Command Query Separation.
If you have a good reason to disagree with the above, please tell me. Thank you.
Trasko
Profile Blog Joined July 2010
Sweden983 Posts
June 11 2014 09:13 GMT
#9768
Yeah... It's quite popular to make jabs at Java. Imo Java is a really nice and easy language to learn and it does what you want it to do. The Add boolean return type has it's benefits in certain situations.
The interesting thing about building data structures is that there are so many ways to do so. The people who made Java decided that this was the best way and of course others may disagree.
Jaedong <3
klo8
Profile Joined August 2010
Austria1960 Posts
Last Edited: 2014-06-11 21:17:19
June 11 2014 21:15 GMT
#9769
I've been coding in vanilla Java 6 for the last couple of weeks (an assignment for school requires me to use it) and the thing I've missed most are the Streams library (map, fold, scan etc. operations on Java collections) and immutable collections. I would also really love to see a "pure" keyword (or annotation) that says "this function/method doesn't modify outside state at all" or at least a C++-ish const keyword that says "this method doesn't modify this object". Other than that, with a good IDE (IntelliJ), Java is pretty okay. It gets a lot of hate for being verbose and I can see that, but it's a very easy language to read and you can get familiar with it fairly quickly. That said, I think C# is pretty much a cooler/more fun version of Java.
This post is clearly not a hurr, as you can see from the graph, the durr never intersects with the derp.
Manit0u
Profile Blog Joined August 2004
Poland17843 Posts
June 11 2014 21:51 GMT
#9770
On June 12 2014 06:15 klo8 wrote:
I've been coding in vanilla Java 6 for the last couple of weeks (an assignment for school requires me to use it) and the thing I've missed most are the Streams library (map, fold, scan etc. operations on Java collections) and immutable collections. I would also really love to see a "pure" keyword (or annotation) that says "this function/method doesn't modify outside state at all" or at least a C++-ish const keyword that says "this method doesn't modify this object". Other than that, with a good IDE (IntelliJ), Java is pretty okay. It gets a lot of hate for being verbose and I can see that, but it's a very easy language to read and you can get familiar with it fairly quickly. That said, I think C# is pretty much a cooler/more fun version of Java.


C# might be cooler but Java still beats it when it comes to developing under different platforms. Personally I hate to do any development on Windows because (for me) the system doesn't provide you with enough tools to work efficiently. Also, I hate to work in GUI, the most "graphical" thing I ever use is midnight commander.
Time is precious. Waste it wisely.
nunez
Profile Blog Joined February 2011
Norway4003 Posts
Last Edited: 2014-06-11 22:16:12
June 11 2014 21:54 GMT
#9771
@klo8

#include<cassert>
#include<iostream>
using namespace std;

struct T{
int i{0};
void f1(){ i=1; }
void f0(T& v)const{
assert(&v==this);
v.f1();
}
};

int main(){
T v;
v.f0(v);
cout<<v.i<<endl;
}

output is 1. as you see the const member function might modify this object, but you can't call a non-const memfn on *this. ;>

started summer internship today, gonna have a nice, all-inclusive, camel-cased, auto-completed, object-oriented holiday from the horrors of gcc, gvim on visual studio 2013 island and hopefully get up to speed with spirit x3.

aaah, just let the IDE do all the heavy lifting as i lean back in this nice reclining chairFunctionNoStopUndo(int TheFirstArgumentToHowDoITurnThisOffMyFunctionCall, StopPleaseHeeeelpHelperClass TheSecondArgAaaughAaauughument);
conspired against by a confederacy of dunces.
mcc
Profile Joined October 2010
Czech Republic4646 Posts
June 11 2014 23:11 GMT
#9772
On June 12 2014 06:15 klo8 wrote:
I've been coding in vanilla Java 6 for the last couple of weeks (an assignment for school requires me to use it) and the thing I've missed most are the Streams library (map, fold, scan etc. operations on Java collections) and immutable collections. I would also really love to see a "pure" keyword (or annotation) that says "this function/method doesn't modify outside state at all" or at least a C++-ish const keyword that says "this method doesn't modify this object". Other than that, with a good IDE (IntelliJ), Java is pretty okay. It gets a lot of hate for being verbose and I can see that, but it's a very easy language to read and you can get familiar with it fairly quickly. That said, I think C# is pretty much a cooler/more fun version of Java.

With new Java it is getting close to C# as far as useful features go, so the difference is extremely minimal. Mostly comes down to personal aesthetic preference and possibly need for "multiplatformness". C# I think is slightly better designed language and has few features that Java could use.

As for your list , try D, cooler than both
mcc
Profile Joined October 2010
Czech Republic4646 Posts
Last Edited: 2014-06-11 23:15:46
June 11 2014 23:15 GMT
#9773
On June 12 2014 06:54 nunez wrote:
@klo8

#include<cassert>
#include<iostream>
using namespace std;

struct T{
int i{0};
void f1(){ i=1; }
void f0(T& v)const{
assert(&v==this);
v.f1();
}
};

int main(){
T v;
v.f0(v);
cout<<v.i<<endl;
}

output is 1. as you see the const member function might modify this object, but you can't call a non-const memfn on *this. ;>

started summer internship today, gonna have a nice, all-inclusive, camel-cased, auto-completed, object-oriented holiday from the horrors of gcc, gvim on visual studio 2013 island and hopefully get up to speed with spirit x3.

aaah, just let the IDE do all the heavy lifting as i lean back in this nice reclining chairFunctionNoStopUndo(int TheFirstArgumentToHowDoITurnThisOffMyFunctionCall, StopPleaseHeeeelpHelperClass TheSecondArgAaaughAaauughument);

The guarantee is of course not there, it is more like : If you do not do some things that are bad(tm) const will guarantee you what it says. And it is still useful I would argue.
nunez
Profile Blog Joined February 2011
Norway4003 Posts
Last Edited: 2014-06-12 05:03:33
June 12 2014 05:03 GMT
#9774
the guarantee is there (as far as i know), but it's a bit weaker than wat klo8 seems to think.
it applies only to the impllied *this in the memfn and not this object.

i think it's very useful!
conspired against by a confederacy of dunces.
Blisse
Profile Blog Joined July 2010
Canada3710 Posts
Last Edited: 2014-06-12 09:19:49
June 12 2014 09:09 GMT
#9775
about the boolean thing, i like C#'s try syntax for fallible or timeout-able actions. but i think those are actions rather than simple method get/sets. i think if the get/set is fallible (and thus requires the bool return) then the concept of using get/set there would be wrong, but that could be the c# talking.

in other news, i wrote a generic jsonrpcstreamclient. it's a bit strange that the BlockingCollection.Take isn't an TakeAsync because it says it blocks if the collection is empty.. is that just a while loop?

edit: well, used ilspy and went through BlockingCollection > Take > TryTake > TryTakeWithNoValidation > Wait > WaitAsync, yup, it seems like it's just a Monitor implementation on top of a SemaphoreSlim, there's a


SpinWait spinWait = default(SpinWait);
while (this.m_currentCount == 0)
{
if (spinWait.NextSpinWillYield)
{
break;
}
spinWait.SpinOnce();
}


which is "spin-based" waiting... no clue what that means XD
There is no one like you in the universe.
mcc
Profile Joined October 2010
Czech Republic4646 Posts
June 12 2014 11:15 GMT
#9776
On June 12 2014 14:03 nunez wrote:
the guarantee is there (as far as i know), but it's a bit weaker than wat klo8 seems to think.
it applies only to the impllied *this in the memfn and not this object.

i think it's very useful!

As long as const does not prevent you from getting address of this in the body of the function I think the guarantee is not complete. But I think we actually agree
nunez
Profile Blog Joined February 2011
Norway4003 Posts
Last Edited: 2014-06-12 16:05:02
June 12 2014 14:58 GMT
#9777
aha, i'm sure there are tricks i am not aware of. and yes ofc we do.

btw, i'm saying the guarantee applies to, and is a property of *this and not this or the member function for that matter, a weaker guarantee than the other poster was saying.
conspired against by a confederacy of dunces.
Shield
Profile Blog Joined August 2009
Bulgaria4824 Posts
June 13 2014 22:45 GMT
#9778
What do you guys think of hybserv's (IRC service) code? I've noticed functions are extremely large, and that there is code duplication. Link: https://github.com/dkorunic/hybserv2/tree/master/src
clickrush
Profile Blog Joined May 2010
Switzerland3257 Posts
Last Edited: 2014-06-14 00:42:57
June 14 2014 00:42 GMT
#9779
the three best books about programming i've ever read are:

debugging
http://www.amazon.com/exec/obidos/ASIN/0814474578/debuggingrule-20

coders at work
http://www.amazon.com/Coders-Work-Reflections-Craft-Programming/dp/1430219483/ref=sr_1_1?s=books&ie=UTF8&qid=1402705983&sr=1-1&keywords=coders at work

and the mit licenced structure and interpretation of computer programs
http://mitpress.mit.edu/sicp/full-text/book/book.html

there are recordings of the original SCIP lecture on youtube.

SCIP is especially great because it teaches programming on a high level without being too language specific or religious. the book is full of great examples that make you think hard and it teaches generally applicable ways of thinking instead of "you have to do it this way". it was very eye opening and liberating for me to look at tools/languages and look at them in a general way of "what are the means of abstractions in this language" instead of "where are my classes/closures/interfaces/loops/patterns/put-in-your-fav-lang-feature-here".
oGsMC: Zealot defense, Stalker attack, Sentry forcefieldu forcefieldu, Marauder die die
mcc
Profile Joined October 2010
Czech Republic4646 Posts
June 14 2014 01:30 GMT
#9780
On June 14 2014 07:45 darkness wrote:
What do you guys think of hybserv's (IRC service) code? I've noticed functions are extremely large, and that there is code duplication. Link: https://github.com/dkorunic/hybserv2/tree/master/src

As far as function size goes, some can be refactored, but in general sometimes large body just makes most sense, because there is no logical grouping of statements that could make a meaningful method.

Did not look enough to notice if there is code duplication, but I was just thinking today when code duplication is correct and when it is evil(tm). Basically if the code in two places looks similar by accident, meaning that whatever those two pieces of code represent is in no way linked by specification and necessity, code duplication might be correct way to go. Because considering that the similarity is just an accident, it means that if you have the code only in one place and later there is a change request, it is nearly sure that the change request will be just for one of the scenarios and best case you will have to split the code again, but more likely someone will just change the whole merged function and thus break the second scenario without even noticing.

In short, in some (pretty rare) scenarios code duplication can be a correct way to go.
Prev 1 487 488 489 490 491 1032 Next
Please log in or register to reply.
Live Events Refresh
Shopify Rebellion Sundays
15:00
#13
Spirit vs Mixu
Clem vs TBD
Liquipedia
[ Submit Event ]
Live Streams
Refresh
StarCraft 2
Rex 107
mouzHeroMarine 54
StarCraft: Brood War
Britney 55152
Calm 5598
Jaedong 1182
PianO 1028
firebathero 397
ggaemo 212
Pusan 105
Mong 92
Hyun 86
910 79
[ Show more ]
Last 77
Sea.KH 69
sSak 45
Trap 25
Sharp 23
HiyA 21
Rock 18
Shine 15
Hm[arnc] 14
SilentControl 13
Dota 2
qojqva3205
syndereN879
Fuzer 218
LuMiX0
Other Games
Grubby5893
singsing1236
Liquid`RaSZi928
Hui .199
QueenE104
Organizations
Other Games
EGCTV1189
StarCraft: Brood War
Kim Chul Min (afreeca) 12
[ Show 15 non-featured ]
StarCraft 2
• StrangeGG 68
• Adnapsc2 36
• mYiSmile128
• AfreecaTV YouTube
• intothetv
• Kozan
• IndyKCrew
• Migwel
StarCraft: Brood War
• FirePhoenix12
• Michael_bg 9
• BSLYoutube
• STPLYoutube
• ZZZeroYoutube
Dota 2
• WagamamaTV600
League of Legends
• Nemesis3691
Upcoming Events
RSL Revival
1h
Serral vs Rogue
BlizzCon
3h 30m
IdrA vs MC
Afreeca Starleague
19h
Light vs JyJ
Soulkey vs hero
WardiTV Weekly
20h
Monday Night Weeklies
1d 1h
Afreeca Starleague
1d 19h
Snow vs Shinee
Shine vs EffOrt
GSL
1d 20h
PiGosaur Cup
2 days
The PondCast
2 days
Kung Fu Cup
2 days
[ Show More ]
Replay Cast
3 days
KCM Race Survival
3 days
IntoTheTV X SOOP
3 days
Replay Cast
4 days
IntoTheTV X SOOP
4 days
Replay Cast
5 days
GSL
5 days
Replay Cast
6 days
GSL
6 days
Liquipedia Results

Completed

Acropolis #5 - TRS
PiG Sty Festival 8.0
Big Dog Cup 2026 Div 1

Ongoing

KCM Race Survival 2026 Season 3
K-JUNGMAN
ASL Season 22
Super Anchor Qualifying S3
CSL 2026 AUTUMN (S22)
Acropolis #5
Blizzard Classic Cup 2026
Blizzard Classic Cup 2026
RSL Revival: Season 6
Calamity Invitational
FISSURE Playground #3
BLAST Open Fall 2026
Esports World Cup 2026
BLAST Bounty Summer 2026
BLAST Bounty Summer Qual
Stake Ranked Episode 3
XSE Pro League 2026

Upcoming

Acropolis #5 - GSA
Acropolis #5 - GSB
Acropolis #5 - GSC
SC4ALL II: Brood War
HSC XXX
Stellar Fest 2: Lunar Cup
SC4ALL II: StarCraft II
Kung Fu Cup 2026 Grand Finals
RSL Offline Finals
PGL Major Singapore 2026
Stake Ranked Episode 6
BLAST Rivals Fall 2026
IEM Beijing 2026
Stake Ranked Episode 5
PGL Masters Bucharest 2026
1win Private Club #2
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
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...

Disclosure: This page contains affiliate marketing links that support TLnet.

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.