HN user

daniloassis

35 karma

Cheers from Rio de Janeiro. :)

Posts1
Comments19
View on HN

I could also argue that it's hard to be a hate speech judge when everything can be a trigger if you get offended.

I don't think if it was a matter of just asking for respect on the individual level, it would go this far. But who knows.

This 4chan phenomena is probably due to their incapacity to articulate on the real world, when in the real world they are already taken as wrong just by playing an opposite moral or political value, or in most cases, for being "privileged".

KEKistan would be the nemesis of PC's "safe space" world, I guess.

Not saying that I agree with all that, just reflecting. I only think that only real dialog will balance this. Not force, not laws. Dialog.

I'm Brazilian and Carioca... I was at Rio's protest yesterday and it was BEAUTIFUL.

I'm against all kind of violence and vandalism, unfortunatelly we had a few people that caused a LOT of damage to the city in the very end, but almost every story you hear about manifestations and protests ends the same way everywhere in the world... so I leave for each one what you feel about this.

We are just sick of swallowing all the sh*t and public abuses that Government throw at us and we just complain in silence, this time people went to the streets and showed that if we manage to organize ourselves and keep pushing (peacefully, of course), we might achieve something meaningful... like, for instance, RESPECT.

Send love and support to us, we are needing. :)

Meme was a direct Tumblr competitor at the time, or at least they thought it was.

A very friend of mine was involved in the project and it was developed by Yahoo's São Paulo office here in Brazil. :)

I don't know the real reason why they shut it down, but probably because they couldn't fetch Tumblr's success or something like that.

PHP Commandments 13 years ago

I don't quite agree with him on that also.

PHP is multi-paradigm, if you keep helpers functions in a way it's well structured and feels right in your project, why do not use them?

This is a personal preference, not a fact.

PHP Commandments 13 years ago

I would add the following:

General tips:

* Understand how HTTP works (sounds trivial for a PHP developer, but at least here in Brazil, a huge portion doesn't do)

* ALWAYS keep php.ini with production settings and replicate the same into your development environment (Vagrant is a great option here)

* ALWAYS keep Apache or Nginx configs in sync among every environment

* NEVER trust $_SERVER['REMOTE_ADDR'] to get client ips when you are behind a Load Balancer (most modern frameworks already treat this, but make sure you are parsing it correctly)

* ALWAYS use `realpath` when you are symlinking folders

* Be REALLY careful when using `setlocale` for something, specially with numbers

* 2 basic things about Cookies: use `HttpOnly` flag whenever possible AND `Secure` flag when behind SSL

* Make sure the Database library uses PDO in its core

* Every service runs in UTC timezone (PHP, DB, OS etc). Offset calculations just for presentation or input (when explicitly necessary)

* Don't use $_POST and $_GET globals directly

* Support other methods (DELETE, PATCH, etc) by parsing the Request body properly

Personal tips:

* Use Composer

* Use Twig

* Use a nice Request/Response handler (Symfony2's HttpFoundation, for instance)

I am sure I forgot many things here, one day I compile a list with everything I've been through.

Hope it helps!

:)

I think this type of approach will never stick with PHP community (at least with the "serious" developers).

This hurts so many principles and directions that PHP community is FINALLY diving into, like SOLID and stuff. Accepting simple things like strings are not objects is the way to improve how PHP devs build their stuff and start focusing on important things like defining de-facto libraries and joining forces to make them the best and most flexible available.

Don't get me wrong, the idea is pretty good (even if it's a simple try to mask procedural PHP functions)... but it seems like a swiss knife in the end.

you just forgot to read the part that says:

Can't Afford the Book? If you're struggling with finances and can't afford it, let us know and we'd be happy to send you a free copy. Drop us a note at 2scoops@cartwheelweb.com.