d2jsp
Log InRegister
d2jsp Forums > Off-Topic > Computers & IT > Programming & Development > Building A Site As A Hobby Progression.
Prev13456Next
Add Reply New Topic New Poll
Member
Posts: 29,723
Joined: Jun 11 2007
Gold: 279.52
Aug 14 2013 02:02pm
I want to give node.js a try, anyone have any experience with it?
Member
Posts: 237
Joined: Aug 6 2011
Gold: 6,026.00
Aug 14 2013 03:11pm
Even on a gaming forum this kind of topic can stir a fanboy war

The discussion isn't whether *amp is any good or not, but rather where should newcomers start their web dev experience.
Member
Posts: 11,610
Joined: Oct 28 2008
Gold: 1,795.00
Aug 14 2013 06:42pm
Quote (nuvo @ Aug 14 2013 10:31am)
most php coders just never saw anything else, so its kinda hard to explain why php is so fucking bad... if only thing they know is bad

but hey, millions of programmers using shared php host can't be wrong


Please enlighten me why it's impractical to use PHP, then you can write to the millions of websites running PHP and I'm sure they'll rework everything so they can fit in with fucking idiot hipsters. You read one article about ror and why it's good and immediately PHP is trash millions of companies retards, multimillion dollar companies just full of damn idiots because they can't afford the upgrade I'm sure.

These millionaires with 20 years experience still saying PHP is good so they're obviously retards they should listen to the jobless spawn on d2jsp he could teach them a thing or two.
Member
Posts: 3,386
Joined: May 4 2013
Gold: 1,780.00
Aug 14 2013 07:01pm
I gave you a link to read, it has multitude of examples why it's impractical. Go back after you read it and tell me it's all meaningless and php is still good language. Explain why all of the points raised don't matter. But if you're too full of yourself to read that, your choice, you're the one missing out on real fun. Also PHP was trash since day one, except it allowed uneducated fucks to make a visitor counter on their website fairly easy.

>These millionaires with 20 years experience still saying PHP is good

Who is saying it's still good?

Quote (flyinggoat @ Aug 14 2013 02:11pm)
Even on a gaming forum this kind of topic can stir a fanboy war

The discussion isn't whether *amp is any good or not, but rather where should newcomers start their web dev experience.


I just don't think giving newcomers worst possible advices, only because its the only thing those golden children know, is a good idea.

This post was edited by nuvo on Aug 14 2013 07:13pm
Member
Posts: 11,610
Joined: Oct 28 2008
Gold: 1,795.00
Aug 14 2013 07:47pm
Quote (nuvo @ Aug 14 2013 08:01pm)
I gave you a link to read, it has multitude of examples why it's impractical. Go back after you read it and tell me it's all meaningless and php is still good language. Explain why all of the points raised don't matter. But if you're too full of yourself to read that, your choice, you're the one missing out on real fun. Also PHP was trash since day one, except it allowed uneducated fucks to make a visitor counter on their website fairly easy.

>These millionaires with 20 years experience still saying PHP is good

Who is saying it's still good?



I just don't think giving newcomers worst possible advices, only because its the only thing those golden children know, is a good idea.


You have still to make a point all I remember is you saying they recently added namespaces. I've made you look like an idiot over and over again disproving everything that you've stated, like my centos server (the one with lamp stack and iptables built in) not having a firewall, and you thinking you're a detective because you can "ping webserver" to find an ip. You really are stupid, all you're saying is to use ror because PHP is bad, you haven't said why it's bad, or gone into detail, because you have no detail.

Before you're taken seriously I'd read these articles in the order I've posted them.
These articles sum up my feelings of PHP, if you'd like to reach me further I invite you to pm me, I'm open to helping people, but you making a fool out of yourself will come to a close.

http://net.tutsplus.com/articles/editorials/why-2013-is-the-year-of-php/

http://fabien.potencier.org/article/64/php-is-much-better-than-you-think
Member
Posts: 3,386
Joined: May 4 2013
Gold: 1,780.00
Aug 14 2013 08:04pm
Your awesome server had all services WIDE OPEN until i pointed it out :rofl: you didn't have any iptables rules enabled until i laughed at you, so stop pretending already. Also I like how you bashed ubuntu for including gnome, and then said you use gnome for everything on your centos :rofl:

Ok, here you go some points that are probably worst I can remember:

