Coding
Mocking dependencies vs. mocking the usage of dependencies
Say you have a class A that depends on B and C. You can either inject B and C into A and mock them during testing, or you can factor out the methods inside A Read more…
Say you have a class A that depends on B and C. You can either inject B and C into A and mock them during testing, or you can factor out the methods inside A Read more…
When working on large projects with one codebase you have to set up everything only once. But those of you who do a lot of small projects, how do you cope with it? Do you Read more…
During Christmas, i spent a few days working on a small project: https://meteoritedb.com/ Any feedback or ideas are appreciated !! (I think i’m not breaking the rules. It’s a small personal project and i honestly Read more…
Saying “Haskell has this feature and it allows you to express some common Haskell patterns more succinctly” does not imply “Adding this feature to PHP will allow you to do the same”. Haskell is a Read more…
Mine are: (Best) Named Arguments — I usually like to stick to syntax which is common among the majority of languages I know (multi-lingual), but this looks pretty useful to me. I might try it. Read more…
I’m using Dapper to pull a list of Employee objects with their emails, which are stored in another table. I’m getting an error:System.NullReferenceException: 'Object reference not set to an instance of an object.' When I Read more…
Throwing away Exceptions as a tool is a terrible idea. (“Go away Rust, you’re drunk”) You’ve described several different types of problems in your example code and attributed all of them to … not being Read more…
You can get the digital version for free (Just trade your email) https://www.phparch.com/books/php-development-with-windows-subsystem-for-linux-wsl/ The work is self-recommending. Looking forward to reading it! Just started reading it earlier. Thanks! Any specific reasons on why not using Read more…
I’ve tried lots of different web stuff. Node, Nextjs, React, Svelte, Django, templating engines. I’ve used PHP before too but that was a long time ago. I want to try it again, just haven’t had Read more…
So I would like to enhance my ability in web technologies from html/css to javascript and php. I have two questrions: What is the role of PHP in a website? Is it just used to Read more…