• Log InLog In
  • Register
Liquid`
Team Liquid Liquipedia
EST 08:38
CET 14:38
KST 22:38
  • 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
Rongyi Cup S3 - RO16 Preview3herO wins SC2 All-Star Invitational12SC2 All-Star Invitational: Tournament Preview5RSL Revival - 2025 Season Finals Preview8RSL Season 3 - Playoffs 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)23Weekly Cups (Dec 29-Jan 4): Protoss rolls, 2v2 returns7
StarCraft 2
General
PhD study /w SC2 - help with a survey! herO wins SC2 All-Star Invitational Oliveira Would Have Returned If EWC Continued StarCraft 2 not at the Esports World Cup 2026 [Short Story] The Last GSL
Tourneys
$21,000 Rongyi Cup Season 3 announced (Jan 22-Feb 7) OSC Season 13 World Championship $70 Prize Pool Ladder Legends Academy Weekly Open! SC2 All-Star Invitational: Jan 17-18 Sparkling Tuna Cup - Weekly Open Tournament
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 Gypsy to Korea BGH Auto Balance -> http://bghmmr.eu/ Fantasy's Q&A video BW General Discussion
Tourneys
[Megathread] Daily Proleagues Azhi's Colosseum - Season 2 Small VOD Thread 2.0 [BSL21] Non-Korean Championship - Starts Jan 10
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 Russo-Ukrainian War Thread European Politico-economics QA Mega-thread Canadian Politics Mega-thread NASA and the Private Sector
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
How Esports Advertising Shap…
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: 1754 users

The Big Programming Thread - Page 992

Forum Index > General Forum
Post a Reply
Prev 1 990 991 992 993 994 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.
enigmaticcam
Profile Blog Joined October 2010
United States280 Posts
January 25 2019 16:04 GMT
#19821
Well I did say temp tables with indexes. I didn't say anything about the source tables. I say that speaking from someone who has been in similar situations. If you can narrow down your scope somewhat, you can take a large slice from the source and put it into a temp with proper indexing. Of course, I don't know the type of query he'll be running. I was mostly being facetious.
Silvanel
Profile Blog Joined March 2003
Poland4742 Posts
Last Edited: 2019-01-26 13:46:33
January 26 2019 08:40 GMT
#19822
On January 25 2019 23:31 Acrofales wrote:
Show nested quote +
On January 25 2019 08:20 Manit0u wrote:
On January 25 2019 01:24 enigmaticcam wrote:
On January 24 2019 18:32 Manit0u wrote:
https://www.theregister.co.uk/2019/01/22/google_chrome_browser_ad_content_block_change/

Edit:

Heh, I got myself into a nice mess... Got a task of investigating some users missing rewards for the ads they've watched. We have over 4.5 billion users in our db and there have been 2.7 billion reward attempts this month.

Time to put my SQL goggles on.

Temp tables with indexes!


I work for a company that has the biggest mysql db in europe and due to traffic and response times requirements they got rid of stuff like indices and shit (with large enough tables indices slow you down).

I'm in the 20-30 minute wait to discover this was not the query you were looking for territory...

Why don't you take a slice, figure out the query you want on the slice, and then once you got it mostly debugged, execute it on the full DB? There'll probably still be some bugs due to weird corner cases that weren't in your slice, but at least you won't have to wait 20-30 minutes *every* time you want to test a query.


That is exactly same question i wanted to ask. I dont know anything about databases but this is generally a known problem (not only in computer science). If a data set is too large You slice it down and and analyse smaller chunks. Is there a good reason why You cant do that for databases?
Pathetic Greta hater.
Manit0u
Profile Blog Joined August 2004
Poland17625 Posts
January 26 2019 14:16 GMT
#19823
On January 26 2019 17:40 Silvanel wrote:
Show nested quote +
On January 25 2019 23:31 Acrofales wrote:
On January 25 2019 08:20 Manit0u wrote:
On January 25 2019 01:24 enigmaticcam wrote:
On January 24 2019 18:32 Manit0u wrote:
https://www.theregister.co.uk/2019/01/22/google_chrome_browser_ad_content_block_change/

Edit:

Heh, I got myself into a nice mess... Got a task of investigating some users missing rewards for the ads they've watched. We have over 4.5 billion users in our db and there have been 2.7 billion reward attempts this month.

Time to put my SQL goggles on.

Temp tables with indexes!


I work for a company that has the biggest mysql db in europe and due to traffic and response times requirements they got rid of stuff like indices and shit (with large enough tables indices slow you down).

I'm in the 20-30 minute wait to discover this was not the query you were looking for territory...

Why don't you take a slice, figure out the query you want on the slice, and then once you got it mostly debugged, execute it on the full DB? There'll probably still be some bugs due to weird corner cases that weren't in your slice, but at least you won't have to wait 20-30 minutes *every* time you want to test a query.


That is exactly same question i wanted to ask. I dont know anything about databases but this is generally a known problem (not only in computer science). If a data set is too large You slice it down and and analyse smaller chunks. Is there a good reason why You cant do that for databases?


We did use slices, but even those had billions of records in them since the problem at hand was so vague that we didn't really know what we were looking for and had to gradually narrow it down.
In any case, it turned out that we most likely do not have data in the db that could solve the issue so we went back to the drawing board. This now means more reverse engineering for me since no one at the company really knows how the system is working (they fired all the people who created it 2 years ago) so I have to figure it out for them based on the code alone (stuff I'm dealing with now either has no documentation or docs are so outdated that are essentially worthless).
Time is precious. Waste it wisely.
spinesheath
Profile Blog Joined June 2009
Germany8679 Posts
January 27 2019 08:24 GMT
#19824
Did they also fire the person responsible for firing those devs without ensuring that their knowledge is not lost? Even from a pure business perspective, that sounds like a terrible decision.
If you have a good reason to disagree with the above, please tell me. Thank you.
Manit0u
Profile Blog Joined August 2004
Poland17625 Posts
January 28 2019 09:55 GMT
#19825
On January 27 2019 17:24 spinesheath wrote:
Did they also fire the person responsible for firing those devs without ensuring that their knowledge is not lost? Even from a pure business perspective, that sounds like a terrible decision.


You don't have to tell me. They've fired 35 people, then discovered that they might still need developers so they hired me and one other guy in their place...
Time is precious. Waste it wisely.
Deleted User 3420
Profile Blog Joined May 2003
24492 Posts
January 28 2019 17:23 GMT
#19826
Digging my schedule for this semester. Abstract algebra, elementary theory of computation(studying runtimes), cryptology, intro to deep learning
enigmaticcam
Profile Blog Joined October 2010
United States280 Posts
January 28 2019 19:08 GMT
#19827
On January 29 2019 02:23 travis wrote:
Digging my schedule for this semester. Abstract algebra, elementary theory of computation(studying runtimes), cryptology, intro to deep learning

These are all the classes I would love to take if I actually had time to go back to school.
Deleted User 3420
Profile Blog Joined May 2003
24492 Posts
January 29 2019 16:02 GMT
#19828
Does Go have a promising future? Which looks better on a resume for someone interested in ML, being fluent in python and Go, or being fluent in python and R?

Basically, I have a class where all the assignments are in whatever language I want. So I want to learn something new. R or Go?
Excludos
Profile Blog Joined April 2010
Norway8231 Posts
January 29 2019 16:06 GMT
#19829
On January 30 2019 01:02 travis wrote:
Does Go have a promising future? Which looks better on a resume for someone interested in ML, being fluent in python and Go, or being fluent in python and R?

Basically, I have a class where all the assignments are in whatever language I want. So I want to learn something new. R or Go?


For ML? R for sure. Together with Python those are the two most used languages within the field.
Broetchenholer
Profile Joined March 2011
Germany1950 Posts
January 29 2019 16:24 GMT
#19830
hey guys, quick question concerning JSON objects from SQL. I have a SQL query that does not return a field value, it's an Exists query. Something like this:

"SELECT EXISTS(SELECT * FROM soldstock WHERE gameId = ? AND stockId = ?)"

it returns 0 or 1 depending on the condition and the actual return value is something like

"[RowDataPackage { "SELECT EXISTS(SELECT * FROM soldstock WHERE gameId = ? AND stockId = ?)":0}]

I now convert this to JSON and then i could theoretically access it with result[0]['SELECT EXISTS(SELECT * FROM soldstock WHERE gameId = ? AND stockId = ?)']. Which is ridiculous. Is there an easier way for this? Can i name the result of my query in SQL?
tofucake
Profile Blog Joined October 2009
Hyrule19190 Posts
January 29 2019 16:31 GMT
#19831
use the fetchSingleScalar() method (or equivalent) that your PDO library uses
Liquipediaasante sana squash banana
Broetchenholer
Profile Joined March 2011
Germany1950 Posts
January 29 2019 16:49 GMT
#19832
Hm, i am using node.js and a google search does not give me back anything useful on a method that would do this. Any additional help is greatly appreciated
tofucake
Profile Blog Joined October 2009
Hyrule19190 Posts
January 29 2019 17:49 GMT
#19833
you can try to alias the exists instead, then
Liquipediaasante sana squash banana
Manit0u
Profile Blog Joined August 2004
Poland17625 Posts
Last Edited: 2019-01-29 19:37:08
January 29 2019 19:36 GMT
#19834
Why not just convert the hash into an array of results?


const keys = Object.keys(myHash);

let values = keys.map(function(v) { return myHash[v]; });


Unrelated:



Some good tips in there.
Time is precious. Waste it wisely.
Broetchenholer
Profile Joined March 2011
Germany1950 Posts
January 30 2019 12:57 GMT
#19835
Thanks, i tried those two options and decided to not use any logic on my SQL requests for now, just get every row with matching primary key and then use my existing logic in js to get the information i need. Probably horribly ineffective, but rewriting my whole server logic to use more efficient db requests is postponed for the tidying up phase.
Lmui
Profile Joined November 2010
Canada6221 Posts
January 30 2019 17:52 GMT
#19836
On January 30 2019 01:24 Broetchenholer wrote:
hey guys, quick question concerning JSON objects from SQL. I have a SQL query that does not return a field value, it's an Exists query. Something like this:

"SELECT EXISTS(SELECT * FROM soldstock WHERE gameId = ? AND stockId = ?)"

it returns 0 or 1 depending on the condition and the actual return value is something like

"[RowDataPackage { "SELECT EXISTS(SELECT * FROM soldstock WHERE gameId = ? AND stockId = ?)":0}]

I now convert this to JSON and then i could theoretically access it with result[0]['SELECT EXISTS(SELECT * FROM soldstock WHERE gameId = ? AND stockId = ?)']. Which is ridiculous. Is there an easier way for this? Can i name the result of my query in SQL?


Late to the party but agreed on aliases - https://www.w3schools.com/sql/sql_alias.asp
You could also do SELECT <column> in the subquery instead of select *. The database should optimize it as you don't use the result of * but better to be explicit.

I personally always delegate anything I can to the database. It's far more efficient at crunching data than your JS app since people smarter than you or me have done a lot of research into making it quick at getting data back.
Manit0u
Profile Blog Joined August 2004
Poland17625 Posts
Last Edited: 2019-01-31 14:15:25
January 31 2019 10:43 GMT
#19837
[image loading]

Edit:

In other news, one company posted some ridiculous demands by their programmers. They got the new guy a starter kit:
MacBook Pro, iPhone Xs 256GB, magic mouse and keyboard. He was unhappy because they got it in silver instead of space gray so they had to send it back and order again...

Bonus:

https://vim-adventures.com/
Time is precious. Waste it wisely.
Silvanel
Profile Blog Joined March 2003
Poland4742 Posts
January 31 2019 14:38 GMT
#19838
Since i am now running our teams testlab and one person just left our company i will be participating in a interviews for hiring new people. First time being on that side of interview i am already quite nervous! Tips?
Pathetic Greta hater.
Manit0u
Profile Blog Joined August 2004
Poland17625 Posts
January 31 2019 14:59 GMT
#19839
On January 31 2019 23:38 Silvanel wrote:
Since i am now running our teams testlab and one person just left our company i will be participating in a interviews for hiring new people. First time being on that side of interview i am already quite nervous! Tips?


Just remember people on the other side will be more nervous than you most of the time. Try to ask broad, general questions rather than super specifics (unless required by the position). This should give you a general idea if a person is knowledgeable enough to perhaps find the correct solution on the web if they don't know out of hand.
Time is precious. Waste it wisely.
Lmui
Profile Joined November 2010
Canada6221 Posts
Last Edited: 2019-01-31 17:27:39
January 31 2019 17:26 GMT
#19840
On January 31 2019 23:59 Manit0u wrote:
Show nested quote +
On January 31 2019 23:38 Silvanel wrote:
Since i am now running our teams testlab and one person just left our company i will be participating in a interviews for hiring new people. First time being on that side of interview i am already quite nervous! Tips?


Just remember people on the other side will be more nervous than you most of the time. Try to ask broad, general questions rather than super specifics (unless required by the position). This should give you a general idea if a person is knowledgeable enough to perhaps find the correct solution on the web if they don't know out of hand.


Entry level, I ask questions based on projects and try to assess their ability to learn. Probably 90% of new grads will be comfortable in one language, and have familiarity with one more. This means I just assess their existing technical ability, and then try and judge their ability/willingness to learn.

I'm not senior enough to interview/assess people other than entry level.

Agreed with Manit0u, try to ask questions around how they resolve problems.

ex.
When working on the project X you mentioned in the resume, what were the biggest challenges you came across and how did you resolve them.
Could you tell me about a time where you didn't know how to perform a task, but learned something in order to do it? Describe.

Depending on how they answer, you can dive deeper.

It's always weird being an interviewer when you're new. Where I work, we try to have 3 people in the interview,1 manager, 2 technical interviewers and an optional 4th shadow. Anyone can shadow, whether junior, intern or senior engineer because it's useful to learn different interviewing styles and see what works for you. I shadowed something like 4 different people interviewing before I actually did my first one, and I found that super helpful in getting comfortable with it. Some people like very rigid structured interviews, and others prefer to start from one or two questions and expand out from there ad-hoc.
Prev 1 990 991 992 993 994 1032 Next
Please log in or register to reply.
Live Events Refresh
uThermal 2v2 Circuit
12:00
Bonus Cup #2
IndyStarCraft 416
uThermal407
SteadfastSC118
Liquipedia
RongYI Cup
11:00
Group D
Cyan vs Maru
RotterdaM1332
ComeBackTV 1185
Harstem318
BRAT_OK 181
Rex158
3DClanTV 100
EnkiAlexander 58
Liquipedia
[ Submit Event ]
Live Streams
Refresh
StarCraft 2
RotterdaM 1332
IndyStarCraft 416
uThermal 407
Harstem 318
BRAT_OK 181
Rex 158
SteadfastSC 118
ProTech26
StarCraft: Brood War
Rain 4737
Sea 3135
Jaedong 1493
Shuttle 1276
Larva 777
Mini 700
EffOrt 681
BeSt 552
Hyuk 534
Stork 497
[ Show more ]
GuemChi 425
firebathero 369
actioN 308
Light 304
ZerO 284
hero 240
Killer 186
ggaemo 181
Rush 160
Last 134
Hyun 112
Barracks 111
Mong 103
Soulkey 87
Mind 80
Sharp 77
Pusan 74
Sea.KH 65
Hm[arnc] 47
Yoon 40
yabsab 36
Backho 31
sorry 29
Shinee 29
Shine 26
Free 21
soO 19
GoRush 16
Noble 16
Terrorterran 14
zelot 13
HiyA 12
ajuk12(nOOB) 10
JulyZerg 7
Icarus 7
Dota 2
Gorgc2583
qojqva1981
420jenkins1074
Fuzer 193
Counter-Strike
kennyS1580
zeus1284
edward140
Super Smash Bros
Mew2King81
Heroes of the Storm
Khaldor235
Other Games
singsing2192
Liquid`RaSZi1186
B2W.Neo276
Sick207
ToD159
XaKoH 124
ZerO(Twitch)20
Organizations
StarCraft 2
Blizzard YouTube
StarCraft: Brood War
BSLTrovo
sctven
[ Show 13 non-featured ]
StarCraft 2
• Gemini_19 10
• AfreecaTV YouTube
• intothetv
• Kozan
• IndyKCrew
• LaughNgamezSOOP
• Migwel
• sooper7s
StarCraft: Brood War
• Michael_bg 6
• BSLYoutube
• STPLYoutube
• ZZZeroYoutube
League of Legends
• Jankos2399
Upcoming Events
BSL 21
1h 22m
Replay Cast
10h 22m
Wardi Open
1d
Monday Night Weeklies
1d 3h
OSC
1d 10h
Replay Cast
1d 19h
WardiTV Invitational
2 days
Replay Cast
2 days
WardiTV Invitational
3 days
The PondCast
3 days
[ Show More ]
HomeStory Cup
4 days
Korean StarCraft League
5 days
HomeStory Cup
5 days
Replay Cast
6 days
HomeStory Cup
6 days
Liquipedia Results

Completed

Proleague 2026-01-24
OSC Championship Season 13
Tektek Cup #1

Ongoing

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

Upcoming

Escore Tournament S1: W6
Escore Tournament S1: W7
Acropolis #4
IPSL Spring 2026
uThermal 2v2 2026 Main Event
Bellum Gens Elite Stara Zagora 2026
HSC XXVIII
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
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.