• Log InLog In
  • Register
Liquid`
Team Liquid Liquipedia
EDT 05:31
CEST 11:31
KST 18:31
  • 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
ByuL, and the Limitations of Standard Play1Team Liquid Map Contest #22: Results and Winners7Code S Season 2 (2026): RO4 and Finals Preview12TL.net Map Contest #22 - Voting & Ladder Map Selection7Code S Season 2 (2026) - RO8 Preview8
Community News
[TLMC] Summer 2026 Ladder Map Rotation05.0.16 patch for SC2 goes live (8 worker start)65ZeroSpace at Steam NextFest - Last free demo31Weekly Cups (June 8-14): Clem and Solar double, PTR tested0RSL: S6 Finals played at BlizzCon 202611
StarCraft 2
General
Mizenhauer's Douyu Cup Preview Is the larve respawn broken? 5.0.16 patch for SC2 goes live (8 worker start) ByuL, and the Limitations of Standard Play Possible bug in the new patch?
Tourneys
RSL Revival: Season 6 - Qualifiers and Main Event Douyu Cup 2026: $20,000 Legends Event (June 26-28) INu's Battles#17 <BO.9> Sparkling Tuna Cup - Weekly Open Tournament GSL CK #4 20-21th June
Strategy
[G] Having the right mentality to improve
Custom Maps
New Map Maker - Looking for Advice - Love or Hate Work In Progress Melee Maps [D]RTS in all its shapes and glory <3
External Content
The PondCast: SC2 News & Results Mutation # 531 Experimental Artillery Mutation # 530 One For All Mutation # 529 Opportunities Unleashed
Brood War
General
vespene.gg — BW replays in browser Quality of life changes in BW that you will like ? ASL 22 Proposed Map Pool BW General Discussion [BSL22] Non-Korean Championship from 13 to 28 June
Tourneys
[ASL21] Grand Finals [Megathread] Daily Proleagues The Casual Games of the Week Thread [BSL22] GosuLeague Casts - Tue & Thu 22:00 CEST
Strategy
Creating a full chart of Zerg builds Relatively freeroll strategies Why doesn't anyone use restoration? Simple Questions, Simple Answers
Other Games
General Games
Stormgate/Frost Giant Megathread Path of Exile Beyond All Reason Nintendo Switch Thread ZeroSpace at Steam NextFest - Last free demo
Dota 2
Looking for a Dota Mentor 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
TL Mafia
TL Mafia Community Thread Vanilla Mini Mafia
Community
General
US Politics Mega-thread Canadian Politics Mega-thread Things Aren’t Peaceful in Palestine Russo-Ukrainian War Thread [H]Internet/Gaming Cafe Tips and Tricks
Fan Clubs
The HerO Fan Club! The herO Fan Club!
Media & Entertainment
Movie Discussion! Series you have seen recently... [Req][Books] Good Fantasy/SciFi books [TV/BOOK] *SPOILERS* Game of Thrones Discussion
Sports
2024 - 2026 Football Thread TeamLiquid Health and Fitness Initiative For 2023 McBoner: A hockey love story Formula 1 Discussion Cricket [SPORT]
World Cup 2022
Tech Support
Computer Build, Upgrade & Buying Resource Thread Facing Challenges in Mobile App Development
TL Community
The Automated Ban List
Blogs
Listen To The Coaches!
TrAiDoS
An Exploration of th…
waywardstrategy
I'm an arrogant trash talke…
FlaShFTW
Gauntlet SC2: A Retrospectiv…
Ctone23
Customize Sidebar...

Website Feedback

Closed Threads



Active: 6962 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
Poland4767 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
Poland17774 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
Poland17774 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
Norway8263 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
Germany1962 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
Hyrule19224 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
Germany1962 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
Hyrule19224 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
Poland17774 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
Germany1962 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
Canada6223 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
Poland17774 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
Poland4767 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
Poland17774 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
Canada6223 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
Douyu Cup 2020
05:00
2026 - Day 2
Neeb vs Impact
MacSed vs Cyan
Scarlett vs Kelazhur
INnoVation vs Dear
WardiTV776
CranKy Ducklings140
LiquipediaDiscussion
[ Submit Event ]
Live Streams
Refresh
StarCraft 2
Ryung 737
StateSC2 85
StarCraft: Brood War
Sharp 156
Soma 143
PianO 136
Dewaltoss 84
Killer 82
ggaemo 70
ToSsGirL 60
Mind 40
Hyuk 38
ZergMaN 35
[ Show more ]
hero 34
Aegong 30
Hm[arnc] 22
NotJumperer 18
Rush 15
yabsab 14
zelot 10
Liquid`Ret 5
Dota 2
BananaSlamJamma321
League of Legends
JimRising 550
Other Games
ceh9579
Mew2King112
Organizations
Dota 2
PGL Dota 2 - Main Stream5263
Other Games
gamesdonequick765
StarCraft: Brood War
UltimateBattle 54
StarCraft 2
Blizzard YouTube
StarCraft: Brood War
BSLTrovo
[ Show 15 non-featured ]
StarCraft 2
• 3DClanTV 108
• CranKy Ducklings SOOP20
• LUISG 9
• AfreecaTV YouTube
• intothetv
• Kozan
• IndyKCrew
• LaughNgamezSOOP
• Migwel
• sooper7s
StarCraft: Brood War
• iopq 3
• BSLYoutube
• STPLYoutube
• ZZZeroYoutube
League of Legends
• Rush1225
Upcoming Events
Big Brain Bouts
6h 29m
Jumy vs eGGz
Harstem vs sebesdes
TriGGeR vs HeRoMaRinE
Douyu Cup 2020
19h 29m
Maestros of the Game
1d 2h
herO vs Classic
Maru vs Serral
BSL22 NKC (BSL vs China)
1d 4h
Douyu Cup 2020
1d 19h
BSL22 NKC (BSL vs China)
2 days
Online Event
2 days
RSL Revival
2 days
WardiTV Weekly
3 days
RSL Revival
4 days
[ Show More ]
RSL Revival
4 days
Bombastic Starleague
4 days
Kung Fu Cup
5 days
OSC
5 days
CrankTV Team League
6 days
Bombastic Starleague
6 days
Replay Cast
6 days
Liquipedia Results

Completed

CSCL: Masked Kings S4
WardiTV Spring 2026
Heroes Pulsing #2

Ongoing

IPSL Spring 2026
Acropolis #4
YSL S3
BSL 22 Non-Korean Championship
CSL Season 21: Qualifier 1
CSL Season 21: Qualifier 2
SCTL 2026 Spring
Douyu Cup 2026
Maestros of the Game 2
Murky Cup 2026
IEM Cologne Major 2026
Stake Ranked Episode 2
CS Asia Championships 2026
Asian Champions League 2026
IEM Atlanta 2026
PGL Astana 2026
BLAST Rivals Spring 2026
IEM Rio 2026

Upcoming

CSL 2026 Summer (S21)
CSLAN 4
Blizzard Classic Cup 2026
Kung Fu Cup 2026 Grand Finals
RSL Revival: Season 6
CranK Gathers Season 4: BW vs SC2 Team League
HSC XXIX
BCC 2026
Light Tournament 2026
Eternal Conflict S2 Finale
Eternal Conflict S2 E1
Heroes Pulsing #3
FISSURE Playground #5
BLAST Open Fall 2026
Esports World Cup 2026
BLAST Bounty Summer 2026
BLAST Bounty Summer Qual
Stake Ranked Episode 3
XSE Pro League 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.