Live data from Hacker News

A Docker-inspired Heroku clone in 100 lines of PHP

gist.github.com

11–20 of 34 posts

Re: A Docker-inspired Heroku clone in 100 lines of PHP

#11
post #4

I have never found "X lines of code" to be impressive. Write clean code and polish it and make it readable. Who cares how long it is. Hackers brag about lines, not engineers.

In only 100 lines of PHP! Requires Symfony.

Requiring libraries/frameworks shouldn't detract from something like this. I'd be more worried about bugs and feature support.

Re: A Docker-inspired Heroku clone in 100 lines of PHP

#13

Earlier quoted context omitted.

In only 100 lines of PHP! Requires Symfony.

Requiring libraries/frameworks shouldn't detract from something like this. I'd be more worried about bugs and feature support.

Nah, requiring Symfony is like requiring Django. Doesn't make much sense.

Re: A Docker-inspired Heroku clone in 100 lines of PHP

#15
post #4

I have never found "X lines of code" to be impressive. Write clean code and polish it and make it readable. Who cares how long it is. Hackers brag about lines, not engineers.

In only 100 lines of PHP! Requires Symfony.

It requires Silex, a micro-framework, not Symfony. Symfony is a much larger framework that isn't required. He just used two of its modular components, Request for HTTP request parsing, and Process for spawning subprocesses.

Re: A Docker-inspired Heroku clone in 100 lines of PHP

#16
post #4

I have never found "X lines of code" to be impressive. Write clean code and polish it and make it readable. Who cares how long it is. Hackers brag about lines, not engineers.

In only 100 lines of PHP! Requires Symfony.

> Requires Symfony.

Silex, not Symfony, and better to rely on trusted library code than to reinvent the wheel and introduce vulnerabilities...

Re: A Docker-inspired Heroku clone in 100 lines of PHP

#17
post #13

Earlier quoted context omitted.

Requiring libraries/frameworks shouldn't detract from something like this. I'd be more worried about bugs and feature support.

Nah, requiring Symfony is like requiring Django. Doesn't make much sense.

It's actually Silex. Maybe that makes more sense.

Re: A Docker-inspired Heroku clone in 100 lines of PHP

#18
post #9

What about dokku...loads of plugins and easily extendable.... https://goo.gl/JzMstI

I have been playing with Dokku lately. I ran into some problems with the Dockerfile mode (creates tags like myapp:latest but then tries to start dokku/myapp:latest) and the CLI not parsing arguments correctly (had to put extra " chars in strange places). Perhaps the Procfile mode is more polished. Would like to know if there are any alternative single-host PaaSes out there to use for side projects.

Re: A Docker-inspired Heroku clone in 100 lines of PHP

#19

Earlier quoted context omitted.

In only 100 lines of PHP! Requires Symfony.

> Requires Symfony. Silex, not Symfony, and better to rely on trusted library code than to reinvent the wheel and introduce vulnerabilities...

But it's not 100 LOC if you don't reinvent the wheel! /s

Re: A Docker-inspired Heroku clone in 100 lines of PHP

#20
post #13

Earlier quoted context omitted.

Requiring libraries/frameworks shouldn't detract from something like this. I'd be more worried about bugs and feature support.

Nah, requiring Symfony is like requiring Django. Doesn't make much sense.

But it's not requiring Symfony.
Post reply on HN