(Ben Nadel) One feature that I really appreciated in AngularJS was how easy it was to define a “track by” property in the ngRepeat directive.
Tag: Development
How to parse string dates with a two digit year and split on the right century in C#
(Scott Hanselman) So you’ve been asked to parse some dates, except the years are two digit years. For example, dates like “12 Jun 30” are ambiguous…or are they?
PHP Error Log Basics
(Gaege Root) When developing PHP applications, error logs tend to be underutilized due to their apparent complexity. The reality is that PHP error logs are extremely helpful, especially when configured and used properly.
Using Dynamic Template-Driven Forms In Angular 7.2.7
(Ben Nadel) In Angular, there are two types of forms: template-driven forms and reactive forms. I’ve only ever used template-driven forms. And, I’ve never run into a forms-based problem that I couldn’t solve with the template-driven paradigm.
Dealing with Databases (and Data) in Docker
(Peter Vogel) There are lots of ways to handle databases in a containerized environment like Docker. Here’s how to create SQL Server in a container, how to load it with the data you want and how to integrate that container into whatever project needs it. Be warned: Some PowerShell is used.
Use Yield Instead of a List in C# for Iterations on Collections
(Srinath M S) You can use the yield keyword to hold and return the data to the caller.
Creating a Custom Color Picker in .NET, Part 1: The Color Wells
(Hannes DuPreez) Every now and then, you sit back and think you can relax. With me, this doesn’t happen often. But, when it does, my body might be taking a break, but my ever-active brain does not. Yesterday was such a day, or rather: last night was such an occasion. Even when I am sleeping, I am no
EditorConfig code formatting from the command line with .NET Core’s dotnet format global tool
(Scott Hanselman) “EditorConfig helps maintain consistent coding styles for multiple developers working on the same project across various editors and IDEs.”
Harnessing My Social Anxiety Using A Countdown Timer In Vue.js 2.6.7
(Ben Nadel) For most of this past week, I’ve been hanging out with over 700 of the most amazing people down in Phoenix Arizona at the second InVision IRL (In Real Life) conference.
Designing with the Dependency Inversion Principle
(Peter Vogel) The Dependency Inversion Principle says “the interface belongs to the client.” As I’ve said elsewhere, adopting this principle means a reversing of the way applications used to be built: Design the database, build the objects to maintain the tables, wrap a UI around those objects and t