Skip to content
View in the app

A better way to browse. Learn more.

Web Designer Forum

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

Clean coding

Featured Replies

I started coding in a basic text editor and feel I know a reasonable amount about clean code. I felt that I was cheating when editors started coming out. Can't remember the name of one early one, Hot Metal?... Of course Frontpage and DreamWeaver. Now you can't get by without using an editor now, but is the code ever clean that comes out of these things? Well I think I know the answer to that question!! But what do you guys think? Does it really matter. Am I wasting my time cleaning the code up manually? Speeds are so vastly quicker than when I was first coding and every byte saved counted, but nowadays.. ? Does it really matter. Just interested in people's thoughts on the subject. I think if I get some bigger clients I'm really going to have to stop being so anal, and I wonder if it really matters these days.

I do think clean code is important especially if you want to pass the accessibility guidelines as required under the Disability Discrimination Act. eg people with sight impairment need to use screen readers - if your code is not good then the screen readers may not function properly. In any case clean code is easy enough to achieve but if you are using the free CMS progs around then you may have to manually clean it yourself although there are a lot of basic code compliant templates out there that you could start from. I find it is easier to start with my own clean code and just code it myself than try and tidy up the mess caused by the editors used in the commonly used CMS progs. We have our own cms that I can use to bang a basic site together in an hour or so. If you want have a look at our CMS but afraid its not free and does need to be hosted with us but it's fully compliant and very quick and easy to use.

Clean code is paramount in any job where somebody else might need to make adjustments to what your doing, I've been working recently on tidying up glitches in old pages where the previous coder has accidentally left in extra <div> tags - if the code is clean and formatted you can find these errors in minutes, if its a mess and a big page it can take hours.

 

There will always be the odd bug in old pages, it makes sense for companies to allow the time to write good code so that there are fewer mistakes in the first place and when adjustments/fixes need to be made they take as few man hours as possible.

 

I love Notepad++, for some reason I just seem to write tidier code with it, I think DW makes my formatting lazier.

Clean code is very,very important (usually not for clients,they just want site to work) but for me.

Create an account or sign in to comment

Account

Navigation

Search

Search

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.