Main Content
Code quality counts Archive - Originally posted on "The Horse's Mouth" - 2006-11-26 07:41:29 - Graham Ellis
We're celebrating Geekmas this weekend ... and we've got a full place. Plus others who are coming in for the day. Really good session yesterday on the good DESIGN of an interactive (scripted) web site that "mines" user information to give a tailored presentation, and a great intro by Paddy to Python's doctest module which I'll be pushing rather more on courses that are coming up. Over all, the theme of the day was application and code robustness, testing maintainability and shere quality - utterly important topics which can so easily be overlooked in the mad rush to get anything working.
Some other articles
Y116 - Applying OO design techniques and best practise Defining an object that is a modified standard type in Python How to avoid too many recalculations within an object We not only teach PHP and Python - we teach good PHP and Python Practice! Really Simple Class and Inheritance example in Python Inheritance, Composition and Associated objects - when to use which - Python example Tips for writing a test program (Ruby / Python / Java) Plan your application before you start How do I set up a constant in Python? Testing code in Python - doctest, unittest and others Alpaca Case or Camel Case Good Programming practise - where to initialise variables This article Build on what you already have with OO Python - block insets help with documentation Think about your design even if you don't use full UML Code and code maintainance efficiency S154 - Designing an SQL Database System FileMaker Day to Unix Time conversion Databases - when to treat the rules as guidelines Blowing our own trumpet - MySQL resources SQL - Data v Metadata, and the various stages of data selection Delegate Question - defining MySQL table relationships as you create the tables Images in a database? How big is a database? (MySQL) MySQL - licensing issues, even with using the name What a difference a MySQL Index made More HowTo diagrams - MySQL, Tomcat and Java Database design for a shopping application (MySQL) MySQL - table design and initial testing example This article Display an image from a MySQL database in a web page via PHP Databases needn't be frightening, hard or expensive Database design - get it right from first principles MySQL - an FAQ MySQL - a score of things to remember Oops - I got my initial database design wrong Binary Large Objects or bars MySQL - Pivot tables R116 - Security Issues. Private, Protected, Public in Ruby. What about interfaces and abstract classes in Ruby? Tips for writing a test program (Ruby / Python / Java) This article P711 - An Introduction to Standards in Perl Learning to program - comments, documentation and test code Perl - making best use of the flexibility, but also using good coding standards A long day in Melksham ... Security considerations in programming - what do we teach? Designing your data structures for a robust Perl application About dieing and exiting in Perl Well structured coding in Perl A short Perl example Advanced Python, Perl, PHP and Tcl training courses / classes Dont just convert to Perl - re-engineer! Perl and Shell coding standards / costs of an IT project Bathtubs and pecking birds Maintainable code - some positive advice KISS - one action per statement please - Perl This article How to debug a Perl program Python - block insets help with documentation Satisfaction of training H115 - Designing PHP-Based Solutions: Best Practice Real life PHP application using our course training MVC example Using an MVC structure - even without a formal framework Learning to program - comments, documentation and test code We not only teach PHP and Python - we teach good PHP and Python Practice! Even early on, separate out your program from your HTML! Filtering PHP form inputs - three ways, but which should you use? PHP sessions - a best practice teaching example Injection Attacks - PHP, SQL, HTML, Javascript - and how to neutralise them Separating program and artwork in PHP - easier maintainance, and better for the user How to build a test harness into your PHP Not just a PHP program - a good web application Adding a newsfeed for your users to a multipage PHP application Improving the structure of your early PHP programs Refactoring - a PHP demo becomes a production page Defensive coding techniques in PHP? PHP Techniques - a workshop Short and sweet and sticky - PHP form input Software to record day to day events and keep an action list Efficient PHP applications - framework and example A story about benchmarking PHP Ordnance Survey Grid Reference to Latitude / Longitude Converting from postal address to latitude / longitude Controlling and labelling Google maps via PHP Using a MySQL database to control mod_rewrite via PHP Easy handling of errors in PHP Resetting session based tests in PHP Drawing hands on a clock face - PHP Painting a masterpiece in PHP Good Programming practise - where to initialise variables Back button - ensuring order are not submitted twice (PHP) Learning to write secure, maintainable PHP Maintainable code - some positive advice This article Global, Superglobal, Session variables - scope and persistance in PHP PHP - good coding practise and sticky radio buttons Reporting on the 10 largest files or 10 top scores Giving the researcher power over database analysis Merging pictures using PHP and GD Robust checking of data entered by users A year on - should we offer certified PHP courses Code and code maintainance efficiency Putting a form online Crossfertilisation, PHP to Python Short underground journeys and a PHP book G906 - Programming Standards Programming Standards in Lua Getting it right from the start - new programmers Alpaca Case or Camel Case Looking for a practical standards course Perl and Blackberries PHP - Sanitised application principles for security and useability Selling curry to the chinese takeaway This article Sudoku helper or sudoku cheat Should I use structured or object oriented? More to programming than just programming Programming in isolation C239 - Putting it all together When do I use the this keyword in C++? Test driven development, and class design, from first principles (using C++) Learning to program - comments, documentation and test code Reading files, and using factories to create vectors of objects from the data in C++ C++ - unknown array size, unknown object type. Help! Strings, Garbage Collection and Variable Scope in C++ Using C and C++ functions in the same program - how to do it Further C++ material - view new or old Make and makefiles - a commented example to help you learn Multiple Inheritance in C++ - a complete example Compile but do not run PHP - syntax check only Good Programming practise - where to initialise variables This article C++ - just beyond the basics. More you can do Build on what you already have with OO