Jump to content

Recommended Posts

Well I been messing with PHP for some time now and I'm just trying to figure out how some developers code so fast, so well.  Currently I want to rebuild my portfolio site into a cms, but I don't want to waste any time as I have side projects that need to be done.

 

So lets say I wanted to build a basic CMS with these features:

Add News (Edit,etc)

Add Sidebar Widgets (You could think of this as iGoogle Home Page Widgets, just for the sidebar)

Add Custom Pages (Edit,etc..)

Free Downloads (Just free things I have available for DL, add,edit,del)

Portfolio Projects (All the things I did recently, add,edit,etc..)

Manage Comments for news

User System

 

I have a hard time (a slow start up putting things together) starting the actual php because I think to hard to make the code small, easy to edit and fast.

 

What are some good practices to help me create code faster as in organizing code.  (Yes I want to use oop, that makes things also a little slower, yet its cleaner and easier to read.)

Link to comment
https://forums.phpfreaks.com/topic/109679-coding-speed/
Share on other sites

OOP is slower? That's new to me! In fact, I think it'd be faster, considering you have less code bloat.

 

How would you rate yourself, on a scale from 1-10, in PHP knowledge?

 

I think people the people you see design so quickly are playing to their strengths, and not worrying about little details. Set realistic goals. Make a deliverable to yourself every X amount of time, and ensure there's measures in place to make up for any miscomings.

 

I think that will go a long way in to helping you code quickly and efficiently. Everything else is a matter of taste/style.

Link to comment
https://forums.phpfreaks.com/topic/109679-coding-speed/#findComment-562796
Share on other sites

Why Frameworks?  Wouldn't it take longer for me to learn the framework then actually doing the code?

 

Have you tried one yet?  Zend is probably the easiest. . a few hours reading and im sure you will be a 5-10 in php knowledge AND zend framework, its well documented. and has a cool search documentation feature.

 

OOP Slower? No, Setting up the right amount of classes, and planning out the classes efficiently is what gets me.  Theres different ways to do the same thing, I think I just think to hard on the basics.

I'd rate my self a 5/6 out of 10 in php.

 

Dont worry about the planning out all the classes. . there are tons of people who did that for you.

 

CodeIgnitor

Symfony

Zend Framework

CakePHP

 

 

Link to comment
https://forums.phpfreaks.com/topic/109679-coding-speed/#findComment-562801
Share on other sites

I think those frameworks are a bit heavy for a basic portfolio.

 

Honestly, you should have a prototype up in less than 5 hours.

 

I think everyone has their weak point. I could have a solid back end but, ask me to write the UI and I could spend years perfecting it and it'd still look like a 5 year old took a shit on a piece of paper and handed it in as a drawing.

Link to comment
https://forums.phpfreaks.com/topic/109679-coding-speed/#findComment-562808
Share on other sites

Symphony is allot different to Zend. Zend IMO is more like a library than a framework, you can simply pick and choose what you want to use and ignore the rest. Heck, you don't even need to use there controllers to create your MVC. Symphony and most other frameworks force you into using there MVC implementation.

Link to comment
https://forums.phpfreaks.com/topic/109679-coding-speed/#findComment-564321
Share on other sites

Symphony is allot different to Zend. Zend IMO is more like a library than a framework, you can simply pick and choose what you want to use and ignore the rest. Heck, you don't even need to use there controllers to create your MVC. Symphony and most other frameworks force you into using there MVC implementation.

 

I think that is why I like Zend over the others I have used.  You dont HAVE to use everything it offers or even use their MVC.  Just like you said tho, its mor eof a library. . hell, isnt the folder name its packaged with named library?  haha.  Zend all the way.

 

I do like cake and symphony for its ability to create a basic template to start with.  "Scaffolding" but really only useful for administrative type sites, well for what I have done with them.

Link to comment
https://forums.phpfreaks.com/topic/109679-coding-speed/#findComment-564415
Share on other sites

I code very quickly with very efficient code. I use my own framework. For a portfolio you will want to use other frameworks and there are plenty out there.

 

If you ever get the chance, try and build your own framework. You understand it better and if you ever need to make any changes you know where to look. Everything is so much quicker!

 

:)

Link to comment
https://forums.phpfreaks.com/topic/109679-coding-speed/#findComment-564992
Share on other sites

  • 2 weeks later...

Coding with speed and coding with structure are 2 different things.  I type 120 words per minute and can knock "Code" out lightning fast.  But that does me no good when it comes to organization and correct structure.  In order to be able to work code up fast..as well as accurately it requires a certain level of what is called "Re-usability".  Needing to do something 10 times but only having to write it once is really good Re-usability.  Thus the idea of frameworks come into place.  A way for you to have classes that you might end up re-using throughout a given project (and future projects if you carry the framework with you) is very important.  Not having a framework requires you to have to redo the initial setup everytime.

 

If you have a good framework then it's simply work up a layout for the site/application..integrate it into your templating system..and your done.  Site setup and you can just start filtering in content and thrownig in programming (in an organized manner.  Look up Cakephp, Codeigniter, and google some stuff like "PHP, Correct programming structure"...and "Fast PHP development".  You'll get enough content to give you reading material for a month but really digging in and breaking some of those programs up and seeing how major companies with giant applications that are years in the making..that's what is going to really sink in what it means to keep code organized, re-usable, and easily accessible.

Link to comment
https://forums.phpfreaks.com/topic/109679-coding-speed/#findComment-573626
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.