Anthony Fung (@ant_f_dev) header
Anthony Fung (@ant_f_dev) profile picture

I write about topics in software engineering I’ve picked up as an Angular/C# Web developer. Join my newsletter for weekly stories and development tips.

Joined August 2022
Photo by Anthony Fung (@ant_f_dev)Photo by Anthony Fung (@ant_f_dev)Photo by Anthony Fung (@ant_f_dev)Photo by Anthony Fung (@ant_f_dev)Photo by Anthony Fung (@ant_f_dev)Photo by Anthony Fung (@ant_f_dev)
Creating mouseover/hover effects are a great way to add some interactivity/feedback to icons in your Web app. Here's an intro to doing so with SVG images. open.substack.com/pub/webdev…
15
Maintaining duplicate code is tough. We all try to follow DRY where applicable. But what if the "copies" aren't identical? Depending on the use case, an interface could be the answer. open.substack.com/pub/webdev…
15
Programming to an interface can mean fewer code changes are needed if requirements change. open.substack.com/pub/webdev…
10
'Coding to an interface' is one of the principles in programming. Find out why it’s a good idea in this introduction. open.substack.com/pub/webdev…
11
Ever wondered what unit test coverage is? The latest edition of my newsletter gives an overview and tips on how to get started in C# for free. open.substack.com/pub/webdev…
9
By using factory methods to create subjects in unit tests, you can balance tidiness with functionality, writing code for custom dependencies only in tests that need them.
1
19
Diary of a Web Developer: Using Git to Successfully Push a Modified or Rebased Branch webdeveloperdiary.substack.c…
1
58
Diary of a Web Developer -- The Secret of Tidy Git Repositories: When Best to Merge and Rebase webdeveloperdiary.substack.c…
1
54
Diary of a Web Developer -- The Secret of Tidy Git Repositories: What Merging and Rebasing Mean webdeveloperdiary.substack.c…
1
31
Don’t Underestimate How Much Progress You Have Made, by @ant_f_dev open.substack.com/pub/webdev…
31
Diary of a Web Developer: Made a Mistake in Git? Keep Calm and Hit Undo webdeveloperdiary.substack.c…
32
Diary of a Web Developer: Dynamic Data in the Statically Typed World of C# webdeveloperdiary.substack.c…
1
33
Diary of a Web Developer: 5 Visual Studio Code Extensions to Boost Web Development Productivity webdeveloperdiary.substack.c…
25
There are 92 days left in 2022 Are you on track to reach your annual revenue goal? If not, we need to talk about.... buying triggers
25
24
5
111
Only problem is it wasn't very good. It was better than IE, but still worse than Chrome/Firefox. I remember raising a rendering bug. I'd completely forgotten about it until I got an email 2 years later to say it'd been fixed.
Replying to @dvassallo
“poor” MS. I know it’s a technicality that customers give close to zero crap about, but I was in favor of Edge when they still had a competitive engine to Chromium. Web diversity. Now? It’s just battleground for who owns the most users + data. Not a game that’s rewarding to play.
1
1
Having trouble naming a function? Try writing a sentence or two to describe what it does. Then condense it into something short and meaningful.
Try keeping roughly to an 80-character margin even if you have a wider screen. * It can be easier to read: magazines/newspapers use multiple columns for this reason * If you have tests, you can put them side-by-side with your code
Avoid introducing magic numbers * If a value is used only once, leave a comment next to it * If used more than once, introduce a well-named constant for it
In C# don’t throw Exceptions for normal branching logic – use them to indicate that something has gone wrong. When debugging it's common to turn on breaking at every thrown exception. Using Exceptions instead of an 'if' can cause the debugger to pause unnecessarily.