(*) The new Ionic looks and feels great with material design, enhanced performance and custom components. They also now have what is called Ionic Native which is a set of ES6 wrappers for Cordova plugins. I’m still not sold on Angular 2 though.
Uploading files is one of the most common tasks performed by web developers. It’s a pretty simple operation when using PHP or other server side frameworks. However, it is not so straightforward when using Node.js, unless you understand how to user Buffer API for reading streams of binary files (i.e. uploading file content as binary code). Luckily for us, the Node.js community came up with a few solutions.
Somebody recently asked how to accomplish role-based authorization using React and react-router, and linked to a post describing one way to go about it. Essentially, the post suggests simply passing a list of roles that are allowed to see a given route, and checking whether the currently logged in user is one of those roles within your route handler. That would work, but I see a few problems with it…
These days everyone is talking about functional programming in JS, reactive programming, and streams. Some awesome libraries came out to help us to work with streams and my favorite is Cycle.js. It’s created by André Staltz.
users can try the compiler in the browser and imagine how fast it would be for native backend.
(*) Very interesting tradeoff’s here. When you a big code base with no tests and you need to refactor it, normally you consider adding tests. But as an alternative you could try to add a type system and thus at least partially mitigate the risk. Now if you go down that path you really have two options here: Flow or TypeScript. TS worked better in this case.
We here at ag-Grid use Webpack to bundle our own products, as well as using it with some of our framework examples. Although there are alternatives to Webpack, it is still very popular and with version 2.2 recently released I believe it will remain so for quite a while yet.
Let me start by saying — I was surprised how easy it was to write grammar for an Earley parser. I have been using regular expressions for over a decade. And I am used to parse things using regular expressions. Its fragile, its not always possible, etc. But it is fast and for the most part it serves the purpose.