Everything you stated is developer issue, not a language issue.
You just wrote 4 more paragraphs of developer issues, not language issues. Yes, Wordpress "developers" are the worst but you can also build modern, robust, high performance web applications with PHP7+ and frameworks like Laravel. Blame the developer, not the language.
Most of the "mess" you talk about has been cleaned up in the latest versions. The only thing that still bothers me on a daily basis are the quirky naming conventions and needly/haystack disasters.
If you would remove Drupal, Joomla and WordPress from any ranking index, how big of a slice would PHP still have in the web? I would recon a margin of 5%.
Bullshit argument. People flock to frameworks in any language. How large would Python's share be without Diango/Flask. How much SPAs would be written in vanilla JS if you took out Ember/React/Vue?
Explain what type of website this is. Where is it hosted, what language does it run on, what kind of access do you have, what kind of systems (CMS) does it run on?
You're 100% correct, but the OP is not using a MVC or OOP structure for this tutorial.
In any modern PHP project, each part of the application should have it's own model that holds the database logic, but I was trying to simplify it to 1 pseudo-model and 1 controller to fit this specific example.
In my opinion, this plug&play mentality promotes laziness and breeds bad programmers. We've seen the results of it in the past with the whole left-pad drama and npm packages like isArray.
Frameworks and libraries are great, but using them blindly without understanding them is just bad practice imo.
It's a 3 part video series that shows you how to turn i3 into a sleek, minimal and nice looking WM. I highly suggest you follow it through to the end. If you don't like some of the stuff he did, you can always undo them afterwards, but you'll learn a lot about tinkering with i3 by following the tutorial.
Completely modular. I can strip it down to only the mobo/cpu in less than an hour. Never had another laptop that did this.
Linux runs great on it.
It's amazing for doing small tasks on the road. Reading emails, browse the internet, watch videos, play music, light development, playing small games like Limbo/VVVVVV/Runescape, etc.
Cons:
Some models are prone to overheating and fan whine. The graphics are only Intel HD Graphics 3000, so you shouldnt try to run heavy Adobe software on it.
The standard model has a TN display. I don't find this a problem mysef, but some do.
You just wrote 4 more paragraphs of developer issues, not language issues. Yes, Wordpress "developers" are the worst but you can also build modern, robust, high performance web applications with PHP7+ and frameworks like Laravel. Blame the developer, not the language.
Most of the "mess" you talk about has been cleaned up in the latest versions. The only thing that still bothers me on a daily basis are the quirky naming conventions and needly/haystack disasters.
Bullshit argument. People flock to frameworks in any language. How large would Python's share be without Diango/Flask. How much SPAs would be written in vanilla JS if you took out Ember/React/Vue?
Explain what type of website this is. Where is it hosted, what language does it run on, what kind of access do you have, what kind of systems (CMS) does it run on?
Getting a 'configparser not found' error on Ubuntu.
The $hash is a random SHA1 hash to be used for email activation purposes. It's (again) just poorly named.
You're 100% correct, but the OP is not using a MVC or OOP structure for this tutorial.
In any modern PHP project, each part of the application should have it's own model that holds the database logic, but I was trying to simplify it to 1 pseudo-model and 1 controller to fit this specific example.
That's just bad wording. The $password variable already went through 'password_hash' as this stage. I should use better variable names!
I was using the OP's code for reference. I would write it like this:
Which is secure.
IMO, even if you're not using a fully featured MVC framework, it's generally cleaner to keep all your database logic in 1 file.
You could add file called 'db.php' which holds this code (and all your other database statements):
and then in your create.php, you could write
Yes change it. No it doesn't take long. Do it today.
PDO over mysqli. mysqli_ is just a band-aid solution to the problem mysql_ had.
In my opinion, this plug&play mentality promotes laziness and breeds bad programmers. We've seen the results of it in the past with the whole left-pad drama and npm packages like isArray.
Frameworks and libraries are great, but using them blindly without understanding them is just bad practice imo.
How is that related to the topic at hand?
So you don't give a shit about the quality of the underlying libraries, you just want them to work and deliver the end result they promise?
You sound exactly like my project manager. And I don't mean that as a compliment.
If you're serious about switching to i3, do yourself a favor and watch this series: https://www.youtube.com/watch?v=j1I63wGcvU4
It's a 3 part video series that shows you how to turn i3 into a sleek, minimal and nice looking WM. I highly suggest you follow it through to the end. If you don't like some of the stuff he did, you can always undo them afterwards, but you'll learn a lot about tinkering with i3 by following the tutorial.
Leave if you can. If you have to stick around for some reason, suck it up, write crappy PHP for the time being and leave in 1-2 years.
This is Rofi full screen + opacity which works thanks to Compton. Easy stuff.
https://youtu.be/ARKIwOlazKI?t=32m08s
Old Thinkpad x220.
Pros:
Cons:
End of this list.
Back to top