So, we all regularly create backups of important data, right? Right. Well, at least I hope you do. For your personal data as well as any company data you are dealing with. It is fairly easy and straightforward to create e.g. a MySQL backup on a server, zip it up and always keep the last 10 days as copies. However, what happens in case your whole server’s disks have an unrecoverable crash?
Domain Driven Design (DDD) is an influential book by Eric Evans from 2004 - sometimes also referred to as “the big blue book”. This blog post summarizes some of my own understanding of the book and gives you an introduction to domain driven design. Important definitions Domain The domain is the area in the real world which we are writing a computer program about. Model The model is our representation of our domain.
This is a quick review of some important parts of the book “Clean Code: A Handbook of Agile Software Craftsmanship” by Robert C. Martin. Advantages of clean code Better use of your time: Code is read a lot, you forget things, so clean code helps you quickly grasp what the code did. Easier onboarding: Getting co-workers up to speed is much easier if the code base is clean. Easier debugging: Others can help you out, since the code is understandable, even non-programmers like a project manager might be able to spot things.
Rewriting URLs using mod_rewrite Every so often as a web developer, you might have to write a redirect of some URLs to some other ones to an .htaccess file. If you remember these tips here, you will probably have most of the stuff you need: Redirect a specific URL to another URL Redirect 301 "/old-page.html" "/new-page.html" 301 here means it is a permanent redirect. Over time Google and other search engines will then replace the old URL with the new one in their index.
Follow me on twitter! Follow @mpaepper