[WayBack] Mads Kristensen on Twitter: “Visual Studio Tip: A blue dot in the margin indicates a switch of threads while stepping through debugging. #vstip… “
–jeroen
Posted by jpluimers on 2020/01/07
[WayBack] Mads Kristensen on Twitter: “Visual Studio Tip: A blue dot in the margin indicates a switch of threads while stepping through debugging. #vstip… “
–jeroen
Posted in .NET, Development, Software Development, Visual Studio and tools | Leave a Comment »
Posted by jpluimers on 2019/12/10
Every time I run into complex nested if/then/else statement in any language with truckloads of code blocks, it usually means it is time to refactor in two steps:
Of course this adds some overhead, but usually you end up with code that is easier to unit-test and understand both the overall structure and detailed implementations of.
I’m all for language enhancements that allow deeply nested logic to be more manageable (for instance by enhancing a case construct), but usually refactoring makes that less of a need and more of a nice to have.
Via: [WayBack] Anybody else have a gripe with nested if-then-else statements in Pascal? What if we had the following statement/syntax available in Pascal? … – Gerhard Venter – Google+
–jeroen
Posted in .NET, C#, Design Patterns, Development, Software Development | Leave a Comment »
Posted by jpluimers on 2019/12/05
Interesting: [WayBack] Playing around with semantic typing in Oxygene: https://github.com/carlokok/semantictyping adding operators and methods to type aliases to store distin… – Carlo Kok – Google+
Playing around with semantic typing in Oxygene: https://github.com/carlokok/semantictyping adding operators and methods to type aliases to store distinct types like distance, speed, acceleration while storing them as floats.
Check the repository linked; It essentially has types like Kelvin, Celsius ( https://github.com/carlokok/semantictyping/blob/master/SemanticTyping/Temperature.pas ), and Speed, Velocity, Acceleration ( https://github.com/carlokok/semantictyping/blob/master/SemanticTyping/Physics.pas ) using standard Oxygene features.
–jeroen
Posted in .NET, Development, Oxygene, Pascal, Software Development | Leave a Comment »
Posted by jpluimers on 2019/10/31
Have any service related stuff implement IHostedService, so it is easy to deploy it in all kinds of processes:
Peter Groenewegen ([WayBack] pgroene (Peter Groenewegen) · GitHub; [WayBack] { Think Rethink }) has some great examples and blog articles at [WayBack] IHostedService – { Think Rethink }:
Background information:
Exploring an example of using the new IHostedService interface from ASP.NET Core 2.0 to run background tasks that shut down when our WebHost shuts down.
[WayBack] GitHub – stevejgordon/IHostedServiceSample: A sample 2.0 preview 2 API which implements IHostedService
As ASP.NET developers we’re fairly used to hosting our code inside Internet Information Services (IIS). However, since ASP.NET Core is cross-platform, hosting inside IIS isn’t always an option. For that reason, the hosting model for ASP.NET Core applications looks quite a bit different. Of course, we can still host our code in IIS, but we also have the option to use Kestrel and run as a standalone application.This new hosting model is visible in code through the WebHostBuilder API from Microsoft.
Learn about Kestrel, the cross-platform web server for ASP.NET Core.
Kestrel is a cross-platform web server for ASP.NET Core. Kestrel is the web server that’s included by default in ASP.NET Core project templates.
Kestrel supports the following features:
- HTTPS
- Opaque upgrade used to enable WebSockets
- Unix sockets for high performance behind Nginx
Kestrel is supported on all platforms and versions that .NET Core supports.
Posted in .NET, .NET Core, .NET Standard, Development, Software Development | Leave a Comment »
Posted by jpluimers on 2019/10/11
Just in case you were using .NET Core 2.0: it is EOL now, so you should have switched to the .NET Core 2.1 which is LTS (Long Time Stable).
[WayBack] .NET Core 2.0 reaches end of life, no longer supported by Microsoft | Packt Hub
.NET Core 2.1 was released towards the end of May 2018 and .NET Core 2.1 reached EOL on October 1. This was supposed to happen on September 1 but was pushed by a month since users experienced issues in upgrading to the newer version.
.NET Core 2.1 is a long-term support (LTS) release and should be supported till at least August 2021. It is recommended to upgrade to and use .NET Core 2.1 for your projects. There are no major changes in the newer version.
.NET Core 2.0 is no longer supported and updates won’t be provided. The installers, zips and Docker images of .NET Core 2.0 will still remain available, but they won’t be unsupported. Downloads for 2.0 will still be accessible via the Download Archives. However, .NET Core 2.0 is removed from the microsoft/dotnet repository README file. All the existing images will still be available in that repository.
via [WayBack] https://hub.packtpub.com/net-core-2-0-reaches-end-of-life-no-longer-supported-by-microsoft/ – Lars Fosdal – Google+
–jeroen
Posted in .NET, .NET Core, Development, Software Development | Leave a Comment »
Posted by jpluimers on 2019/09/25
On my research list as it pointed me to TensorFlow imports from both .NET and Delphi: [WayBack] Fixed by Code: Using TensorFlow™ with Delphi – or how to use a TStack<T> to simulate a RPN calculator.
Links from it:
I like the demo there, as I’ve done RPN calculator with some modeling tools before which makes for a good demo, and it reminds me of the HP 12C financial calculator my dad used to have.
If you like more TensorFlow, then watch the video I linked before: “Large-Scale Deep Learning with TensorFlow,” Jeff Dean – YouTube
Via
Older conversion try: [WayBack] Converting the TensorFlow C++ headers to object pascal. It has this empty struct defined.typedef struct TF_Tensor TF_Tensor;Think it converts to obj… – Eli M – Google+
–jeroen
Posted in .NET, Delphi, Development, Software Development | Leave a Comment »
Posted by jpluimers on 2019/09/12
For my link archive.
Full text at: [WayBack] … why the Delphi language does not allow parameterless constructors… – David Heffernan – Google+
Abstract:
+Stefan Glienke deleted his post about parameterless record constructors, presumably due to all the off topic comments.
…
.net at CLR level does allow parameterless constructors on structs. But the C# language bans them: https://msdn.microsoft.com/en-us/library/saxz13w4.aspx
Jon Skeet posted an answer on SO way back in 2008 on this topic: http://stackoverflow.com/a/333840/ From that answer:
—-
The CLR allows value types to have parameterless constructors, but C# doesn’t. I believe this is because it would introduce an expectation that the constructor would be called when it wouldn’t. For instance, consider this:
MyStruct[] foo = new MyStruct[1000];…
—-My guess is that Embarcadero decided to ban parameterless constructors on Delphi records for the same reason. Or perhaps they just copied the rules from C# without realising that the CLR supported parameterless struct constructors.
References:
--jeroen
Posted in .NET, C#, Delphi, Development, Jon Skeet, Software Development | Tagged: 1029 | Leave a Comment »
Posted by jpluimers on 2019/08/14
Visual Studio Code download links:
Via:
–jeroen
Posted in .NET, Development, Software Development, vscode Visual Studio Code | Leave a Comment »
Posted by jpluimers on 2019/08/07
When it was at the age natural people are allowed to drive in the USA, the .NET framework behaved far less brain dead handling various (especially long or strange) paths: [WayBack] More on new .NET path handling – Jeremy Kuhne’s Blog.
Path handling has frustrated me in many development environments, so I wonder if ones that are beyond the (USA) legal age of drinking follow.
–jeroen
via: [WayBack] Some time ago, the .net developers finally saw sense and removed path normalization and long path limit code in System.IO… Does anybody know if Embarcadero have come to their senses… – David Heffernan – Google+
Posted in .NET, Delphi, Development, Java, Java Platform, Software Development | Leave a Comment »
Posted by jpluimers on 2019/08/06
For my link archive in case of link rot: [WayBack/Archive.is] 28800 Embarcadero DBX ADO.NET 2.0 driver for InterBase (version 17.0)
Note these are the same as the ones shipping with the Interbase XE7 developer edition.
The less old alternative from Embarcadero alternative is the ODBC driver: [WayBack/Archive.is] 28975 Embarcadero InterBase ODBC Driver for Windows, 32-bit and 64-bit
Maybe it is a good idea to look into [WayBack] All IBProvider news Firebird and InterBase driver for OLE DB and ADO.NET
Posted in .NET, Database Development, Development, InterBase, Software Development | Leave a Comment »