1. 2

    http://pothibo.com - I give tips and tricks on how to build dynamic web application with Ruby On Rails and Javascript.

    1. 2

      This is such a powerful post. I hear so many times that when building a product, you should start with an API and build your client by consuming the API. I keep repeating that it’s a bad idea over and over.

      API’s are hard to get right and are not easy to maintain. Thanks for sharing!

      1. 1

        I really like ideas about password less system. I even wrote a post about it (http://pothibo.com/2013/08/building-a-password-less-system-part-one/)

        I believe that in the end, it’s a matter of knowing what to trust. I have an alpha that I built on OS X that would use url schemes to communicate with a small application you would have installed that would store a secret, the small application would then prove to the server that the computer is authorized to log in to that account and via websocket, the server would tell the browser that it’s authenticated and let it refresh to access secured content (Do I make sense?)

        Marco Arment did implement something like what this article is about for his latest product (can’t remember, sorry).

        1. 3

          I asked this on Hacker News, but didn’t get a response, so here it goes again.

          How is this better than any other existing solution? Specifically, how is this better than Ghost, which it seems to take heavy inspiration from?

          1. 6

            Sorry I didn’t see the comment as the submission was nuked off the front page I couldn’t find it anywhere.

            I tried Ghost before starting this project so you may find similarities. However there is many fundamental differences between the two projects. The most important difference between the two is how Ecrire lets you customize pretty much everything while Ghost removes as much customization as possible. In ghost, you write in markdown, images are positioned in a certain way and unless you want to start customizing themes, you are pretty much stuck with what they gave you.

            When you write a post in Ecrire, you can change the whole look and feel right from the editor. As a blogger, I’ve always had a hard time editing my post. Sometimes, you just want to tweak a small thing in your post because you want to show the information in a certain way, Ecrire allows that.

            Also, Ecrire is made for developers. From the get go, there’s an awesome library named prism.js that does code highlighting for you. That library supports virtually any programming language and extending prism to support your language wouldn’t take more than 30 minutes.

            I don’t know for you, but when I want to show code snippet, I want to show them with full code highlighting. I know you can use a gist and what not but I grew tired of using that extra step every time for little gain.

            In some way, Ecrire is much closer to Wordpress than it is to Ghost in term of what you can do with your editor.

            I hope this helps you understand and sorry again for not answering you on HN.

            1. 1

              (If you go to your profile page on HN there’s a link to view a list of your submissions)

              While I’ve only played a little bit with Ghost (the split screen editor and image uploader are what made me compare the two internally), customizing a theme isn’t difficult, and while it doesn’t have something like prism.js out of the box, adding that (or Google Code Prettify, or any syntax highlighter) isn’t difficult.

              Anyways, looks neat. I probably wouldn’t use it because I would much rather use markdown to write blog posts and prefer flat-file or statically generated systems, but it looks neat.

          1. 2

            This is my first submit so please correct me if I do something wrong :)

            This is a project that I have been working on for the last 3 months. It’s still in alpha but I believe it’s mature enough to be shared with the world.

            After some frustration with many blog engine I’ve tried, I decided to come up with my own. I believe the Readme explains a lot of my frustration and goals with this project but if you have any question don’t hesitate.