• Log InLog In
  • Register
Liquid`
Team Liquid Liquipedia
EDT 20:29
CEST 02:29
KST 09:29
  • 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
Team Liquid Map Contest #22 - The Finalists14[ASL21] Ro16 Preview Pt1: Fresh Flow9[ASL21] Ro24 Preview Pt2: News Flash10[ASL21] Ro24 Preview Pt1: New Chaos0Team Liquid Map Contest #22 - Presented by Monster Energy21
Community News
2026 GSL Season 1 Qualifiers11Maestros of the Game 2 announced32026 GSL Tour plans announced11Weekly Cups (April 6-12): herO doubles, "Villains" prevail1MaNa leaves Team Liquid21
StarCraft 2
General
MaNa leaves Team Liquid 2026 GSL Tour plans announced Team Liquid Map Contest #22 - The Finalists Weekly Cups (April 6-12): herO doubles, "Villains" prevail Oliveira Would Have Returned If EWC Continued
Tourneys
GSL CK: More events planned pending crowdfunding 2026 GSL Season 1 Qualifiers Sparkling Tuna Cup - Weekly Open Tournament Master Swan Open (Global Bronze-Master 2) SEL Doubles (SC Evo Bimonthly)
Strategy
Custom Maps
[D]RTS in all its shapes and glory <3 [A] Nemrods 1/4 players [M] (2) Frigid Storage
External Content
Mutation # 521 Memorable Boss The PondCast: SC2 News & Results Mutation # 520 Moving Fees Mutation # 519 Inner Power
Brood War
General
BGH Auto Balance -> http://bghmmr.eu/ Gypsy to Korea ASL21 General Discussion Pros React To: Tulbo in Ro.16 Group A Data needed
Tourneys
Escore Tournament StarCraft Season 2 [Megathread] Daily Proleagues [ASL21] Ro16 Group A [ASL21] Ro16 Group B
Strategy
Simple Questions, Simple Answers What's the deal with APM & what's its true value Any training maps people recommend? Fighting Spirit mining rates
Other Games
General Games
Nintendo Switch Thread General RTS Discussion Thread Battle Aces/David Kim RTS Megathread Stormgate/Frost Giant Megathread Starcraft Tabletop Miniature Game
Dota 2
The Story of Wings Gaming
League of Legends
G2 just beat GenG in First stand
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 TL Mafia Community Thread Five o'clock TL Mafia
Community
General
US Politics Mega-thread Things Aren’t Peaceful in Palestine Russo-Ukrainian War Thread YouTube Thread Canadian Politics Mega-thread
Fan Clubs
The IdrA Fan Club
Media & Entertainment
Anime Discussion Thread [Req][Books] Good Fantasy/SciFi books [Manga] One Piece Movie Discussion!
Sports
2024 - 2026 Football Thread McBoner: A hockey love story Formula 1 Discussion Cricket [SPORT]
World Cup 2022
Tech Support
[G] How to Block Livestream Ads
TL Community
The Automated Ban List
Blogs
Reappraising The Situation T…
TrAiDoS
lurker extra damage testi…
StaticNine
Broowar part 2
qwaykee
Funny Nicknames
LUCKY_NOOB
Iranian anarchists: organize…
XenOsky
ASL S21 English Commentary…
namkraft
Customize Sidebar...

Website Feedback

Closed Threads



Active: 2113 users

The Big Programming Thread - Page 707

Forum Index > General Forum
Post a Reply
Prev 1 705 706 707 708 709 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.
Manit0u
Profile Blog Joined August 2004
Poland17727 Posts
March 02 2016 02:15 GMT
#14121
On March 02 2016 10:59 Blisse wrote:
What's the module pattern?


http://www.adequatelygood.com/JavaScript-Module-Pattern-In-Depth.html
Time is precious. Waste it wisely.
killa_robot
Profile Joined May 2010
Canada1884 Posts
Last Edited: 2016-03-02 03:59:41
March 02 2016 03:58 GMT
#14122
On March 01 2016 12:05 tofucake wrote:
I've actually found that there's more jobs than developers...


Based on what? Unless you're talking about a tech hub I find that really hard to believe.
Thaniri
Profile Blog Joined March 2011
1264 Posts
Last Edited: 2016-03-02 06:22:10
March 02 2016 06:19 GMT
#14123
On March 01 2016 11:47 Manit0u wrote:
Task 1:
Create a single HTML page, no JS, no Bootstrap, just pure HTML and CSS (can be LESS or SASS). But, you have to create some specific elements for it:
a) header
b) left section (1/3rd width)
c) right section (2/3rds width)
d) footer

Now, your job is to make sure that the footer is always on the bottom. It can never go above the bottom side of your screen (it can go below). Left and right sections must be of the same height, regardless of the amount of content you put in each of them (tip: give each element a different background color so you can see them better). Layout can't break if you resize your window (it can scale, but elements can't overlap or disappear suddenly).

This is much harder than you think.


Is that really enough for a job? I can do that in minutes.

Based on everything I've ever heard about developer jobs you need to know how to jump through a million hoops just to pass the interview, lots of data structures and algorithm questions. But again, I have no experience so who am I to know personally.

I'm going to be applying to internships in 3-6 months and I didn't think it was worth applying until I did a slightly higher level data structures course.

In any event, I'm wondering what level you'd describe these algorithm challenges to be at: http://www.freecodecamp.com/thaniri Just look at the algorithms section, I'm about halfway through their "intermediate" section.
I know a lot of my solutions are bad but I'm just trying to complete a lot of challenges. Once I'm done with these I think I'll move to project euler.

edit: Additional question. I'll probably need to make a portfolio soon. Is using plain javascript for everything (see weather app) acceptable or should I use jquery/other frameworks. Im assuming I need to start learning SASS. Bootstrap is easy enough.
Ropid
Profile Joined March 2009
Germany3557 Posts
March 02 2016 07:49 GMT
#14124
What's perhaps strange about those interviews is that you actually never do algorithms and data structures yourself when it's for work. You only ever do it if you have a special reason. You want a good reason when you decide to not re-use existing stuff that's proven to be correct because there's a chance to make mistakes doing it yourself.

That's even for the most basic stuff, like, the language might have the C style "for (a;b;c)" loops, and it might have something like "foreach (list)", then you wouldn't want to use the "for (a;b;c)" whenever the "foreach" works.

Or a different version of that loop example, let's say you are in a functional language that has no loop and instead uses recursion for everything. You always do "map", "reduce", etc. wherever those apply and try to not have recursion done manually.
"My goal is to replace my soul with coffee and become immortal."
Thaniri
Profile Blog Joined March 2011
1264 Posts
Last Edited: 2016-03-02 08:11:42
March 02 2016 08:07 GMT
#14125
I'm spending my spare time playing with javascript and I have a hard time knowing how to use those built-in features. An example comes to mind where I had to check the truth of an input and it could be undefined, blank, 0, "no", NaN... etc. Javascript has a way to account for all false possibilities but I made a big if-else statement for every possibility to return false. Built-in features like that might as well be witchcraft to me.

edit: I still don't understand it.
Nesserev
Profile Blog Joined January 2011
Belgium2760 Posts
Last Edited: 2016-03-02 09:17:49
March 02 2016 09:06 GMT
#14126
--- Nuked ---
Manit0u
Profile Blog Joined August 2004
Poland17727 Posts
Last Edited: 2016-03-02 12:48:16
March 02 2016 11:20 GMT
#14127
Actually, checking for truthiness/falsiness of an empty string is problematic in more than JavaScript (PHP also treats empty strings as falsy):

http://www.rosettacode.org/wiki/Empty_string

Although, generally, the best approach here is to check the actual string length.

Also tricky in JS, checking if something is actually a number (numeric string, when checking for stuff returned by jQuery val() etc.)...


function isNumeric(value) {
return (!isNaN(value) && isFinite(value));
}


On March 02 2016 17:07 Thaniri wrote:
I'm spending my spare time playing with javascript and I have a hard time knowing how to use those built-in features. An example comes to mind where I had to check the truth of an input and it could be undefined, blank, 0, "no", NaN... etc. Javascript has a way to account for all false possibilities but I made a big if-else statement for every possibility to return false. Built-in features like that might as well be witchcraft to me.

edit: I still don't understand it.



function filterFalsy(value) {
if (!value) {
return false;
}

if (typeof value !== 'string' && isNaN(value)) {
return false;
}

if (null === value) {
return false;
}

if (typeof value === 'string' && value.length === 0) {
return false;
}

if (typeof value === 'undefined') {
return false;
}

if (typeof value === 'string' && (value === 'no' || value === 'false' || value === '0')) {
return false;
}

if (typeof value === 'number' && (isNaN(value) || !isFinite(value))) {
return false;
}

return true;
}



var arr = [
1,
'abc',
undefined,
false,
true,
'no',
'false',
'0',
0,
'1234',
null,
Infinity,
NaN,
];

var filtered = arr.filter(filterFalsy);


Filtered is:

Array [ 1, "abc", true, "1234" ]


Now, if you want it simpler you can simply remove all the ifs except the first one in the filter function. Then it'll return:

Array [ 1, "abc", true, "no", "false", "0", "1234", Infinity ]


This second option is actually all you need to do this exercise.

Edit:
If you don't understand how that works, here's a pretty simple explanation for the filter function.

.filter(callback) - what it does is walk the entire array and perform callback function on each element. If the callback returns false it discards the element from the array, otherwise it leaves it as is.

You can see how it works exactly over at MDN. It's your prime resource for learning how stuff in JS works.

MDN 4 lyfe! https://developer.mozilla.org/en-US/docs/Web
Time is precious. Waste it wisely.
tofucake
Profile Blog Joined October 2009
Hyrule19203 Posts
March 02 2016 13:49 GMT
#14128
On March 02 2016 12:58 killa_robot wrote:
Show nested quote +
On March 01 2016 12:05 tofucake wrote:
I've actually found that there's more jobs than developers...


Based on what? Unless you're talking about a tech hub I find that really hard to believe.

I live in Philadelphia so I guess I'm a little spoiled there...
Liquipediaasante sana squash banana
Thaniri
Profile Blog Joined March 2011
1264 Posts
March 02 2016 17:51 GMT
#14129
Thanks for those explanations guys.
amazingxkcd
Profile Blog Joined September 2010
GRAND OLD AMERICA16375 Posts
March 03 2016 03:29 GMT
#14130
question:

whats the most friendly front-end javascript framework when it comes to working with SVG animations (plugins, native support, etc). I have no real preference regarding the frameworks and would be willing to learn new ones for this project
The world is burning and you rather be on this terrible website discussing video games and your shallow feelings
amazingxkcd
Profile Blog Joined September 2010
GRAND OLD AMERICA16375 Posts
March 03 2016 05:58 GMT
#14131
On March 03 2016 12:29 amazingxkcd wrote:
question:

whats the most friendly front-end javascript framework when it comes to working with SVG animations (plugins, native support, etc). I have no real preference regarding the frameworks and would be willing to learn new ones for this project


decided to mess with ember js as they have HTML bars that will at least support SVG tags
The world is burning and you rather be on this terrible website discussing video games and your shallow feelings
tofucake
Profile Blog Joined October 2009
Hyrule19203 Posts
March 05 2016 01:15 GMT
#14132
assetic is being a dick

In Atom:
[image loading]

In Chromium
[image loading]

For whatever reason, it exports all text not written in Windows as null characters...which is baffling.
Liquipediaasante sana squash banana
Manit0u
Profile Blog Joined August 2004
Poland17727 Posts
Last Edited: 2016-03-05 04:43:48
March 05 2016 04:32 GMT
#14133
What do you mean by "text not written in Windows"? I've never had problems with assetic on either Linux or Windows.

Here are some things that might help you:
http://stackoverflow.com/questions/19219578/nginx-and-css-issue

Also: Why Chromium? T_T
Time is precious. Waste it wisely.
NovemberstOrm
Profile Blog Joined September 2011
Canada16217 Posts
March 05 2016 07:14 GMT
#14134
I'm creating an application in VB.net, I need to have a next record/prev record button, I'm using hashtables atm, any ideas?
Moderatorlickypiddy
tofucake
Profile Blog Joined October 2009
Hyrule19203 Posts
March 05 2016 11:54 GMT
#14135
On March 05 2016 13:32 Manit0u wrote:
What do you mean by "text not written in Windows"? I've never had problems with assetic on either Linux or Windows.

Here are some things that might help you:
http://stackoverflow.com/questions/19219578/nginx-and-css-issue

Also: Why Chromium? T_T


.align-go {
transform: translateY(75%);
-webkit-transform: translateY(75%);
}

^ was written in Windows and works. Anything else I type in Arch goes to null.


sendfile off worked though, thanks
Liquipediaasante sana squash banana
Manit0u
Profile Blog Joined August 2004
Poland17727 Posts
Last Edited: 2016-03-05 16:37:12
March 05 2016 12:41 GMT
#14136
On March 05 2016 16:14 NovemberstOrm wrote:
I'm creating an application in VB.net, I need to have a next record/prev record button, I'm using hashtables atm, any ideas?


Can't you just call next() and previous() on a collection?

On March 05 2016 20:54 tofucake wrote:
Show nested quote +
On March 05 2016 13:32 Manit0u wrote:
What do you mean by "text not written in Windows"? I've never had problems with assetic on either Linux or Windows.

Here are some things that might help you:
http://stackoverflow.com/questions/19219578/nginx-and-css-issue

Also: Why Chromium? T_T


.align-go {
transform: translateY(75%);
-webkit-transform: translateY(75%);
}

^ was written in Windows and works. Anything else I type in Arch goes to null.


sendfile off worked though, thanks


Really strange...

In the meantime, I've found another cool article/FAQ on Nginx:
https://www.nginx.com/resources/wiki/start/topics/tutorials/config_pitfalls/
Time is precious. Waste it wisely.
Animzor
Profile Joined March 2011
Sweden2154 Posts
Last Edited: 2016-03-05 14:58:37
March 05 2016 14:18 GMT
#14137
*edit nvm figured it out
Cyx.
Profile Joined November 2010
Canada806 Posts
March 05 2016 18:12 GMT
#14138
On March 02 2016 15:19 Thaniri wrote:Based on everything I've ever heard about developer jobs you need to know how to jump through a million hoops just to pass the interview, lots of data structures and algorithm questions. But again, I have no experience so who am I to know personally.

I'm going to be applying to internships in 3-6 months and I didn't think it was worth applying until I did a slightly higher level data structures course.


From experience, I can tell you this idea is wrong I had the exact same feelings in second year (which, for us, is the first year of software - first year engineering here is 'common core'), but I tried anyways, and I ended up getting hired by a place full of exceptionally talented people who cared more about my ability to learn quickly than about what I knew. It was probably the best six months for my development as a programmer so far. I would say that if you've done some programming and taken a course or two, you're more than ready to at least start trying to look for internships/summer jobs.
WarSame
Profile Blog Joined February 2010
Canada1950 Posts
March 05 2016 18:30 GMT
#14139
I will back up Cyx. No one knows much for the first few years. Just brush up on Data Structures and Algorithms and learn how to think through problems and you're set for any interview. They won't expect anything crazy from a newer student.
Can it be I stayed away too long? Did you miss these rhymes while I was gone?
spinesheath
Profile Blog Joined June 2009
Germany8679 Posts
March 05 2016 19:04 GMT
#14140
I certainly didn't have to jump through a million hoops either. And I persnally wouldn't expect a whole lot from an average student either. You need practical experience to become a good programmer, and the average student doesn't have a lot of that. So if you get invited to an interview as a student chances are they aren't looking for an experienced professional, but rather someone with room to grow.
If you have a good reason to disagree with the above, please tell me. Thank you.
Prev 1 705 706 707 708 709 1032 Next
Please log in or register to reply.
Live Events Refresh
Patches Events
22:00
5.4k Patch Clash #16
davetesta54
Liquipedia
[ Submit Event ]
Live Streams
Refresh
StarCraft 2
PiGStarcraft217
RuFF_SC2 69
StarCraft: Brood War
ggaemo 53
NaDa 21
Dota 2
monkeys_forever553
canceldota192
League of Legends
JimRising 448
goblin13
Super Smash Bros
AZ_Axe78
Heroes of the Storm
Khaldor208
Other Games
summit1g14159
gofns12457
tarik_tv7676
hungrybox937
ViBE175
Trikslyr156
SpeCial83
Mew2King35
Organizations
Other Games
gamesdonequick769
BasetradeTV218
StarCraft 2
Blizzard YouTube
StarCraft: Brood War
BSLTrovo
sctven
[ Show 16 non-featured ]
StarCraft 2
• musti20045 29
• IndyKCrew
• AfreecaTV YouTube
• sooper7s
• intothetv
• Kozan
• LaughNgamezSOOP
• Migwel
StarCraft: Brood War
• RayReign 47
• STPLYoutube
• ZZZeroYoutube
• BSLYoutube
League of Legends
• Doublelift4148
Other Games
• Scarra990
• imaqtpie949
• tFFMrPink 11
Upcoming Events
Sparkling Tuna Cup
9h 31m
WardiTV Map Contest Tou…
10h 31m
Ladder Legends
14h 31m
IPSL
15h 31m
JDConan vs TBD
Aegong vs rasowy
BSL
18h 31m
StRyKeR vs rasowy
Artosis vs Aether
JDConan vs OyAji
Hawk vs izu
CranKy Ducklings
23h 31m
Replay Cast
1d 8h
Wardi Open
1d 9h
Afreeca Starleague
1d 9h
Bisu vs Ample
Jaedong vs Flash
Monday Night Weeklies
1d 15h
[ Show More ]
RSL Revival
2 days
Afreeca Starleague
2 days
Barracks vs Leta
Royal vs Light
WardiTV Map Contest Tou…
2 days
RSL Revival
3 days
Replay Cast
3 days
The PondCast
4 days
KCM Race Survival
4 days
WardiTV Map Contest Tou…
4 days
Replay Cast
4 days
Escore
5 days
RSL Revival
5 days
WardiTV Map Contest Tou…
6 days
Ladder Legends
6 days
uThermal 2v2 Circuit
6 days
BSL
6 days
Liquipedia Results

Completed

Escore Tournament S2: W3
RSL Revival: Season 4
NationLESS Cup

Ongoing

BSL Season 22
ASL Season 21
CSL 2026 SPRING (S20)
IPSL Spring 2026
KCM Race Survival 2026 Season 2
StarCraft2 Community Team League 2026 Spring
WardiTV TLMC #16
Nations Cup 2026
IEM Rio 2026
PGL Bucharest 2026
Stake Ranked Episode 1
BLAST Open Spring 2026
ESL Pro League S23 Finals
ESL Pro League S23 Stage 1&2
PGL Cluj-Napoca 2026
IEM Kraków 2026

Upcoming

Escore Tournament S2: W4
Acropolis #4
BSL 22 Non-Korean Championship
CSLAN 4
Kung Fu Cup 2026 Grand Finals
HSC XXIX
uThermal 2v2 2026 Main Event
2026 GSL S2
RSL Revival: Season 5
2026 GSL S1
XSE Pro League 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
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.