It never ceases to amaze me that so much code on the web does not work. It number of coders who persistently post unworkable code also continues to surprise me. We even find this on Stackoverflow. Links to code, working or otherwise, also have a tendency to become broken; or it becomes unusable when newer versions of libraries become available. There is a lot of unworking and potted code on the web.
Or…sometimes I find the solution inspired by those comments under the unselected answer. I intend to think that it’s just hard to find this one particular missing puzzle piece without seeing the whole picture.
RequireJS is the best loader because:
- It manages dependencies.
- It loads text into strings.
- It has an awesome compiler capable of minifying and concatenating your JS and text dependencies (templates).
- It works great with non-AMD modules via the
- It works in node.js too
- It can be subbed out with another, optimized AMD loader for deployment e.g. Almond.
Managing dependencies…..I think you’ve just given me another notion of having some experiments!
Github - software engineers will pay monthly fees for the rest of their lives in order to create free software out of other free software!
LinkedIn - how about a professional social network, aimed at busy 30- and 40-somethings. They will use it once every 5 years when they go job searching.
Instagram - filters! That’s right, we got filters!
Facebook - the world needs yet another Myspace or Friendster except several years late. We’ll only open it up to a few thousand overworked, anti-social, Ivy Leaguers. Everyone else will then join since Harvard students are so cool.
Dropbox - we are going to build a file sharing and syncing solution when the market has a dozen of them that no one uses, supported by big companies like Microsoft. It will only do one thing well, and you’ll have to move all of your content to use it.
PayPal - people will use their insecure AOL and Yahoo email addresses to pay each other real money, backed by a non-bank with a cute name run by 20-somethings.
When you look at the sample codes, imagine what you’d do without the reactive.js. Global variables? A simple class, prototype in this case perhaps? Or you want some more permanent handy tools, so you start thinking about building your own library? Boom! There you see the reactive.js
Upon this first, and in one sense this sole, rule of reason, that in order to learn you must desire to learn, and in so desiring not be satisfied with what you already incline to think, there follows one corollary which itself deserves to be inscribed upon every wall of the city of philosophy: Do not block the way of inquiry.
- Charles Sanders Peirce, “First Rule of Logic”
Eerily I came across an interesting presentation, “Faith, Evolution, and Programming languages” by Philip Wadler, I didn’t understand all the the issues he brought up in the beginning, though that reminded me of one thing never changed in programming world was the passion for logic. It sounded weird to put “passion” and “logic” these two words side by side, but that made perfect sense when you thought about it was the people who had the passion to connect with or contribute to the world though logic built and participated in this programming world. In programming, there was no law but there had the logical dynamic. There was no one true entity or false entity, only the logical relations. The charm wasn’t to seek the final correct answer but to prove and create the new logic.
we have to stop advocating localStorage as a great opportunity for storing data as it performs badly. Sadly enough the alternatives are not nearly as supported or simple to implement.
Curious…does this kind of information belong to technology gossip? To be honest, I never give too much thoughts about the existence of technology gossip until now. I’m not completely convinced by the claim, and I can’t dig up much information to back the claim up either. I’d assume just like the nature of gossip, this claim also has some truths in it but not enough to be used for any fair judgement.
LocalStorage’s synchronous character is real, though I don’t see whether we really need to kill it. Before seeing it occur in real world application myself, I also doubt this issue will apply to most of the scenarios, not when using it for storing key and value pairs. Go an try the IndexdDB? Sure. For now, for the actual project, I’m heading toward LocalStorage.