Follow Slashdot stories on Twitter

 



Forgot your password?
typodupeerror

Comment: Re:Have you ever used PHP? (Score 1) 245

by neorush (#48812719) Attached to: PHP vs. Node.js: the Battle For Developer Mind Share
It is a loose typed language. This is what would happen in these cases. That's the point, it is in fact designed this way!
OMG Look how crappy c++ is!

int x = 'a';
cout << x;
will print 97;

Seriously, just because a language doesn't function the way you are used to, does not mean that it is broken...

Comment: Re:Have you ever used PHP? (Score 1) 245

by neorush (#48806061) Attached to: PHP vs. Node.js: the Battle For Developer Mind Share
Round robin DNS and nginx as load balancers. Then we auto scale cloud servers on the back end to handle the PHP load. Scalable MySQL: http://www.rackspace.com/cloud... File System: https://www.drupal.org/project... Cloud files is really the key here, otherwise you have to use an NFS of some other kind...which kind be a nightmare otherwise.

Comment: Re:Have you ever used PHP? (Score 1) 245

by neorush (#48805573) Attached to: PHP vs. Node.js: the Battle For Developer Mind Share

PHP is a shit language.

* http://whydoesitsuck.com/why-d...

We have === for this...if you change your way of thinking a bit you can actually code more quickly with loose typing (and yes, still keep things secure). Most of the arguments around PHP are something like "it doesn't work like this other language I'm familiar with".

Most of the arguments in here relate to complaining about the issues with most large open source projects, e.g. function naming conventions...while PHP has major issues in this regard (most notably how parameter order always flops around myFunc(haystack, needle), myFunc2(needle, haystack)...etc.) From my experience these sorts of things crop up in libraries / projects all the time, it is not unique to PHP.

The language as a whole really does allow for rapid prototyping, and quick updates, and cross platform support. Read efficient and profitable.

I've found that most people who hate PHP also hate Javascript, again, they don't know how to leverage it properly....so it must suck.

Comment: Have you ever used PHP? (Score 1) 245

by neorush (#48802211) Attached to: PHP vs. Node.js: the Battle For Developer Mind Share
So...do any of the PHP bashers do any actual extensive coding in PHP? Have you ever looked at the code in Drupal 7/8?

Seriously, I am always baffled by everyone who starts ranting on how crappy PHP is. I have done mostly PHP development for 12+ years. I have yet to have a site hacked, or SQL injection exploited. It is a very solid language, it can be made VERY fast (JIT is also coming down the pipe out of the box in 6+). It lends itself to rapid prototyping and easy patching / testing. There is a module / plugin / snippet of code out there for pretty much everything. It will run on a windows server, a debian box, and CentOS pretty much the same.

Loose variable typing is not always bad thing, and you can always cast variables anyway:
$_GET['my_var'] = (int) $_GET['my_var'];
Ta-da! We definitely have an integer now!

I have written entire chat bots with raw socket connections in PHP...it can pretty much do everything...and do it quickly.

Comment: Re: Dupe (Score 3, Insightful) 840

You have to disassemble most of the headlight housing and surrounding components on my Subaru. The dealership does it for the cost of the light bulb if I'm getting an oil change anyway...how much is $12 worth to you? I used to do my own oil changes, but after buying everything I might save $10 ...and there lies the problem...a full day of fiddling (and it still might not work)...or $30 for a new coffee maker?

Comment: Re:Server Techniques (Score 1) 202

by neorush (#48233951) Attached to: Ask Slashdot: How Do I Make a High-Spec PC Waterproof?
I built an oil cooled machine a few years ago in a fish tank, it was really awesome looking....but....The oil makes all plastics parts and wires so brittle, that in just a few months they snap with any kind of movement. One of the add-on cards I had also had some rubber parts to the capacitors, and when the rubber expanded in the oil it just popped the capacitor right of the board. Also while gaming the oil would push 130F until I put an external radiator that was air cooled on it, if it is run for under 8 hours at a time the oil will actually cool down, and it took several hours to even get 5 gallons of oil warm again. On top of that...don't get me started on maintenance....the oil "crawled" up out of the tank and up the wires. I switched to fully wireless keyboard / mice / usb hub, but the power cord really had to be wiped off every so often.

While neat, there are some major issues with oil immersion. Instead, a sealed case (hot glue anyone?) and externally mounted water cooled heat sinks would do the trick. The sealed units are awesome, and they don't freeze either as it is not actually water in the sealed units. You can even get self-contained water cooled PSUs now.

"But this one goes to eleven." -- Nigel Tufnel

Working...