The Wiert Corner – irregular stream of stuff

Jeroen W. Pluimers on .NET, C#, Delphi, databases, and personal interests

  • My badges

  • Twitter Updates

  • My Flickr Stream

  • Pages

  • All categories

  • Enter your email address to subscribe to this blog and receive notifications of new posts by email.

    Join 1,854 other subscribers

Archive for 2020

Our Intuition Says… Instead, Try… – Hacker Noon

Posted by jpluimers on 2020/02/14

Recommended 2 minute reading: [WayBackOur Intuition Says… Instead, Try… – Hacker Noon.

It so much remind me of two proverbs. An ancient Chinese one where I only have the Dutch translation for (“Heeft U haast? Ga dan zitten”) that tells you to “sit down” when hurried and an even nicer Swedish one “Skynda långsamt” which literally translates into “Hurry slowly”.

When you’ve seen something work, you tend to view it as more “intuitive”. It’s easy to forget how counterintuitive it might have felt…

Via:

–jeroen

Read the rest of this entry »

Posted in Agile, Development, Software Development | Leave a Comment »

Use the Visual Studio Code mssql extension for SQL Server | Microsoft Docs

Posted by jpluimers on 2020/02/13

Since I really want to switch most of my SSMS usage to a tool being less resource intensive, as a truckload of my work is just running scripts, not browsing through data: [WayBackUse the Visual Studio Code mssql extension for SQL Server | Microsoft Docs

This tutorial shows how to use the mssql extension for VS Code. This extension allows you to edit and run Transact-SQL scripts in VS Code.

This will also make it a lot easier to run my code from a Mac.

–jeroen

Posted in .NET, Database Development, Development, Software Development, SQL Server, Visual Studio and tools, vscode Visual Studio Code | Leave a Comment »

When a team uses IntegrationTest – always ask what they mean with the term

Posted by jpluimers on 2020/02/13

Since Integration Tests have been around since the 1980s (yes, that long!), better ask what they mean in your teams.

If they are broad, you might want to re-consider and switch to narrowly scoped ones (but mind your pace).

A while ago, I landed another team, they were doing various kinds of test, but  nobody had a good definition of which was what, so I dug up the below article.

Integration tests see if independently developed units of software work correctly when connected. Traditionally broad they are now better narrowly scoped.

Source: [WayBack] IntegrationTest

–jeroen

Posted in Agile, Development, Software Development, Unit Testing | Leave a Comment »

Reminder to self: be aware of implicit setup/tear down code in methods

Posted by jpluimers on 2020/02/13

If a part of a method requires implicit setup/tear-down code (for instance when using managed types like arrays, strings, etc), especially in rarely taken execution paths, then consider putting that code in a separate method.

I bumped into this recently, and found out it does not just hold for Delphi, it can happen in other languages too.

A Delphi example I found back is this one: [WayBackDelphi Corner Weblog: Speed problems caused by code that never ran.

The problem with Delphi is that the language does not have local scope (variables are at the start of the method) which means the penalty is for the full method.

I bumped into this in C# where a piece of legacy code had the variables declared away from the block where they finally were used.

This historically grew, because originally they were used in more placed of the code.

The refactoring limiting the scope just never put the declaration close to the usage hence violating the proximity principle.

Via: [WayBack] Ouch! Code that doesn’t get executed can still cause other code in the same procedure to become much slower. Of course, in retrospect, once you know the… – Thomas Mueller (dummzeuch) – Google+

–jeroen

Posted in .NET, Delphi, Development, Software Development | Leave a Comment »

Alex Thissen @ Techorama Netherlands 2018: Building real world production-ready Web API’s with .NET Core

Posted by jpluimers on 2020/02/12

[WayBack] Alex Thissen @ Techorama Netherlands 2018: Building real world production-ready Web API’s with .NET Core

Follow [WayBack] Alex Thissen(@alexthissen) on Twitter

Pictures taken during session (likely in reverse order; needs cleanup of duplicates/blurs).

Many more [WayBackTechorama 2018 Netherlands stuff at:

More pictures I took during sessions:

They are in reverse order of the what I attended of the [WayBack] Techorama Netherlands 2018: Schedule: Pathé, Ede, The Netherlands – See the full schedule of events happening Oct 2 – 3, 2018 and explore the directory of Speakers & Attendees.

Sessions I could archive, or find recordings of:

--jeroen

Read the rest of this entry »

Posted in .NET, .NET Standard, ASP.NET, Conferences, Development, Event, Software Development | Leave a Comment »

Michael Stapelberg: This soldering reference card from @adafruit is the most to-the-point explanation of good soldering practices I have ever seen

Posted by jpluimers on 2020/02/12

Via [WayBack] Michael Stapelberg on Twitter: This soldering reference card from @adafruit is the most to-the-point explanation of good soldering practices I have ever seen:

Adafruit has some cool reference cards published as PDF files:

I like these the most:

–jeroen

Read the rest of this entry »

Posted in Development, Hardware Development, LifeHacker, Power User | Leave a Comment »

Delphi desktop settings: .DST naming limitations and content similarity to .DSK files

Posted by jpluimers on 2020/02/12

Based on [WayBack] Bummer, cannot save a Delphi desktop named “Default Layout – right 3/4” – at load this one seems to be restored, but the list does not contain that entry. – Jeroen Wiert Pluimers – Google+:

–jeroen

Posted in Delphi, Development, Software Development | Leave a Comment »

Catch Me If You Can: LLVM back-end cannot catch all exceptions

Posted by jpluimers on 2020/02/11

[WayBack] Catch Me If You Can:

the LLVM backend cannot return from a hardware exception (like AV) if the hardware exception is raised directly within a try...except block. It can only safely return if there is a function (method) call within the try...except block.

Via and by [WayBack] Dalija Prasnikar – Google+

–jeroen

Posted in Delphi, Development, Software Development | 1 Comment »

The Hard Thing About (Not So) Hard Things – John Cutler – Medium

Posted by jpluimers on 2020/02/11

Long read, but worth it: [WayBackThe Hard Thing About (Not So) Hard Things – John Cutler – Medium.

TL;DR: if you think these are hard, try them by reading the article:

Via: [WayBack] “what we call “hard” is often indicative of fear, lack of safety, lack of support, and limited ability to practice.” – Marjan Venema – Google+

–jeroen

Posted in Agile, Development, Software Development | Leave a Comment »

Is there a keyboard shortcut to go to the next/previous compiler error in the current …

Posted by jpluimers on 2020/02/11

Via: [WayBack] Is there a keyboard shortcut to go to the next compiler error in the current source file? – Jeroen Wiert Pluimers – Google+:

Primož Gabrijelčič:
Alt-F7, Alt-F8 IIRC

And indeed, it is sort of documented as of Delphi 2007 for “Message View”, but appears to be a much older shortcut:

I also completely forgot the compiler output is indeed a “Message View”.

–jeroen

Posted in Delphi, Development, Software Development | Leave a Comment »