Live data from Hacker News

Dropplets - A simple database-less CMS

dropplets.com

81–90 of 103 posts

Re: Dropplets - A simple database-less CMS

#81
post #26

A small rant: I think it is bad practice to hide content below the page height. I just wanted to close the website because I thought 'nothing to see here' before I accidentally scrolled and more content was revealed.

You're talking about 'The Fold' and it's a myth - http://blog.kissmetrics.com/why-the-fold-is-a-myth/

It doesn't really matter if there's content below the page height, just that you ensure users see they have the affordance to scroll.

Re: Dropplets - A simple database-less CMS

#82
post #77
post #76

Earlier quoted context omitted.

Yes, but, in most langauges, this doesn't work This results in bool(true) bool(true) bool(true)

Seriously? (string) x fuzzy equals to (int) 0? Holy crap that is some cancer.

Yes, seriously.

http://php.net/manual/en/types.comparisons.php

Re: Dropplets - A simple database-less CMS

#83
I tried to set this up a few months ago. Apparently I was formatting post headers incorrectly, because I couldn't get any posts I wrote to show up on the site after upload. No error messages or anything.

It's pretty, but the workflow isn't much better than Jekyll. I would have been happy if there was a post editor in the admin panel, but that's apparently not going to happen.

Re: Dropplets - A simple database-less CMS

#85
Looking over the comments I want to say I am surprised the attitude of some people towards this project, but given this is Hacker "Hate On PHP" News, I am not. I am disappointed to see people nitpicking over the way some things have been coded. As someone who's used Dropplets on a couple of small sites now, I've found it to be a breath of fresh air compared to Wordpress.

Not only is Dropplets a lot more simple to work with compared to other CMS's/blogging platforms written in PHP, it works. It's easy to write themes for it, it's easy to publish content and easy to make it do whatever you want. It's perfect for those times when you want something lightweight that isn't bloated Wordpress.

So I am going to surprise you all by not weighing in on the dick-measuring contest that is language comparison. You can write bad code in any language, PHP just makes it easier to do so. I think this is a great project and if you have a problem with the way it's coded, remember it's open source and anyone can contribute.

This is the other problem with a lot of people that frequent this site, but not limited to this site. They're quick to complain and point out problems with other peoples code and their choice of language, but rarely ever put their keyboard where their mouth is and actually bother to make a difference by contributing to an open source project.

So my advice to anyone who came here to comment on the choice of PHP or the way it's coded would be to take it elsewhere and learn to compliment someone else's work. It's attitudes like the ones I am seeing that make people (like the author of this project) not want to release their work as open source because people are far too critical and judgemental of others.

Re: Dropplets - A simple database-less CMS

#86

Looking over the comments I want to say I am surprised the attitude of some people towards this project, but given this is Hacker "Hate On PHP" News, I am not. I am disappointed to see people nitpicking over the way some things have been coded. As someone who's used Dropplets on a couple of small sites now, I've found it to be a breath of fresh air compared to Wordpress. Not only is Dropplets a lot more simple to wor…

Not everyone who's criticizing the code is necessarily hating on PHP. There is a difference between good PHP and bad PHP and perfectly valid reasons to suggest things need to be changed.

And I believe people have been contributing, at least, issues have been opened up and at least one commenter has mentioned rewriting (possibly forking) it.

Re: Dropplets - A simple database-less CMS

#87

Looking over the comments I want to say I am surprised the attitude of some people towards this project, but given this is Hacker "Hate On PHP" News, I am not. I am disappointed to see people nitpicking over the way some things have been coded. As someone who's used Dropplets on a couple of small sites now, I've found it to be a breath of fresh air compared to Wordpress. Not only is Dropplets a lot more simple to wor…

There's good code being written in PHP, but as far as I can see, not really in this project. JS, HTML, PHP are all mixed together, global functions and variables everywhere, no classes or objects.

Also they are not using an existing PHP framework so they'll have to reinvent the wheel many times for proper session handling, caching, encryption, and for countless other problems that have already been solved.

Re: Dropplets - A simple database-less CMS

#90

Looking over the comments I want to say I am surprised the attitude of some people towards this project, but given this is Hacker "Hate On PHP" News, I am not. I am disappointed to see people nitpicking over the way some things have been coded. As someone who's used Dropplets on a couple of small sites now, I've found it to be a breath of fresh air compared to Wordpress. Not only is Dropplets a lot more simple to wor…

There's good code being written in PHP, but as far as I can see, not really in this project. JS, HTML, PHP are all mixed together, global functions and variables everywhere, no classes or objects. Also they are not using an existing PHP framework so they'll have to reinvent the wheel many times for proper session handling, caching, encryption, and for countless other problems that have already been solved.

Once again, it's open source we are talking about here. You do realise the problems you describe are also prevalent in other content management systems and publishing platforms? Wordpress is the worse offender for global variables, the theming system in Wordpress mixes HTML,CSS,JS and PHP together, the code-base is a mixture of object-oriented and procedural code as well. But it powers most of the web. Any blog you visit is most likely powered by Wordpress and why is that? Because it works.

Dropplets might not have the prettiest code, but there aren't many projects out there that do. In-fact, Dropplets is no worse than Wordpress is and that hasn't stopped Wordpress being hugely successful. Why? Most people don't care how things are coded if they work. Dropplets works, Wordpress works. If it works, who cares really? As a developer, I don't care, I'm not a code purist. My clients don't care either if I use Wordpress or Dropplets for their site.

Frameworks do have the added advantage of giving you things like encryption, database abstraction and a structure to adhere to, but there's nothing wrong with wanting to do things for yourself, sometimes understanding things on a lower-level makes you a better developer. Besides, the overhead of a PHP framework would be too much for a project like Dropplets in my opinion. Considering it's database-less, you don't need any database abstraction, ORM, no custom-built session management or complicated caching libraries.

Even a framework as light as Codeigniter would be far too heavy to build something like Dropplets on-top of. And people need to realise the future of PHP is not within frameworks, the Composer package manager means we can include what we want in our projects like a framework without the added overhead: include only what you need and ignore everything else.

I was hoping to avoid a framework, language, code-quality discussion but I guess it's fair people raise their hands after I question the intent of the comments on this submission. At the end of the day, good code is important, but as developers we know that it just isn't possible to write good code all of the time without help.

This highlights why open source is important and I think if people truly care about good code, they should roll up their sleeves and help. You can't deny Dropplets is pretty-darn cool. Not nearly enough people contribute to projects like this. I've forked the project and am planning on helping clean up the code-base a little bit if it means more people will use it.

I thought the whole point of open source was getting your ideas and work out there so others can improve it, not criticise it. If we spent all of our time perfecting something, most open source projects in existence would probably not exist. Sometimes it's best to get something that works, but isn't exactly coded to God-like developer levels out into the public. Criticism stems open source. We need to embrace imperfection and achieve perfection as a whole over time.

Post reply on HN