• Log InLog In
  • Register
Liquid`
Team Liquid Liquipedia
EST 08:42
CET 14:42
KST 22:42
  • 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
Behind the Blue - Team Liquid History Book15Clem wins HomeStory Cup 289HomeStory Cup 28 - Info & Preview13Rongyi Cup S3 - Preview & Info8herO wins SC2 All-Star Invitational14
Community News
ACS replaced by "ASL Season Open" - Starts 21/0222LiuLi Cup: 2025 Grand Finals (Feb 10-16)26Weekly Cups (Feb 2-8): Classic, Solar, MaxPax win2Nexon's StarCraft game could be FPS, led by UMS maker10PIG STY FESTIVAL 7.0! (19 Feb - 1 Mar)14
StarCraft 2
General
How do you think the 5.0.15 balance patch (Oct 2025) for StarCraft II has affected the game? Nexon's StarCraft game could be FPS, led by UMS maker Terran Scanner Sweep Behind the Blue - Team Liquid History Book Weekly Cups (Jan 12-18): herO, MaxPax, Solar win
Tourneys
Sparkling Tuna Cup - Weekly Open Tournament RSL Season 4 announced for March-April PIG STY FESTIVAL 7.0! (19 Feb - 1 Mar) LiuLi Cup: 2025 Grand Finals (Feb 10-16) RSL Revival: Season 4 Korea Qualifier (Feb 14)
Strategy
Custom Maps
Map Editor closed ? [A] Starcraft Sound Mod
External Content
The PondCast: SC2 News & Results Mutation # 512 Overclocked Mutation # 511 Temple of Rebirth Mutation # 510 Safety Violation
Brood War
General
ACS replaced by "ASL Season Open" - Starts 21/02 Which units you wish saw more use in the game? StarCraft player reflex TE scores [ASL21] Potential Map Candidates Gypsy to Korea
Tourneys
Escore Tournament StarCraft Season 1 [Megathread] Daily Proleagues Small VOD Thread 2.0 KCM Race Survival 2026 Season 1
Strategy
Fighting Spirit mining rates Zealot bombing is no longer popular? Simple Questions, Simple Answers Current Meta
Other Games
General Games
Path of Exile Nintendo Switch Thread Diablo 2 thread Battle Aces/David Kim RTS Megathread ZeroSpace Megathread
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
TL Mafia Community Thread Mafia Game Mode Feedback/Ideas Vanilla Mini Mafia
Community
General
US Politics Mega-thread Ask and answer stupid questions here! Things Aren’t Peaceful in Palestine European Politico-economics QA Mega-thread The Games Industry And ATVI
Fan Clubs
The IdrA Fan Club The herO Fan Club!
Media & Entertainment
[Req][Books] Good Fantasy/SciFi books [Manga] One Piece Anime Discussion Thread
Sports
2024 - 2026 Football Thread
World Cup 2022
Tech Support
TL Community
The Automated Ban List
Blogs
The Search For Meaning in Vi…
TrAiDoS
My 2025 Magic: The Gathering…
DARKING
Life Update and thoughts.
FuDDx
How do archons sleep?
8882
StarCraft improvement
iopq
Customize Sidebar...

Website Feedback

Closed Threads



Active: 2106 users

The Big Programming Thread - Page 854

Forum Index > General Forum
Post a Reply
Prev 1 852 853 854 855 856 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.
Neshapotamus
Profile Blog Joined May 2006
United States163 Posts
February 28 2017 03:31 GMT
#17061
On February 28 2017 10:02 Blisse wrote:
Show nested quote +
On February 28 2017 08:59 Hanh wrote:

I forgot where but I remember reading or watching something where someone got mad at how so many programmers seem to have random coding preferences, like putting the comma in front. I get why, but I still find it hilarious to look at.


What is funny? The people who get mad or the comma in front?


The thing I referenced was a funny rant.

I personally think commas in front look hilarious.


I take it that you never had to write SQL
tofucake
Profile Blog Joined October 2009
Hyrule19192 Posts
February 28 2017 04:29 GMT
#17062
My queries don't have front commas...
Liquipediaasante sana squash banana
Aerisky
Profile Blog Joined May 2012
United States12129 Posts
Last Edited: 2017-02-28 05:11:25
February 28 2017 05:09 GMT
#17063
On February 28 2017 05:32 travis wrote:
I am pretty frustrated
For my interview with amazon, I was sent an email and had to RSVP to a 2.5 hour coding assessment. I assume they invite however many students through it, and it's a series of challenges.

I followed the link to the RSVP and filled stuff out, and then when it was time to click if I could make the time or not, I somehow clicked "I can't make this time". I really don't know how... I really feel like I clicked the right thing but whatever.

So anyways it takes me to the next page, and i want to go back, and there was literally no way to go back in the form. The only option I had was to fill out as my reason for not making it "I do want to RSVP, I misclicked and can't go back in the form."

I emailed the recruiter about it but I just have this bad feeling he's never gonna check the email and I am going to miss the event.

You're supposed to have RSVP'd by the end of the day today, too..

Damn, that sucks. Yeah, I made a post sometime last year complaining about their horseshit recruiting process. Completely fucked system, and it wasted probably upwards of 3-4 hours of my time by breaking in the middle of a followup assessment, not to mention having some of the worst fucking conditions ever (they contract out to some terrible online proctor service) and use some of the most useless testing metrics I've ever seen. Sorry to hear about it, but yeah, as Blisse said, congrats on getting interest from them in the first place at least. >.<
Jim while Johnny had had had had had had had; had had had had the better effect on the teacher.
Manit0u
Profile Blog Joined August 2004
Poland17661 Posts
February 28 2017 10:39 GMT
#17064
This will cheer you up:

[image loading]
Time is precious. Waste it wisely.
Acrofales
Profile Joined August 2010
Spain18215 Posts
February 28 2017 11:59 GMT
#17065
Can do the same with quotation marks for strings. UTF-8 gave us a whole world of new characters to fuck up our code with.
http://unicode.org/cldr/utility/confusables.jsp?a="&r=None

Have fun!
Manit0u
Profile Blog Joined August 2004
Poland17661 Posts
February 28 2017 16:28 GMT
#17066
On February 28 2017 20:59 Acrofales wrote:
Can do the same with quotation marks for strings. UTF-8 gave us a whole world of new characters to fuck up our code with.
http://unicode.org/cldr/utility/confusables.jsp?a="&r=None

Have fun!


Python went further with that by allowing unicode in function and variable names.

https://liftoff.github.io/pyminifier/#special-sauce
Time is precious. Waste it wisely.
Khalum
Profile Joined September 2010
Austria831 Posts
February 28 2017 16:49 GMT
#17067
Yeah, about that... how can I get the termcolor module to work in cmd.exe (win10)?
Acrofales
Profile Joined August 2010
Spain18215 Posts
February 28 2017 16:51 GMT
#17068
On March 01 2017 01:49 Khalum wrote:
Yeah, about that... how can I get the termcolor module to work in cmd.exe (win10)?

http://stackoverflow.com/questions/21858567/why-does-termcolor-output-control-characters-instead-of-colored-text-in-the-wind

Like that?
Khalum
Profile Joined September 2010
Austria831 Posts
Last Edited: 2017-02-28 17:08:41
February 28 2017 16:54 GMT
#17069
Interesting! I actually posted the question before going for a smoke because I just tried termcolor and it didn't work right away.

I shall try this, thanks!

[edit] Amazing, works, thanks again.
sabas123
Profile Blog Joined December 2010
Netherlands3122 Posts
February 28 2017 20:45 GMT
#17070
Anyone here tried ubuntu on windows? It seems nice to have a unix shell however the terminal they provide just sucks...
The harder it becomes, the more you should focus on the basics.
shz
Profile Blog Joined October 2010
Germany2687 Posts
February 28 2017 20:53 GMT
#17071
You should be able to use any terminal you want, just use
bash
Liquipedia
tofucake
Profile Blog Joined October 2009
Hyrule19192 Posts
March 01 2017 00:37 GMT
#17072
On March 01 2017 05:45 sabas123 wrote:
Anyone here tried ubuntu on windows? It seems nice to have a unix shell however the terminal they provide just sucks...

it has issues with docker and vagrant which make it not really useful to me
Liquipediaasante sana squash banana
Blisse
Profile Blog Joined July 2010
Canada3710 Posts
Last Edited: 2017-03-01 02:01:34
March 01 2017 01:44 GMT
#17073
On March 01 2017 05:45 sabas123 wrote:
Anyone here tried ubuntu on windows? It seems nice to have a unix shell however the terminal they provide just sucks...


I use WSL (windows subsystem for linux) just for the nicer zsh shell versus janky solutions like git bash. Too much isn't supported, for example that mkfifo stuff a couple pages back compiles in WSL gcc but doesn't run since the Windows bindings don't exist. So anything that accesses network interfaces essentially will not work, so it has limited real world usage, and it's technically still in beta so big projects haven't moved on to adapt them. They're soon adding the ability to actually launch Windows programs from WSL, which will be great for pushing things forward. Currently you have to run a background daemon to do it.

However if you don't need any of that, such as writing simple programs like interview practice or some school work, it's great as-is.

I run ConEmu which launches a zsh shell, changed some settings, and it's basically similar to other Linux-based terminals I've used - I live do without the fancy windowing features and the better copy&paste. This is what mine looks like. I'm a huge fan. (blanked out my name)

[image loading]

edit: Also want to mention I used cmder for a while before switching back to ConEmu. It looks and works great out of the box - worked for a long while, until it didn't... and I couldn't fix it with a re-install so I switched back.
There is no one like you in the universe.
Deleted User 3420
Profile Blog Joined May 2003
24492 Posts
March 01 2017 02:40 GMT
#17074
Would it be possible for anyone to explain what is going on in this practice question for me?

Question:
The prototype of a function is

int *select(void *data);


Define a function pointer variable named fptr that can be assigned the function fptr = select

Answer:

+ Show Spoiler +

int *(*fptr)(void *);


So I have no idea wtf is going on here. Like, absolutely no idea. I also didn't even understand the question.

so our function pointer is int because the function type was in?
And the (void *) in the function pointer means what exactly? Does it have to do with the void pointer parameter in the function?
Blisse
Profile Blog Joined July 2010
Canada3710 Posts
Last Edited: 2017-03-01 02:53:40
March 01 2017 02:50 GMT
#17075
int *(*fptr)(void *);

is read: fptr is a pointer to a function returning int* that takes in a single parameter of type void*.

int (*foo)(float)

is read: foo is a pointer to a function returning int that takes in a single parameter of type float.


also another thing I grumble about, putting a space between the type and the pointer asterisk. Keep them together! It's type information >_>

int* (*fptr)(void*);
There is no one like you in the universe.
Deleted User 3420
Profile Blog Joined May 2003
24492 Posts
March 01 2017 03:14 GMT
#17076
perfectly clear, thank you
tofucake
Profile Blog Joined October 2009
Hyrule19192 Posts
Last Edited: 2017-03-01 04:02:14
March 01 2017 04:01 GMT
#17077
On March 01 2017 11:50 Blisse wrote:
also another thing I grumble about, putting a space between the type and the pointer asterisk. Keep them together! It's type information >_>

int* (*fptr)(void*);


I disagree. The asterisk goes with the specific variable because it only applies to one, e.g.:
int *a, b;

int* a, b;


both are the same semantically

the first line makes it clear that only a is a pointer, whereas the second line implies that both a and b are pointers while only a is
Liquipediaasante sana squash banana
Manit0u
Profile Blog Joined August 2004
Poland17661 Posts
March 01 2017 08:41 GMT
#17078
Man, the new JetBrains stuff is quite astounding. I really like the function parameter name hinting and thanks to the editor backgrounds I now have my neighbor Totoro watching over my code at all times

[image loading]
Time is precious. Waste it wisely.
Blisse
Profile Blog Joined July 2010
Canada3710 Posts
March 01 2017 08:46 GMT
#17079
On March 01 2017 13:01 tofucake wrote:
Show nested quote +
On March 01 2017 11:50 Blisse wrote:
also another thing I grumble about, putting a space between the type and the pointer asterisk. Keep them together! It's type information >_>

int* (*fptr)(void*);


I disagree. The asterisk goes with the specific variable because it only applies to one, e.g.:
int *a, b;

int* a, b;


both are the same semantically

the first line makes it clear that only a is a pointer, whereas the second line implies that both a and b are pointers while only a is


I have "no multi-variable declaration on the same line" and "no uninitialized variables" rules that makes it so I have never encountered that situation :d
There is no one like you in the universe.
Nesserev
Profile Blog Joined January 2011
Belgium2760 Posts
March 01 2017 08:58 GMT
#17080
--- Nuked ---
Prev 1 852 853 854 855 856 1032 Next
Please log in or register to reply.
Live Events Refresh
LiuLi Cup
11:00
2025 Grand Finals Playoffs
Serral vs RogueLIVE!
Reynor vs TBD
Maru vs TBD
RotterdaM2043
ComeBackTV 1224
PiGStarcraft691
IndyStarCraft 402
Rex289
BRAT_OK 242
3DClanTV 83
IntoTheiNu 30
Liquipedia
Sparkling Tuna Cup
10:00
Weekly #119
ByuN vs KrystianerLIVE!
CranKy Ducklings133
LiquipediaDiscussion
[ Submit Event ]
Live Streams
Refresh
StarCraft 2
RotterdaM 2043
PiGStarcraft691
IndyStarCraft 402
Rex 289
BRAT_OK 242
EmSc Tv 40
StarCraft: Brood War
Britney 33561
Rain 3719
Sea 2378
Flash 2060
firebathero 1497
actioN 975
Stork 757
EffOrt 559
Soma 446
Mini 438
[ Show more ]
Rush 282
Shuttle 274
ggaemo 154
Hyun 133
Sharp 123
Last 119
JYJ 79
Sea.KH 48
Backho 47
Movie 46
ToSsGirL 38
sorry 28
sSak 25
IntoTheRainbow 19
JulyZerg 18
soO 18
yabsab 14
GoRush 13
Yoon 12
NotJumperer 11
Shine 11
HiyA 10
Icarus 8
zelot 8
Terrorterran 8
Sacsri 7
SilentControl 7
Noble 6
Bonyth 0
Dota 2
Dendi2412
XcaliburYe680
XaKoH 661
febbydoto21
Counter-Strike
fl0m2803
x6flipin613
Super Smash Bros
Mew2King95
Heroes of the Storm
Khaldor245
Other Games
singsing3289
B2W.Neo1145
Liquid`RaSZi994
Happy224
crisheroes220
KnowMe37
MindelVK9
Organizations
Counter-Strike
PGL31669
StarCraft 2
EmSc Tv 40
EmSc2Tv 40
Blizzard YouTube
StarCraft: Brood War
BSLTrovo
sctven
[ Show 18 non-featured ]
StarCraft 2
• Berry_CruncH167
• Adnapsc2 5
• IndyKCrew
• sooper7s
• Migwel
• AfreecaTV YouTube
• LaughNgamezSOOP
• intothetv
• Kozan
StarCraft: Brood War
• FirePhoenix7
• ZZZeroYoutube
• STPLYoutube
• BSLYoutube
Dota 2
• WagamamaTV191
• lizZardDota2161
League of Legends
• Nemesis4501
• Jankos2866
• Stunt573
Upcoming Events
Ladder Legends
4h 18m
Replay Cast
10h 18m
Replay Cast
19h 18m
Wardi Open
22h 18m
Monday Night Weeklies
1d 3h
OSC
1d 10h
WardiTV Winter Champion…
1d 22h
PiGosaur Cup
2 days
Replay Cast
2 days
WardiTV Winter Champion…
2 days
[ Show More ]
Replay Cast
3 days
PiG Sty Festival
3 days
The PondCast
3 days
KCM Race Survival
3 days
WardiTV Winter Champion…
3 days
Replay Cast
4 days
PiG Sty Festival
4 days
Epic.LAN
4 days
Replay Cast
5 days
PiG Sty Festival
5 days
CranKy Ducklings
5 days
Epic.LAN
5 days
Replay Cast
6 days
PiG Sty Festival
6 days
Sparkling Tuna Cup
6 days
Liquipedia Results

Completed

Proleague 2026-02-14
Rongyi Cup S3
Underdog Cup #3

Ongoing

KCM Race Survival 2026 Season 1
LiuLi Cup: 2025 Grand Finals
Nations Cup 2026
PGL Cluj-Napoca 2026
IEM Kraków 2026
BLAST Bounty Winter 2026
BLAST Bounty Winter Qual
eXTREMESLAND 2025
SL Budapest Major 2025

Upcoming

Escore Tournament S1: King of Kings
[S:21] ASL SEASON OPEN 1st Round
[S:21] ASL SEASON OPEN 1st Round Qualifier
[S:21] ASL SEASON OPEN 2nd Round
[S:21] ASL SEASON OPEN 2nd Round Qualifier
Acropolis #4
IPSL Spring 2026
HSC XXIX
uThermal 2v2 2026 Main Event
Bellum Gens Elite Stara Zagora 2026
RSL Revival: Season 4
WardiTV Winter 2026
BLAST Rivals Spring 2026
CCT Season 3 Global Finals
FISSURE Playground #3
IEM Rio 2026
PGL Bucharest 2026
Stake Ranked Episode 1
BLAST Open Spring 2026
ESL Pro League Season 23
ESL Pro League Season 23
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.