greut

- friends
3,428 link karma
192 comment karma
send messageredditor for
what's this?

TROPHY CASE


  • Four-Year Club

    Verified Email

Coming in PHP 5.4.0: OOP-based custom session handlers by frozenfirein PHP

[–]greut 0 points1 point ago

Those mentioned ones are strongly typed and PHP isn't; which might explain the difference. If it quacks like a duck, it's duck isn't enough?

how come javascript doesn't have printf? by Samus_in javascript

[–]greut 5 points6 points ago

Maybe because JavaScript was designed to be run into an environment without any stdout/stderr - where should it print it by default? meh.

If you wanna talk about the f part of your question, they never had to think about it maybe.

Can anyone help me rewrite working PHP code so that it no longer uses cURL, but an alternative? by theirfRedditin PHP

[–]greut 0 points1 point ago

For something totally different, when doing a redirect.

header("Location: introduction.html");

You have to specify the full URL, including domain and scheme.

http://www.w3.org/Protocols/rfc2616/rfc2616-sec14.html#sec14.30

ELI5 why all banks aren't like swiss banks? by needmoreknowledgein explainlikeimfive

[–]greut 1 point2 points ago

Swiss people decided otherwise once they realized they lived in a country with no natural resources like Oil, Diamonds, Gold, Coal, Sea/Ocean, … Since then winter sports went popular but snow's melting ;-)

Javscript front and back end CMS? by toksicityin javascript

[–]greut 0 points1 point ago

that's the “JavaScript back” part of the question.

Anyone willing to contribute to Jaiku-engine Project on Appengine written in Python. (non-commercial) by sifaratin AppEngine

[–]greut 0 points1 point ago

I can tell you that there are no Jaiku-engine code within Status.net.

Javscript front and back end CMS? by toksicityin javascript

[–]greut 0 points1 point ago

What do you mean by “JavaScript front”, compared to any other kind of CMS (even if CMS is a very large family)?

Anyone willing to contribute to Jaiku-engine Project on Appengine written in Python. (non-commercial) by sifaratin AppEngine

[–]greut 0 points1 point ago

It says that it's running StatusNet?? I'm confused.

Implementation of Mongo in a new PHP Framework by markfischerin mongodb

[–]greut 1 point2 points ago

If you're implementing a new framework, make it PSR-0 compatible, at least. You should take a look at what PHP 5.3 offers, that's the now.

A phpmyadmin alternative. Webdbadmin was released. by klodomain programming

[–]greut 0 points1 point ago

The URL License is now a 404 and the price has been lowered, thanks to Reddit I guess the developer being the poster.

Is PEAR the only place for publishing modules? by sleep_wellin PHP

[–]greut 3 points4 points ago

What do you use for “browsing” PHP modules? Nothing but a search engine and trusting people's recommendations, blog posts, tutorials, … The first step is to publish you code somewhere, pick bitbucket, launchpad, google code, sourceforge, …

“Easy to be found” means somewhere on Google and for that you're on your own.

You can mock something like package repository, dependencies, … using svn:externals, git submodule, …

Thanks for the links, may one of them become popular.

Is PEAR the only place for publishing modules? by sleep_wellin PHP

[–]greut 6 points7 points ago* 

Try this: http://github.com

PEAR(2) isn't much popular

Jour férié pour juifs et musulmans : Eva Joly de nouveau au coeur des critiques by Naruhodoin france

[–]greut 3 points4 points ago

C'est à l'envers de la laïcité qui place la République dans le rôle de ne pas prendre parti face aux diverses religions et de permettre à tout un chacun de les exercer. Un état laïque n'est ni un état qui interdit toute religion ni un état qui en promeut certaines.

Et un jour pour les athés?

“God bless France!!”

A phpmyadmin alternative. Webdbadmin was released. by klodomain programming

[–]greut 2 points3 points ago

phpmyadmin is free as in free beer and free speach, this one isn't: http://www.webdbadmin.com/projects/webdbadmin/wiki/License

The price starts at € 25 for a 5 users, two servers installation.

