This article was published over a year ago, so please be aware that some content may be out of date.
Tidying Tips
In a post called The Life Changing Magic of Tidying Up Code, Kent Beck outlines his philosophy on cleaning up code. The article results in a short list of easy-to-follow rules, which I'm sure he would agree are there to be broken.
In a post called The Life Changing Magic of Tidying Up Code, Kent Beck outlines his philosophy on cleaning up code. The article results in a short list of easy-to-follow rules, which I'm sure he would agree are there to be broken.
- If it’s hard, don’t do it
- Start when you’re fresh and stop when you’re tired
- Land each session’s work immediately
- Two reds is a revert
- Practice
- Isolate tidying
What To Tidy is a follow-up post in which Kent goes on to describe specific patterns to look out for.
Laravel views allow you to pass data to a view in a number of different ways. In this article, I'll go over four methods and describe the pros and cons for each one.
This Laravel quick tip will show you how to make your code more readable and expressive by replacing http status code magic numbers with calls to static constants.