Earlier quoted context omitted.
It really depends on the beginner I guess. It seems like what kemayo is saying is that there are beginner programmers and then there are people who don't want to be a programmer at all really, but might like the idea of having a dynamic year string printed in the footer of their page. Those of us who have been working with computers for a long time - particularly those of us who write code - too easily forget what it…
From the perspective of the "average" professional programmer with a CS degree the vast majority of all programmers, even those who get paid to do it, are rank and utter beginners. Most programmers cannot solve fizzbuzz. Most programmers don't grok recursion, and have trouble with iteration from time to time. If you were to look at a graph of # of programmers within different skill level bins the "beginner" bin would…
PHP needs to die. What will replace it?
141–150 of 160 posts
Re: PHP needs to die. What will replace it?
#142Re: PHP needs to die. What will replace it?
#143Earlier quoted context omitted.
I take it you have never tried to get major changes to core server infrastructure approved at large bureaucratic institutions. Writing your code in php is often orders of magnitudes faster, easier and cheaper than getting a decent RoR setup installed.
That's your experience, and highly subjective. And yes, I deploy code to dozens of enterprise servers for a global company. And that company is looking into Rails, not PHP.
Re: PHP needs to die. What will replace it?
#144Re: PHP needs to die. What will replace it?
#145Earlier quoted context omitted.
That's your experience, and highly subjective. And yes, I deploy code to dozens of enterprise servers for a global company. And that company is looking into Rails, not PHP.
Looking into rails? What are they using currently?
Re: PHP needs to die. What will replace it?
#146Earlier quoted context omitted.
No basic string manipulation, only RE-based stuff. One-based indices instead of zero-based.
> No basic string manipulation, only RE-based stuff It's trivial to write, there are lots of libraries that do this. I've worked on a lot of string processing code in Lua. It's not as easy as Perl or Ruby but it's not by any means hard. > One-based indices instead of zero-based. Other than violating the expectations of people used to other C-like languages, this is not in any way even remotely a problem. I don't know…
One-based indices stop being a "minor detail" as soon as you realize that out-of-bounds indexing doesn't fail, but returns nil. Time to re-examine all of your code. Combine this with the natural mathematical awkwardness of one-based indices and it can get really frustrating, really fast.
I had to do Lua for some game design stuff a few years ago, and these were the two things which stuck out at me almost immediately and bothered me during the entire ordeal. Maybe I've been spoiled by Python, Perl, Java, C++, C, and other languages, but it's deeply frustrating how wrong Lua is about this.
Re: PHP needs to die. What will replace it?
#147Earlier quoted context omitted.
No basic string manipulation, only RE-based stuff. One-based indices instead of zero-based.
> No basic string manipulation, only RE-based stuff It's trivial to write, there are lots of libraries that do this. I've worked on a lot of string processing code in Lua. It's not as easy as Perl or Ruby but it's not by any means hard. > One-based indices instead of zero-based. Other than violating the expectations of people used to other C-like languages, this is not in any way even remotely a problem. I don't know…
One-based indices stop being a "minor detail" as soon as you realize that out-of-bounds indexing doesn't fail, but returns nil. Time to re-examine all of your code. Combine this with the natural mathematical awkwardness of one-based indices and it can get really frustrating, really fast.
I had to do Lua for some game design stuff a few years ago, and these were the two things which stuck out at me almost immediately and bothered me during the entire ordeal. Maybe I've been spoiled by Python, Perl, Java, C++, C, and other languages, but it's deeply frustrating how wrong Lua is about this.
Re: PHP needs to die. What will replace it?
#148Earlier quoted context omitted.
> No basic string manipulation, only RE-based stuff It's trivial to write, there are lots of libraries that do this. I've worked on a lot of string processing code in Lua. It's not as easy as Perl or Ruby but it's not by any means hard. > One-based indices instead of zero-based. Other than violating the expectations of people used to other C-like languages, this is not in any way even remotely a problem. I don't know…
These are pitfalls and usability concerns. Languages that make you actively work against the nature of the language are not good; programming languages should be making this stuff easy. One-based indices stop being a "minor detail" as soon as you realize that out-of-bounds indexing doesn't fail, but returns nil. Time to re-examine all of your code. Combine this with the natural mathematical awkwardness of one-based i…
> Maybe I've been spoiled by Python, Perl, Java, C++, C, and other languages
Probably. :)
One of Lua's main goals is to provide a language easy for beginners to use for small tasks. This affects its design in some other rather annoying ways (like for example, variables being global by default rather than local) but they were pretty carefully made decisions.
The context of this thread is, "what could be a good replacement for PHP?" I think because Lua aims to be easy for inexperienced programmers, it's a rather good choice, even if some of its characteristics can be surprising or annoying to established developers experienced with other languages.
Re: PHP needs to die. What will replace it?
#149Earlier quoted context omitted.
The problem is not that "two different dudes implemented it. At different times. Probably, from different continents. They didn't notice it at the time". Is is that it was allowed to be added to the core library without it being questioned and fixed before it was too late to fix for compatibility reasons. That is the ultimate problem. I would rather a language or framework or library move slowly and correctly than ad…
You're not getting what I'm saying. Even if you are super careful, mistakes will be made. What's important is how you deal will them once they're there. PHP chooses to be ugly, over shafting its user-base by deprecating shit left and right. I like that. It tells me I can use it in a production setting.
Re: PHP needs to die. What will replace it?
#150Earlier quoted context omitted.
Note that python3 still doesn't have widespread adoption, because there are still widely used libraries lacking support for it.
But in the coming future it will. All major libraries and frameworks are going to port over to python 3. But we are missing the point here. PHP could need a cleanup from the ground up even if they have to break a lot of stuff this could help the language to evolve.
Don't bet on it. It has been too many a years already, and no dice (or minimal dice)