Mssql extension adds Object Explorer and IntelliCode to VS Code

Pretty neat stuff, although the SQL command line still is a bit “raw”.  Going to explore how this combines with git versioning, because proper VCS for SQL is important!

The mssql extension for Visual Studio Code is the official SQL Server extension that supports connections to SQL Server and adds a rich editing experience for T-SQL in Visual Studio Code.

Source: Mssql extension for Visual Studio Code now has Object Explorer and IntelliCode – SQL Server Blog

Asynchronous Programming Models in C#

Pattern Description Based On Notes
Thread based By creating System .Threading .Thread instance Managed Thread Expensive, not recommended
Standard BeginXxx and EndXxx methods By calling BeginXxx method with a user callback; calling EndXxx inside that user callback Thread pool Widely used, standard, recommended, support cancellation and continuation
ThreadPool By calling ThreadPool’s static QueueUserWorkItem method Thread pool Widely used, recommended use as much as possible
Delegate By calling Delegate’s BeginInvoke and EndInvoke instance methods Thread pool Less used
Event based By subscribing to the appropriate event and calling the appropriate method Thread pool Avoid use as much as possible, not recommended
Task based By creating System .Threading .Tasks .Task instance A specified task scheduler Recommended, supports all features of a thread pool pattern, and has many other features
async method and await expression By using async and await keywords Task based pattern The new C# 5.0 asynchronous pattern

Read more in The Asynchronous Programming Models (C# 5.0 Series) at CodeProject

Microsoft’s new Cascadia Code font is designed with developers in mind

Update: Unfortunately, the Cascadia Code font is not complete.  A very large number of Unicode characters are missing, making it unusable in f.x RAD Studio or with any application or language that uses characters outside the very limited ASCII range.

Going to try it out instead of my current favorite: Source Code Pro by Adobe.

“Microsoft has announced a new version of their Cascadia Code which is designed with developers in mind. Cascadia Code was first announced by Microsoft at Build back in May and is finally shipping to the Windows users. Microsoft noted that the new font is designed for command-line applications including Windows Terminal. ”

Source: Microsoft’s new Cascadia Code font is designed with developers in mind – MSPoweruser

Generic Command Line Parser for Delphi 10.3.x

You know the feeling. You need a specific input from your command line, but you can’t find something lightweight that does the job. Hence, the FDC.CommandLine was born.

You can use – / or + as a switch, and use : or = as a flag for parameters.
/option:parameter

You can use single and double quotes to be able to parse parameters that contain spaces and quotes.
/quoteoftheday:”This is a ‘quoted’ parameter”

It also supports lists of parameters.
/inputfiles:(file1.txt , “file with space.txt”)

Take a look at the TestFDCCommandLine.dpr for more examples of how it works.

Continue reading “Generic Command Line Parser for Delphi 10.3.x”

It’s all downhill from here

It's all downhill from here.
Went for a walk.

After walking up and down from Gaustatoppen (the Gausta Peak) with my wife, I discovered some muscles I didn’t even know I had. Apparently, the down hill trip came as a surprise to them too.

Driving up to the Stavsro Café took about 2.5 hours from home, and we started our hike from the parking area there at approx. 1130 m elevation, and went to the plateau by the tower at approx. 1831 m. The aerial straight line distance is about 3.7 km (2.3 miles), but the path makes some twists and turns, for sure.

Onwards and upwards.

The first part is a well trodden path with a lot of stumbling opportunities, before a relatively steep ridge that leads to what is best described as several millennia worth of stone rubble tossed at random.

A relatively clear path upwards.
Footpath, what footpath?
Hint: Follow the red T’s.

So, needless to say – good footwear is essential if you want to catch the view.

The sun setting behind the peak.

Time used? Well, we were for sure the last people off the mountain that night. We did have enough clothing, water and food, which was a good thing, because the temperature dropped from 23°C to around 11°C as the sun went down and the wind picked up.

The day after.

Instead of driving home, we called the nearby Gaustablikk Høyfjellshotell and asked if they had a spare room. Fortunately, they did, and it included breakfast, so it was a no-brainer. We arrived and checked in and were told that “the room is at the end of that corridor, and two stairs down”. My wife and I looked at each other and groaned. More downhill from there was the last thing we wanted! But, we made it 🙂