Building a Simple PHP Templating Class by JoshuaKissoonin PHP

[–]greut 6 points7 points ago

Did you forget that PHP is a templating language? Why would you start all your file with a <?php otherwise?

Need some help convincing my employer to use Ruby on Rails instead of PHP by imjpin rails

[–]greut -1 points0 points ago

Try not to scare him off. I've seen companies doing some small projects in another technology (rails, django, …), ask to give it a shoot. Event something internal.

What you can tell your boss is that PunchCMS is somehow old, in its design. Take some time to give all the new PHP 5.3 framework, they are much better.

My question though: why did you take a job at a company doing PHP when you don't want working with that technology in first place?

Best practice for making a third party class match naming standards? by jonatcerin PHP

[–]greut 3 points4 points ago

BTW try to forget about include and use a proper autoloader: PSR-0. Check those slides: http://www.slideshare.net/weaverryan/a-php-christmas-miracle-3-frameworks-1-app

Best practice for making a third party class match naming standards? by jonatcerin PHP

[–]greut 7 points8 points ago* 

Keep your naming standards for your code and use 3rd party libraries as is. PHP is about this kind of incoherence, just take a look at PHP itself:

Writing adapters for every libraries you are including will be a real pain in the backside to maintain.

If you have nothing better to do of your time than nite-picking with naming standards, then do it ;-)

How to follow a low GI diet? by lampoluzain nutrition

[–]greut 0 points1 point ago

The GI wikipedia page seems to be a good start.

Is learning PHP via a framework a sensible thing to do? by xikin PHP

[–]greut 1 point2 points ago

In order to success in that, you should have some notions of how web frameworks are built nowadays: MVC[1] is a good start. But before that, you should now how the web works, right? I'd got for basic: HTTP and REST[2].

Then, maybe then, you can pretend being able to build something. But wait, many stuff remains: Database abstraction, DAO/ORM, templating (gee! PHP is a templating language), routing, security (XSS, CSRF, SQL injection, …), …

Learning PHP is like learning JavaScript, you cannot learn the language alone. In fact you do but it's boring, trying doing JavaScript without the DOM, XHR, canvas, etc… PHP is about the web and the web is mostly HTTP. PHP frameworks are giving you a PHP way to deal with HTTP.

Of course, you can start learning PHP by writing shell scripts: parsing log files, resizing images, tagging mp3's, crawling web sites, migrating databases, … and for that I'm sure no frameworks can help you.

Should I convert my two-year old, native PHP, moneymaking site over to a PHP Framework? by lulzipopsin PHP

[–]greut 0 points1 point ago

My last big project was the rewriting of something old from scratch and all I can tell is that it's a pain and dangerous.

Entropy is everywhere, everything need some attention from time to time. I loved the plant metaphor btw.

Start giving it some attention, fixing bugs here and there and at some point you'll see what's needed. Maybe a framework for this part, maybe a switch to PDO to prevent some potential SQL injections, maybe hashing the passwords using bcrypt, …

Going the “what we have is outdated let's redo everything” road is so much trouble that you won't catch me doing it again.

PHP version of Stack Exchange's mvc-mini-profiler; a profiler for your PHP apps by lastkarrdein PHP

[–]greut 5 points6 points ago

Or the good old xdebug's profiler with kcachegrind/wincachegrind/webgrind/…

Should I convert my two-year old, native PHP, moneymaking site over to a PHP Framework? by lulzipopsin PHP

[–]greut 10 points11 points ago

The gold rule is “If it ain't broke, don't fix” but you can take this as a personal challenge to learn something new. Instead of redoing everything from scratch which doesn't bring much motivation all along, try incorporating some pieces into it. PSR-0 has been implemented by some major frameworks out there, meaning you can pick whatever you want/like from them. For example, start with the logging stuff, and so on. Best of luck!

Book recommendations for a programmers who is making his way into web development? by mexicanseafoodin javascript

[–]greut 2 points3 points ago

Don't forget MDC's: A re-introduction to JavaScript (which is not a book, but worth starting with)

view more: next