News for hackers. Stuff that matters.

steve-rodrigue

I'm building an open source version of HootSuite. Suggestions needed

Hi, I'm currently building an open source version of HootSuite. I am currently planning my MVP and plan to launch its first version within the next 2 weeks. After the initial launch, Ill create a new version every week.To make sure I build something people really find useful, I'd like to know what features in HootSuite you use the most and what social network you manage using HootSuite.I'm...

( Read More... | no comments | on HN )
Please note that the goal of Rodson is to create and connect REST APIs with as few code as possible, while writing as less configuration as possible.

Let me know what you think of its syntax... the full documentation of Rodson and the full Authentication software are coming soon.

EDIT: I just wanted to share what I had so far :) Hope you like it!

How should I price my software as a service? I'm targetting developers

So I've been working on this application for 4 years, part time. The key features are:1. Create CRUD REST API very quickly.2. Create a REST API that fetch information from a third party REST API, merge it with some in-house information, taken from a CRUD API, then output it to the user.3. Create REST APIs based on 1+ sql databases, create specific sql queries with the request, and output...

( Read More... | no comments | 3 points | on HN )
Re:Ask HN: Which hand written diagram software do you use? on Thursday September 03, 2015 @12:21PM (#10165810)
Yes, that's exactly what I needed. Thanks for sharing!

Ask HN: Which hand written diagram software do you use?

I'm currently trying to make graphical explanations on how a software works and would like to make it look good. 6-8 months ago, I discovered an online app that was making it easy to create diagrams with a "hand written feel". However, I can't find it anymore.Is anyone here using that kind of software? If not hand-written, what tool do you use to create graphical explanations, if any?

( Read More... | 4 comments | on HN )
Re:Turning the database inside-out with Apache Samza on Wednesday March 04, 2015 @02:46PM (#9146829)
Does anyone knows which app has been used to create the "handwritten" images? I draw very badly so I'm looking for such an app to explain data flows on a corporate blog/wiki.
Re:Automatic REST API for Any Postgres Database on Saturday January 03, 2015 @10:47PM (#8833199)
Even if it uses views, it still binds your data storage to your RESTful API. If you use such an application, it won't be possible to move some data to other data storage, such as Redis, to normalize some data, for example, without modifying all your client's applications.

If you create an endpoint (object) based API, you will be able to modify it the way you like, and if you change your data storage, your client's applications won't even know that you modified your internal databases.

EDIT Please keep in mind that my comments are only valid if you are building an API that you will have to maintain on a long term basis. Otherwise, this project is great... like I said in another comment, I'll probably use it for simple "build and forget" projects.

Re:Automatic REST API for Any Postgres Database on Saturday January 03, 2015 @08:16PM (#8832761)
Impedance mismatch happens often when directly mapping table's data to an object. When working with an API that match perfectly a database table, the user will have 2 choices (inside his client's applications):

1) Building an object from the data received from a REST call (which is the same as mapping a table's data to an object).

2) Create 1 or multiple REST calls to the API, transform the data and creates an object.

The chances that #1 happens is far greater... since #2 is normally done when building an endpoint (Object) RESTful API. So, if you would do #2, it might be a better idea to create an endpoint API and comsume it in all your client's applications...

If you do #1, your client's applications will be exposed to impedance mismatch.

Re:Automatic REST API for Any Postgres Database on Saturday January 03, 2015 @07:43PM (#8832688)
Creating an API directly on top of your database schema brings the problem of impedance mismatch in all the client applications built directly on top of your new API.

However, if you create an Endpoint (Objects) based RESTful API on top of your database schema and then use this new API in all your client's applications, you will have the problem of impedance mismatch in only 1 application: your REST API.

For more information related to impedance mismatch: http://en.wikipedia.org/wiki/Object-relational_impedance_mis...

It might be a good idea to create a "build and forget" application on top of a RESTful API built directly on top of a database schema. I would probably use it for a movie website, since movie sites are normally built to promote the movie and forgotten after.

However, building client applications you need to maintain on a longer term, on top of a RESTful API built directly on top of a database schema is a terrible idea. It will get harder to maintain as the database schema evolves and the amount of client applications grows.

Re:Automatic REST API for Any Postgres Database on Saturday January 03, 2015 @07:31PM (#8832658)
A good API is an API that abstract its database schema and expose designed Endpoints (Objects) to its clients.

By exposing Objects instead of your schema, your API has less chance to be updated as frequently, since its internal data storage is separated from its public API.

For the same reason, it is a bad practice to have multiple applications reading and writing data directly in your database. Building an Endpoint based API on top of your database and sharing this API across your clients is a better option.

Building an API directly on top of a database schema also brings the problem of impedance mismatch in all your client's applications: http://en.wikipedia.org/wiki/Object-relational_impedance_mis...

The problems here have nothing to do with the fact that the API might be chatty.

Re:Automatic REST API for Any Postgres Database on Saturday January 03, 2015 @07:18PM (#8832617)
PHP is just a tool that makes it very easy to create quick websites using logic directly in html. I totally agree that this is a bad practice and should be avoided. This is why it attracted a lot of script kiddies at its beginning.

On the othr hand, according to Wikipedia ( http://en.wikipedia.org/wiki/Brogrammer ) a "brogrammer" is a social programmer, normally attracted in hacking jobs at startups. Therefore, I believe PHP doesn't attract "brogrammers" since most startups do not work with PHP anymore. I believe new languages attracts more "brogrammers" than PHP.

PS: Please keep in mind that, nowadays, there are a lot of good programmers that write clean PHP code. Just have a look at the Symfony2 code source.

Re:Automatic REST API for Any Postgres Database on Saturday January 03, 2015 @07:03PM (#8832567)
I also believe that creating a CRUD RESTful API directly on top of your database schema is a very bad idea because of the potential impedance mismatch.

Normally, a REST API is formed of Endpoints (Objects), so this article should explain the problem fairly well: http://en.wikipedia.org/wiki/Object-relational_impedance_mis...