As I make my way through some tutorials on SymfonyCasts and begin a re-write of my SyntaxSeed website from CodeIgniter to Symfony… I occasionally encounter something that took a bit more struggle than a simple web search. This is one of those tasks.
Symfony gives you some generic built in error pages, for example when you get a 404 missing resource error or a 500 error. When working in your dev environment you don’t see these, you instead get the nice Whoops error pages with extra details. Customizing the error pages requires a few steps.
Continue reading “Custom Error Pages in Symfony Framework”
If you are self-employed in Canada, meaning you’re a freelance developer or operate a small business where the business itself doesn’t report income as a separate entity and pay you a salary… ie the money coming into the business is yours (even if you keep it in a separate bank account), then you must report your business income along side any other source of income when you file your income taxes. So if you still have a regular job, but you freelance on the side – you might have regular income and self-employed income. This applies even if you haven’t registered a business name and just operate as yourself. This also includes the value of barter (trading services with someone) and also sales made outside of Canada (ie if you have American clients or clients in other countries).
Continue reading “Freelancing In Canada: Form T2125”
In my efforts to help a colleague, I discovered that there are few resources for people who are already programmers in other languages to learn PHP. Something that isn’t beginner level, doesn’t explain basic programming concepts… just get to the heart of what makes PHP unique, and some suggested quality resources to learn more.
This is what I’ve written here. It’s a high-level overview of the language, and some vetted resources to get set up and learn more.
Let’s get started…
Continue reading “Learn PHP For Experienced Developers”
A colleague mentioned a new language and serverless environment called Dark (or DarkLang if you don’t want a zillion unrelated search results). It sounded interesting so I created an account to check it out.
Continue reading “DarkLang Intro And First Impressions”
We become developers with the understanding that our mission with the software we create is to meet the needs of users. But what happens when the software we create is being used to change or coerce the behaviour of users, rather than help them work, play and behave the way they want to? What are the ethical considerations of developing software that tries to manipulate users? Where does the profit-driven motivation go too far?
Continue reading “Let’s Talk About: Coercive Software Design”
Coercive: using force to persuade people to do things that they are unwilling to do. (Cambridge Dictionary)
I’ve had a number of people ask me for board game recommendations for couples, families or friends who want to have fun while trapped in the house. My husband and I have a growing collection and a very specific focus on co-operative and indirectly-competitive board games. Here’s a quick write-up and details of our favourites.
Disclaimer – husband & I run on the nerdy side so many of these are not mainstream at all.
Continue reading “Board Games For Couples & Families”
I work on a Ubuntu machine and the easiest way to get a LAMP development environment working was for me to just install Apache, PHP and MySQL. I want my sites to be testable locally with a
So if I visit
Continue reading “Apache Wild-Card Development Sites”
sherriw.dev.test I want it to resolve to a
sherriw/ directory in one place (for example
Let me preface this by saying that this post discusses my own experiences and observations in my life. Your perspective may vary, and what works for me or is a problem for me, may not be so in your life. That’s ok, we’re all different and awesome.
My husband and I are on round 4 (ish) of our attempts to renew our resolutions to find a healthier balance of our phone and online use. As a web developer it’s tempting to almost live online, but at least for us, that’s a fast track to unhappiness. Luckily it hasn’t been an extreme problem- it hasn’t interfered with our careers or parenting or physical health. But there have definitely been some concequences of too much phone use.
Continue reading “Combating Phone Addiction: Try, Fail & Try Again”
Part 1 of this series covers a tour of my 14+ year old legacy CMS called LampLight and it continues with my use of command line code analysis tools to migrate it from PHP v 5.6 to 7.3. In this part I’ll use PHP_CodeSniffer to check my applications compatibility with PHP v 7.3 and beyond.
Let’s not fuss around, and instead dive right into the meat of this post. At the root of my project I run:
Continue reading “Legacy PHP Application: PHP Code Sniffer Compatibility Standard”
phpcs --standard=PHPCompatibility --extensions=php,inc,lib -s --runtime-set testVersion 7.3- .
Part 1 of this series covers a tour of my 14+ year old legacy CMS called LampLight and it continues with my use of command line code analysis tools to migrate it from PHP v 5.6 to 7.3. In this part we’ll continue to use PHP CS Fixer to clean up the code, and will then move on to use PHP Code Sniffer for even more tidying.
My last few uses of PHP Coding Standards Fixer, are to check for PSR1 and PSR2 compliance. These PSRs cover a baseline of code style conventions common among PHP projects.
Continue reading “Legacy PHP Application: PHP CS Fixer & PHP Code Sniffer for PSR1 & PSR2”