CodingPHP5/MySQL Book Question

 

Press Ctrl+Enter to quickly submit your post
Quick Reply  
 
 
  
 From:  af (CAER)  
 To:  Peter (BOUGHTONP)     
41227.10 In reply to 41227.9 
Oh, yeah, was on my phone, and hadn't paid attention to her signature before.

Anyway, what I was getting at was that although it has a low barrier to entry in that you can just open a text editor and write some trivial code and it all just magically works, the lack of any kind of structure makes it quickly get messy once you move beyond trivial stuff. That's what I meant by 'deceptively' – it lures you in with initial ease of use, then slaps you in the face with its madness.

I'm not really sure if it's an advantage or not, tbh. On the one hand, it's an early short feedback loop, and is conceptually simple enough that beginners can get good results and be encouraged to continue to more advanced things. On the other hand, without proper guidance, those beginners could quite easily end up in a nightmare tangle of logic and presentation.

JavaScript: quite.
andyf.me logo
0/0
 Reply   Quote More 

 From:  Drew (X3N0PH0N)  
 To:  af (CAER)     
41227.11 In reply to 41227.10 
Quote: 
hadn't paid attention to her signature before.
She should make it bigger.
0/0
 Reply   Quote More 

 From:  Matt  
 To:  af (CAER)     
41227.12 In reply to 41227.10 
the lack of any kind of structure makes it quickly get messy once you move beyond trivial stuff. That's what I meant by 'deceptively' – it lures you in with initial ease of use, then slaps you in the face with its madness.

Assuming you mean project structure, exactly the same can be said of any program language, including Ruby, Python and JavaScript (and especially JavaScript). If you're a terrible programmer, you're going to program terribly in any language you choose.

Also, with an enforced structure comes inflexibility to do exactly what you want, surely?

doohicky

0/0
 Reply   Quote More 

 From:  af (CAER)  
 To:  Matt     
41227.13 In reply to 41227.12 
The same can't be said for Ruby and Python so much because there are very clearly recommended choices for frameworks, that encourage good project structure.

JavaScript, well, that depends. There's plenty of good frameworks around for client-side JS, but like PHP, there's no apparent (to a beginner) need to use them, and it's simple to get results without them, especially if you use jQuery. This is, clearly, why there's so much terrible JS code around. If you're learning JS to use on the server, Express is probably the default framework recommendation, and at least nudges you towards keeping things organised.
Quote: 
with an enforced structure comes inflexibility to do exactly what you want, surely?
You say that like it's a bad thing. Beginners don't know enough to avoid the pitfalls, so some structure is helpful to keep them on the rails.
andyf.me logo
0/0
 Reply   Quote More 

 From:  CHYRON (DSMITHHFX)  
 To:  af (CAER)     
41227.14 In reply to 41227.13 
There's a steep learning curve that can be daunting and downright discouraging, so easy wins can be important. Also there's many tutorials and online stuff that present contradictory methods, and new versions, security patches &ct. keep coming out to obsolete 'accepted' methods. It's all a bit more complicated than you make it out to be.

----
"Ninety percent of Americans use the Internet. The other ten percent use the banjo."
0/0
 Reply   Quote More 

 From:  Matt  
 To:  af (CAER)     
41227.15 In reply to 41227.13 
But they're frameworks, they're not inherent of Python and Ruby. You have to seek those out to use them. Scratch that, you have to know you're looking for a framework in the first place before you even go looking for one. I'm pretty certain anyone starting out in Python or Ruby could write the same sort of really bad code as is possible in PHP just by following a few web tutorials and then expanding upon them.

If you want PHP frameworks to read about, have a look at Symfony 2 and Doctrine (an ORM for PHP), Laravel and Phalcon too and to a lesser extent (because it insists on still supporting PHP4) Codeigniter. PHP isn't the raw, brash scripting language it used to be, it has made huge leaps in encouraging interoperability in the last 3~4 years* especially through the PHP FIG and the PSR standards which are designed to make sure your code is interoperable with that of others.

* Trying to type the tilde, I've just found out my Girlfriend has changed my Keyboard layout to US English.

doohicky

0/0
 Reply   Quote More 

 From:  af (CAER)  
 To:  CHYRON (DSMITHHFX)     
41227.16 In reply to 41227.14 
Well sure, nothing is ever as simple as it's usually made out to be, and I know how confusing a full framework can be at first (lots of new concepts you kind of need to understand before you can do anything), so it's nice to have what's basically a glorified templating language "just work" with no setup.

I understand, too, that most people don't even need a proper framework, that they just want to add a bit of dynamism to a few pages and aren't actually making a web app.
andyf.me logo
0/0
 Reply   Quote More 

 From:  DeannaG (CYBATRON)   
 To:  af (CAER)     
41227.17 In reply to 41227.8 
Why do I want to learn PHP and MySQL?

First, I'd like to be able to help with Beehive and it's development more in the future.

Another reason is most of the stuff we use is done in PHP and MySQL. So, I'd also like to know what I'm looking at when I'm poking around in them as well.

I'm not the sharpest tack in the pack, but I'm not too thick to learn either, and I do want to learn.  :-) I've already got HTML and CSS pretty pat. PHP and MySQL are next, then maybe I'll start on something else. We'll just have to see what happens.  :-)

Cybatrons Free Network: Where Free isn't just a word!
A free hosting network run by people for people!
Free hosting for Beehive or PHPBB forums with Ajax Chat.
Need a nice place to build your online community?
Well then check out the CFN member sites!
CFN Beehive Styles Gallery

 

0/0
 Reply   Quote More 

 From:  af (CAER)  
 To:  DeannaG (CYBATRON)      
41227.18 In reply to 41227.17 
Aye, I realise now why you'd want to learn, sorry :) Honestly, despite my general negativity towards PHP, it's still encouraging to see people willing to learn software development.
andyf.me logo
0/0
 Reply   Quote More 

 From:  DeannaG (CYBATRON)   
 To:  af (CAER)     
41227.19 In reply to 41227.18 
No worries and thanks!  :-)

Cybatrons Free Network: Where Free isn't just a word!
A free hosting network run by people for people!
Free hosting for Beehive or PHPBB forums with Ajax Chat.
Need a nice place to build your online community?
Well then check out the CFN member sites!
CFN Beehive Styles Gallery

 

0/0
 Reply   Quote More 

Reply to All    
 

1–19

Rate my interest:

Adjust text size : Smaller 10 Larger

Beehive Forum 1.5.2 |  FAQ |  Docs |  Support |  Donate! ©2002 - 2024 Project Beehive Forum

Forum Stats