I recently came across yet another way to build web apps using WordPress. Yes yes, we all know that WordPress is (almost official) supporting RESTful APIs via http://wp-api.org/.
But what if the data you actually need does not fully match WordPress’s data models ? ( such as User related data ). Yet at the same time, you still need to use WordPress for other general CMS purpose, such as creating blog posts, landing pages, contact us page etc, pages where it can be done a lot more easily via WordPress, but not within your custom apps ?
Sure you could code up custom views/logic for the above use cases, but seriously speaking, it might be much easier and faster to build up these pages using WordPress, and focus your effort on actually building your app.
So here’s the solution: you can use php based frameworks such as Slim in your WordPress installation.
How ? You can either use Slim in your WordPress theme, or use Slim in your WordPress plugin.
Both generally works: for the theme-based version, you can actually make use of Twig and other Slim related goodies within your theme. For the plugin version, you can use Slim as a structured way to expose RESTful APIs, both from internal data source or external data source.
So feel free to visit here and here to have a look.
I was reading up on Quora and stuff, when this topic caught my attention.
Turns out that there are billionaires who achieved the billionaire status in 4 years or less. This is pretty fast if you ask me.
This graphic tells a pretty good story:
Speed to a billion
It’s amazing to see how the Internet is increasing the speed of everything, including making wealth and fortune.
Here’s one more related article that is worth reading: http://www.successstories.co.in/self-made-billionaire-robert-pera-i-quit-my-job-because-i-wanted-to-have-more-success-faster/
A long awaited post!
I was implementing a cool web application over the past few days and decided that it’s time to spruce up my knowledge of frontend frameworks. It appears that a lot has changed over the past few months, so i thought I should write down some of the things I’ve learnt.
Mobile First or Desktop First?
This is an important point as this will affect your choice of frameworks. If you are pursuing a desktop first strategy ( and dont really expect your users to use your site via mobile devices ) you should probably just stick to BootStrap due to it’s ease of use and well supported ecosystems.
However, if you expect your users to use your app via mobile devices, you should most certainly consider using Purecss.io
This is because Purecss.io’s performance on mobile devices is so much better than Bootstrap.
You can try out Bootstrap’s example layouts here using your mobile device, followed by accessing Purecss.io’s layouts, such as this and this.
Feel the difference ?
Not sure if you’ve really tried out the different layouts on your mobile device, but the most striking difference you should feel is the slide in menu. Purecss.io’s slide in menu on mobile devices is much smoother, and less jerky than Bootstrap.
While Purecss.io’s support is not as widespread as Bootstrap, but i think it’s good enough, considering that you can easily use parts of Bootstrap in Pure.
If you need a skin builder, Pure’s skin builder is pretty decent and easy to use.
What’s next ?
I’ll probably try to hack some stuff using Pure, ReactJS and this cool project, just to see what cool stuff can be done.
http://bigocheatsheet.com/ – All your time complexities for your favorite algorithms, distilled into one page.