On March 02 2016 10:59 Blisse wrote:
What's the module pattern?
What's the module pattern?
http://www.adequatelygood.com/JavaScript-Module-Pattern-In-Depth.html
Forum Index > General Forum |
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
Poland17187 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 | ||
killa_robot
Canada1884 Posts
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
1264 Posts
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
Germany3557 Posts
March 02 2016 07:49 GMT
#14124
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. | ||
Thaniri
1264 Posts
March 02 2016 08:07 GMT
#14125
edit: I still don't understand it. | ||
Nesserev
Belgium2760 Posts
March 02 2016 09:06 GMT
#14126
| ||
Manit0u
Poland17187 Posts
March 02 2016 11:20 GMT
#14127
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.)...
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.
Filtered is:
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:
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 | ||
![]()
tofucake
Hyrule18969 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... | ||
Thaniri
1264 Posts
March 02 2016 17:51 GMT
#14129
| ||
amazingxkcd
GRAND OLD AMERICA16375 Posts
March 03 2016 03:29 GMT
#14130
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 | ||
amazingxkcd
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 | ||
![]()
tofucake
Hyrule18969 Posts
March 05 2016 01:15 GMT
#14132
In Atom: ![]() In Chromium ![]() For whatever reason, it exports all text not written in Windows as null characters...which is baffling. | ||
Manit0u
Poland17187 Posts
March 05 2016 04:32 GMT
#14133
Here are some things that might help you: http://stackoverflow.com/questions/19219578/nginx-and-css-issue Also: Why Chromium? T_T | ||
![]()
NovemberstOrm
Canada16217 Posts
March 05 2016 07:14 GMT
#14134
| ||
![]()
tofucake
Hyrule18969 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 { ^ was written in Windows and works. Anything else I type in Arch goes to null. sendfile off worked though, thanks | ||
Manit0u
Poland17187 Posts
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 { ^ 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/ | ||
Animzor
Sweden2154 Posts
March 05 2016 14:18 GMT
#14137
| ||
Cyx.
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 ![]() | ||
WarSame
Canada1950 Posts
March 05 2016 18:30 GMT
#14139
| ||
spinesheath
Germany8679 Posts
March 05 2016 19:04 GMT
#14140
| ||
| ||
![]() StarCraft 2 StarCraft: Brood War Dota 2 League of Legends Counter-Strike Super Smash Bros Other Games Organizations Other Games StarCraft 2 StarCraft: Brood War StarCraft 2 StarCraft: Brood War
StarCraft 2 • Berry_CruncH444 StarCraft: Brood War• practicex ![]() • v1n1z1o ![]() • LaughNgamezSOOP • sooper7s • AfreecaTV YouTube • intothetv ![]() • Kozan • IndyKCrew ![]() • Laughngamez YouTube • Migwel ![]() League of Legends |
PiG Sty Festival
Serral vs TriGGeR
Cure vs SHIN
The PondCast
Replay Cast
PiG Sty Festival
Clem vs Bunny
Solar vs Zoun
Replay Cast
Korean StarCraft League
PiG Sty Festival
herO vs Rogue
ByuN vs SKillous
SC Evo Complete
[BSL 2025] Weekly
Replay Cast
[ Show More ] SOOP Global
ByuN vs Zoun
Rogue vs Bunny
PiG Sty Festival
MaxPax vs Classic
Dark vs Maru
Sparkling Tuna Cup
|
|