- == is useless
- exception handling is useless
- random parser quirks like list(), array()
- no threading
- everything is a global function with no common conventions, parameters are in totally random
- "hidden" global settings, such as database connection id/link/wtf to name it
- OOP is laughably weak (go and define extra function for your array, lets say, to return all elements with prepended "lol" string to them. I'm waiting)
Code
[1] pry(main)> a=%w[ hello there, it seems you're a php coder ]
=> ["hello", "there,", "it", "seems", "you're", "a", "php", "coder"]
[2] pry(main)> class Array
[2] pry(main)*   def lol
[2] pry(main)*     return self.map{|i| "lol#{i}"}
[2] pry(main)*   end  
[2] pry(main)* end  
=> nil
[3] pry(main)> a.lol
=> ["lolhello",
"lolthere,",
"lolit",
"lolseems",
"lolyou're",
"lola",
"lolphp",
"lolcoder"]
[4] pry(main)> hi

seriously, read the link. But most important: what would be a reason to choose it over another language? name one?

Code
$ curl -s http://me.veekun.com/blog/2012/04/09/php-a-fractal-of-bad-design/ | grep -c '<li>'
275


read all 275 points pls

:cry: damn my insomnia, wasting my time trying to educate someone who doesn't even want it

Quote
I'm open to helping people,

please don't, EVER

This post was edited by nuvo on Aug 14 2013 08:13pm
Member
Posts: 237
Joined: Aug 6 2011
Gold: 6,026.00
Aug 14 2013 09:28pm
Quote (nuvo @ Aug 15 2013 03:01am)
I just don't think giving newcomers worst possible advices, only because its the only thing those golden children know, is a good idea.


I on the contrary, do think so. Can't tell the good from the bad if you haven't tasted both, and there's no motivation to move on to anything else if you start with the good. Several points can be made in that sense. I think that whether you're a hobbyist or aim at becoming a professional you should acquire an understanding of what proper practices are at every layer of your stack. Unless you have a background in developement, its preferable to have experience why *amp is bad rather than just repeat what you've been told or read articles that point at flaws you can't comprehend to begin with. Bottom line, don't give the kids a ferrari right away.

Lastly, you're attacking php on its semantics rather than its nature: it's a scripting language that strictly respects the stateless paradigm of http. The semantics in themselves aren't bad. Most of the flaws you've pointed about php can be said of javascript. However noone complains about the task js fulfills. The true issue with php is that it uses the same approach for server side processing. That's where the flaw lays. However you can't deny that it makes life easier for simple tasks that require low load and low security, to be coded by people that have never came accross a pointer.
Member
Posts: 11,637
Joined: Feb 2 2004
Gold: 434.84
Aug 15 2013 06:25am
Quote (flyinggoat @ Aug 14 2013 10:28pm)
simple tasks that require low load and low security, to be coded by people that have never came accross a pointer.


Which is like none of the modern web that isn't someone's shitty wordpress blog. It sounds like someone didn't bother reading that article at all. There are huge problems with the language that are hand-waved away by apologists because they don't know any better.

Quote (0n35 @ Aug 14 2013 07:42pm)
Please enlighten me why it's impractical to use PHP, then you can write to the millions of websites running PHP and I'm sure they'll rework everything so they can fit in with fucking idiot hipsters. You read one article about ror and why it's good and immediately PHP is trash millions of companies retards, multimillion dollar companies just full of damn idiots because they can't afford the upgrade I'm sure.

These millionaires with 20 years experience still saying PHP is good so they're obviously retards they should listen to the jobless spawn on d2jsp he could teach them a thing or two.


Not jobless. Very much employed in the industry and have been for 5 years now.

Please point out these "millionaires" with "20 years experience" that are also software engineers that say PHP is a good solution. There's a reason why people are moving to other languages and frameworks. You also seem to have a hate boner for RoR even though it's used fairly heavily and there are other language/frameworks that are very popular too. Groovy/Grails (which I'm using right now. It has some quirks but it's not too bad), Python/(Django/Flask) and things like Node.js.

A snippet of that site:
Quote

== is useless.
    - It’s not transitive. "foo" == TRUE, and "foo" == 0… but, of course, TRUE != 0.
    - == converts to numbers when possible (123 == "123foo"… although "123" != "123foo"), which means it converts to floats when possible. So large hex strings (like, say, password hashes) may occasionally compare true    when they’re not. Even JavaScript doesn’t do this.
For the same reason, "6" == " 6", "4.2" == "4.20", and "133" == "0133". But note that 133 != 0133, because 0133 is octal. But "0x10" == "16" and "1e3" == "1000"!
    - === compares values and type… except with objects, where === is only true if both operands are actually the same object! For objects, == compares both value (of every attribute) and type, which is what === does for every other type.  What.


How does one fuck up the transitivity of equality? I've never encountered a language where something this basic was this broken. This is unacceptable. Also this:

Quote

Comparison isn’t much better.
    - It’s not even consistent: NULL < -1, and NULL == 0. Sorting is thus nondeterministic; it depends on the order in which the sort algorithm happens to compare elements.
    - The comparison operators try to sort arrays, two different ways: first by length, then by elements. If they have the same number of elements but different sets of keys, though, they are uncomparable.
Objects compare as greater than anything else… except other objects, which they are neither less than nor greater than.
For a more type-safe ==, we have ===. For a more type-safe <, we have… nothing. "123" < "0124", always, no matter what you do. Casting doesn’t help, either.


Quote

Function calls are apparently rather expensive.


In a simple tree-traversal script a full 70% of the execution time of the script was tied up in just function call overhead. What the fuck? Of course someone like you would just put everything into one massive function anyway and call it a day.

PHP is a broken fucking language and the only people who will use it for a new project are people who don't know any better, i.e. beginners and shitty programmers who can't be bothered to learn a better tool.

This post was edited by rockonkenshin on Aug 15 2013 06:31am
Member
Posts: 11,610
Joined: Oct 28 2008
Gold: 1,795.00
Aug 15 2013 01:18pm
Quote (rockonkenshin @ Aug 15 2013 07:25am)
Which is like none of the modern web that isn't someone's shitty wordpress blog. It sounds like someone didn't bother reading that article at all. There are huge problems with the language that are hand-waved away by apologists because they don't know any better.



Not jobless. Very much employed in the industry and have been for 5 years now.

Please point out these "millionaires" with "20 years experience" that are also software engineers that say PHP is a good solution. There's a reason why people are moving to other languages and frameworks. You also seem to have a hate boner for RoR even though it's used fairly heavily and there are other language/frameworks that are very popular too. Groovy/Grails (which I'm using right now. It has some quirks but it's not too bad), Python/(Django/Flask) and things like Node.js.

A snippet of that site:


How does one fuck up the transitivity of equality? I've never encountered a language where something this basic was this broken. This is unacceptable. Also this:





In a simple tree-traversal script a full 70% of the execution time of the script was tied up in just function call overhead. What the fuck? Of course someone like you would just put everything into one massive function anyway and call it a day.

PHP is a broken fucking language and the only people who will use it for a new project are people who don't know any better, i.e. beginners and shitty programmers who can't be bothered to learn a better tool.


My hate boner:
Quote (0n35 @ Aug 11 2013 10:44am)

Microsoft is to Linux as PHP is to ror.  the other side is greener in more than a few ways, but they do the same thing. Support is lacking on the latter on both sides, but the groups are growing. More than likely they're the future, but not today, and not for a long time.


Like I've said before, PHP has tens of thousands of jobs, if not more. To push it aside because it's bad is stupid. You act like you learn one language and that's it, so don't learn php. It works with a little more effort and knowledge to work around quirks than the others, but it's not a one day transition to newer languages, and php is being very actively developed, I'd be very surprised if people stopped using it.
Member
Posts: 11,637
Joined: Feb 2 2004
Gold: 434.84
Aug 15 2013 01:51pm
Quote (0n35 @ Aug 15 2013 02:18pm)
My hate boner:


Like I've said before, PHP has tens of thousands of jobs, if not more. To push it aside because it's bad is stupid. You act like you learn one language and that's it, so don't learn php. It works with a little more effort and knowledge to work around quirks than the others, but it's not a one day transition to newer languages, and php is being very actively developed, I'd be very surprised if people stopped using it.


That's great, but I don't see how support is lacking for RoR. In fact the reason why you need to rely on people copy/pasted snippets of code and tons of random forum posts is testament to the obtuseness of many of the languages features.
Go Back To Programming & Development Topic List
Prev13456Next
Add Reply New Topic New Poll