r/javascript • u/bubble_boi • Jan 08 '17
Master web development with these 9,985 weird tricks
https://medium.com/@david.gilbertson/master-web-development-with-these-9-985-weird-tricks-77c71d1d96f3#.pvqsolvp059
u/gaoshan Jan 08 '17
You should properly redirect your domain when www is used... currently https://know-it-all.io works but https://www.know-it-all.io fails (9,986 tricks, I suppose).
10
u/bubble_boi Jan 08 '17 edited Jan 08 '17
I thought I'd done that. I suck at DNS stuff. Do I have a link to the www version somewhere?
Edit: It totally works now and did the whole time. You're clearly some sort of crazy person. :)
5
u/gaoshan Jan 09 '17 edited Jan 09 '17
It didn't work the whole time since it def. was not working for me when I posted that comment. Assuming you had done as claimed what probably happened was that whatever DNS changes you made had not yet propagated... that can take some time.
*edit: nice idea and site, by the way... don't want to come off as a sour puss.
1
u/Zee1234 Jan 10 '17
I believe this is a whoosh.
2
u/gaoshan Jan 10 '17
Perhaps, perhaps... but the fact that DNS propagation can take a long time and happens in not all places at once is a classic, newbie web dev issue.
7
u/needsTimeMachine Jan 09 '17
Maybe this is because I'm mostly a backend engineer, but does anyone else think it's ridiculous to know the entire DOM API? What function could that possibly serve? By the time you learn it, it will have out evolved what you set out to learn in the first place. I doubt there's any single person that knows this entire list.
Programming is about leveraging abstraction. When you need to solve a problem, you know the general shape of the solution. If you need to do better, you know how to look for a better set of primitives.
This strikes me as someone trying to memorize the phone book so they can instantly call whomever they like. It seems to disregard the existence of tools we have in place to search large problem spaces.
Interesting approach, but I feel it's naive. You'd be far better served to learn more algorithms, data structures, and work in new problem domains.
3
u/bubble_boi Jan 09 '17
You're missing the point, quite spectacularly.
It's not about memorising vast quantities of data, it's about discovering things you don't know.
I was pretty clear about that in the post, dare I suggest you give it a read?
2
u/youneversawitcoming Jan 10 '17
It boils down to close to the same thing.
I'm interested in buying a car, but learning the name and top-selling model of every manufacturer is unlikely to help me buy a car in the future.
Instead, I'm going to google a few words describing the car that I want (luxury, sunroof, 18'' wheels, leather seats), and go from there. That's how I discover things I don't know, by deciding upfront what's important to me and what areas of knowledge I should get a rough understanding of.
In the previous example, that means I'd dig into what features luxury cars have, and learn the vocabulary first (e.g. hardtop convertible). Then apply that vocabulary when I actually want to buy a car. I think this is what /u/needsTimeMachine was alluding to - that you should know the 'general shape of the solution'.
To bring this back to javascript, I'd first identify the areas that I think are high-leverage:
Basic HTML
Basic CSS styling
Basic JavaScript
Layout
JavaScript 'gotchas'
and then study those. The downside to a flat list of things to learn is that you haven't assigned any priority. The vast majority of the DOM api is not high-value, so the net value of each random concept you learn is low.
4
u/youneversawitcoming Jan 09 '17
Exactly this - by the time you've learned all of it a new standard will be coming out.
Also, why memorize it instead of setting up a tool like Dash and making it a few keystrokes away?
1
u/needsTimeMachine Jan 09 '17
Another thing this reminded me of: I also studied Chemistry in undergrad. The Organic Chemistry professors told us never to memorize the reactions, because that was a sure path to failure. Study the concepts and the movement of the electrons, and you can generalize it to any reaction you've seen the general shape of. Yet there were always a group of students that never followed that advice and tried studying from flash cards. Every exam had completely novel reactions based on what we'd learned, but applied to entirely different molecules. Those unfortunate pre-med students had the hardest time because they refused to pay attention to the bigger picture.
4
u/Lekoaf Jan 09 '17
There is a vast differance between know and know of. You don't need to know everything but it's a good idea to know of them so you know what to search for when the need arises.
8
u/SamSlate Jan 08 '17 edited Jan 09 '17
why not put the search button inline? It's literally the only button I want/need to use. have to select know/don't care/know of it and then open the hamburger menu to search? why??
6,000x4 options and they don't persist after refreshing the page. who is this for???
4
u/bubble_boi Jan 08 '17
I didn't think of putting the search thing inline. That's a great idea, will do.
But the scores don't persist for you? What OS/browser?
3
u/SamSlate Jan 08 '17
windows, chrome. by scores i assumed you mean know/don't know yea? i will turn off add block/ghostery and try it again.
edit: works after toggling ghostery. srry for the false alarm.
5
u/bubble_boi Jan 09 '17
No problem, it's not like I was lying awake hoping I hadn't just announced this to the world and it was horrendously broken.
(Thanks for the update)
2
u/Tettrox Jan 10 '17
Is know-it-all open source? Forgive me if I'm missing something, tired and on mobile.
14
u/d4nyll DevOps @ Nexmo / Author of BEJA (bit.ly/2NlmDeV) Jan 08 '17
If you create some sort of accounts system, this would be useful for me.
6
u/kenoyer130 Jan 08 '17
Great idea. I would love one for React/Babel/Redux/Webpack etc. I recommend making each item clickable to a simple google search. For example "NodeJs SlowBuffer class". That way you can simply click the item and bring up search for it.
2
1
u/anlutro Jan 09 '17
What if the top suggestion was always the thing on the list that most other people say they know, but you don't?
1
u/runvnc Jan 08 '17
I think the reason its so involved is that its an entire platform full of APIs..more or less an operating system crammed into one program.
1
u/drowsap Jan 09 '17
Why not show examples instead of a dump of the property names and values? I'm trying to figure out how this is useful.
-4
Jan 08 '17
So there's a virus going around that nibbles your brain and makes you not able to stand up??? What's it called? Is it contagious??
-6
u/runvnc Jan 08 '17
Cool but you forgot 395,000 npm modules. Well, ok, depends on how many you think are actually worthwhile. If you believe 9 out of 10 (of other people's modules, of course, yours are all great) are totally worthless, then thats down to only about 40,000 modules.
27
u/jimmykup Jan 08 '17
Took me a while to figure out that the only way to expand the boxes on mobile was tapping the tiny, itty bitty arrows on the left that are barely visible.