PhotoDune

Ugly Code vs. Organized Code

656 posts
  • Has been a member for 4-5 years
  • United States
  • Bought between 10 and 49 items
  • Exclusive Author
Jar says

My code is very ugly and I’m not entirely sure what ‘organized’ code really looks like. Could somebody post an example? Also, are there any features in programs like Dreamweaver or Notepad++ that will automatically organize it neatly? It just seems like something that would be in the programs.

656 posts
  • Has been a member for 4-5 years
  • United States
  • Bought between 10 and 49 items
  • Exclusive Author
Jar says

(can’t edit first post)

Nevermind, found the TextFX Tidy HTML thing in Notepad++!

371 posts
  • Bought between 1 and 9 items
  • Exclusive Author
  • Has been a member for 3-4 years
  • Referred between 10 and 49 users
  • Sold between 5 000 and 10 000 dollars
  • United Kingdom
QwibbleDesigns says

Basically, white space, indenting, new lines, and commenting start and closing of major div’s =)

For css, pick a format of coding, and stick to it throughout your code. Different people have different styles.

226 posts
  • Bought between 1 and 9 items
  • Exclusive Author
  • Has been a member for 3-4 years
  • Referred between 10 and 49 users
  • Russian Federation
  • Sold between 1 000 and 5 000 dollars
chipree says

I use netbeans php version.. and with alt+shift+t it organized php,css, javascript, html… php in html… it’s just wonderful…. Does not load as fast as notepad++ but does it’s job very well … I really don’t know any other better IDE …

2314 posts
  • Repeatedly Helped protect Envato Marketplaces against copyright violations
  • Author had a Free File of the Month
  • Bought between 10 and 49 items
  • Europe
  • Exclusive Author
  • Has been a member for 4-5 years
  • Referred between 100 and 199 users
+1 more
CreativeMilk says

Dreamweaver has an function for this but i cant remember which one it was…...

226 posts
  • Bought between 1 and 9 items
  • Exclusive Author
  • Has been a member for 3-4 years
  • Referred between 10 and 49 users
  • Russian Federation
  • Sold between 1 000 and 5 000 dollars
chipree says
Dreamweaver has an function for this but i cant remember which one it was…...

Netbeans is FREE and I think much better for a coder ;)

2314 posts
  • Repeatedly Helped protect Envato Marketplaces against copyright violations
  • Author had a Free File of the Month
  • Bought between 10 and 49 items
  • Europe
  • Exclusive Author
  • Has been a member for 4-5 years
  • Referred between 100 and 199 users
+1 more
CreativeMilk says
Dreamweaver has an function for this but i cant remember which one it was…...
Netbeans is FREE and I think much better for a coder ;)

I have taken a look at this think but i see the word java :S i really hate to use java, makes my pc goes…..........blipblip :P

530 posts
  • Bought between 100 and 499 items
  • Croatia
  • Exclusive Author
  • Has been a member for 4-5 years
  • Referred between 50 and 99 users
  • Sold between 5 000 and 10 000 dollars
darius9000 says
Dreamweaver has an function for this but i cant remember which one it was…...

commands -> apply source formatting

2314 posts
  • Repeatedly Helped protect Envato Marketplaces against copyright violations
  • Author had a Free File of the Month
  • Bought between 10 and 49 items
  • Europe
  • Exclusive Author
  • Has been a member for 4-5 years
  • Referred between 100 and 199 users
+1 more
CreativeMilk says
Dreamweaver has an function for this but i cant remember which one it was…...
commands -> apply source formatting

Ow now i remember it, thanks!! :)

240 posts
  • Bought between 10 and 49 items
  • Canada
  • Exclusive Author
  • Has been a member for 4-5 years
rarepearldesign says

If you have trouble reading it, other people will too. Once you can quickly scan the code and smile with delight…you’ve got clean code (other than the actual code which could still be terrible bad).

I use Aptana Studio 2.0 for my PHP development and Visual Studio 2008/2010 for C# development. I never need the tidy feature because I format/comment as I go for my own sanity.

by
by
by
by
by