![]() What do you want to do? Ask that, and figure out how.I am currently going through Eloquent Javascript and came upon the were-squirrel example. ![]() Add circuit breakers with their own maximum draw with their three states (on, off, tripped), and the ability to reset them. Add the ability to plug and unplug each device. How many outlets are there in your home? How much power is consumed by each item you plug in? Write something to show the total power consumption of all the plugged in devices. Think about anything around you, and how you can represent it as data and objects, and interact with it. Then a function that deleted entries that don't match from the original array. Then a function that lets you pass a string and returns the entries with that string. Rather than jumping into calculating correlation data, you could take a similar data set from the weresquirrel journal entry and figure out how to return an array of entries containing 'pizza'. You have perfs and fiddles and tens thousand projects on github to look at. You can see the memory and network and painting impact of code you write. Even minified, you have tools to prettify, to step through it line-at-a-time and check and change variables. Remember that you can see the code other sites use. Don't be afraid to write TERRIBLE code to try something, and then figure out how to make it better. I learned a lot by believing that I could do anything, and learning to break down the problem. Examples: int parsing and adding to arrays. You may be amazed how different browser behave. I recommend trying things on jsperf and comparing the performance of simple tasks across browsers. I recommend Maintainable JavaScript (at least until it gets into Ant) and High Performance JavaScript, though the latter is an older book and, while most of the theory is sound, the performance costs are radically different these days. Maybe the actual ES5 spec, then? I don't deny that reading a spec is a dry thing, but it can be helpful to skim it and familiarize yourself with the features of the language. Now you have to check which spec each command is part of. I used to read the Netscape DevEdge (predecessor to the MDN) JavaScript Reference ( here is the modern equivalent), The original had versioned reference. ![]() I might be a bad influence, because I learned along with the growth of the language. I like sites like Codewars because it is task-focused and lets you play constructively. Personal blog posts that are relevant to the subreddit's stated subject matter don't need prior approval (and are encouraged!). If you want to post something self-promotional, please message the mods first. Titles that begin with "hey guys" will be removed. ![]() If you're in doubt, message the mods first. The following are not allowed: Requests for subscribers, asking for "test users" for your new JS course, offering paid mentorships, and/or premium courses. If you’re asking for help, include enough information for others to recreate your problem. With a nod to practicality, questions and posts about HTML, CSS, and web developer tools are also encouraged. Everyone should feel comfortable asking any and all JavaScript questions they have here. This subreddit is a place for people to learn JavaScript together.
0 Comments
Leave a Reply. |