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,860 other subscribers

Archive for December, 2021

13 Tips for Writing Useful Unit Tests | by Nick Hodges | Better Programming

Posted by jpluimers on 2021/12/21

[Wayback/Archive.is] 13 Tips for Writing Useful Unit Tests | by Nick Hodges | Better Programming (I made direct links to the topics in the below quote):

How you write your tests is as important as writing them

1. Test One Thing at a Time in Isolation
2. Follow the AAA Rule: Arrange, Act, Assert
3. Write Simple “Fastball-Down-the-Middle” Tests First
4. Test Across Boundaries
5. If You Can, Test the Entire Spectrum
6. If Possible, Cover Every Code Path
7. Write Tests That Reveal a Bug, Then Fix It
8. Make Each Test Independent
9. Name Your Tests Clearly and Don’t Be Afraid of Long Names
10. Test That Every Raised Exception Is Raised
11. Avoid the Use of Assert.IsTrue
12. Constantly Run Your Tests
13. Run Your Tests as Part of Every Automated Build

–jeroen

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

Jeff Duntemann on Twitter: “I adapted my book Borland Pascal 7 From Square One for FreePascal. This involved cutting out obsolete stuff like the BGI and TurboVision, and adding a few things here and there. I then released it as a free PDF ebook

Posted by jpluimers on 2021/12/21

Cool!

{Wayback] www.copperwood.com/pub/FreePascalFromSquareOne.pdf

This is the FreePascal adoption of Borland Pascal from Square One: Duntemann, Jeff

Via: [Archive.is] Jeff Duntemann on Twitter: “I adapted my book Borland Pascal 7 From Square One for FreePascal. This involved cutting out obsolete stuff like the BGI and TurboVision, and adding a few things here and there. I then released it as a free PDF ebook: #pascal #programmingisfun … “

–jeroen

Posted in Borland Pascal, Development, FreePascal, Pascal, Software Development | Leave a Comment »

Meldactie: Ervaar jij knelpunten met je Zorgprofiel voor langdurige zorg? – Iederin

Posted by jpluimers on 2021/12/20

Invullen uiterlijk zondag 23 januari 2023:

[Wayback/Archive] Meldactie: Ervaar jij knelpunten met je Zorgprofiel voor langdurige zorg? – Iederin:

Loop jij aan tegen knelpunten met je Zorgprofiel voor langdurige zorg?

Ontvang jij zorg uit de Wlz en ervaar je daarbij knelpunten met je Zorgprofiel? Bijvoorbeeld omdat je in de praktijk niet de zorg krijgt, die in je profiel staat omschreven? Of omdat de inhoud van het profiel niet goed aansluit op de zorg die jij nodig hebt? Laat het ons dan weten.
Via deze link kun je een korte vragenlijst invullen en je ervaringen met ons delen. Dit kan tot en met zondag 23 januari 2023.

Meldpunt: [Wayback/Archive] Meldactie: Knelpunten Zorgprofielen/ZZP Wet langdurige zorg Survey

Via:

–jeroen

Posted in About, Awareness, LifeHacker, Personal, Power User | Leave a Comment »

CoronaCheck app: booster, test of informatie over genezen toevoegen via plusje rechtsboven

Posted by jpluimers on 2021/12/20

Dit wist ik nog niet: [Archive] Wil Hoekstra🍀 on Twitter: “@locuta Ook goed om te weten, via het plusje rechtsboven in je corona cheque app kun je de booster prik toevoegen. met je DigiD (ik deed het 24 uur na de prik)” / Twitter.

Je kunt de + rechtsboven ook gebruiken voor een testbewijs of verklaring dat je genezen bent van corona.

Het staat helaas nergens op de site van de app uitgelegd: [Wayback/Archive] coronacheck app plusje rechtsboven site:coronacheck.nl – Google Search

–jeroen

Posted in Awareness, LifeHacker, Power User | Leave a Comment »

draw.io Floorplan stencils – draw.io

Posted by jpluimers on 2021/12/20

I needed a way to draw floor plans.

PowerPoint solutions were to cumbersome, but then I remembered draw.io: it has [WayBack] draw.io Floorplan stencils – draw.io

Have you tried the floorplan stencils in draw.io? You can open the library directly by using the libs parameter, www.draw.io/?libs=floorplan. Or, you can enable them in your library section by clicking “more shapes” (bottom right) and ticking “floorplans”, then apply:

I configured draw.io to show measurements in points, then took 100 points per meter as scale.

At first I most of my measurements were wrong because the I thought the “fat” grid lines were every 50 points. They are not:

  • Light grid lines are 10 points
  • Fat grid lines are 40 points
  • Ruler has small marks every 10 points
  • Ruler has large marks every 50 points
  • Ruler has numbers every 100 points

How confusing!

–jeroen

Read the rest of this entry »

Posted in Cloud Apps, draw.io, Internet, Power User | Leave a Comment »

Finally learned about the usage of the German word “halt”

Posted by jpluimers on 2021/12/17

German’s use the word “halt” very often, but I never fully understood when and why.

I had a kind of feeling (that’s how I learned speaking German as a kid anyway: we stayed in Germany often, they did not speak Dutch, so it was about the only way to start communicating).

So last year, I asked one of my friends Kristian Köhntopp, see the Tweets further below.

In summary, “halt” is a modal particle, so not like Kristian suggested an interjection (German: interjektion).

This also explains why I had trouble understanding them, as modal particles are only used in a limited number of languages (not English), indicate either a mode or filler, and ofen “the translation is often not straightforward and depends on the context”.

Fillers are used in more languages than modal particles; English contains many (like uh, you know, right, actually) and easier to get right than non-filler modal particles.

Related links for futher reading:

–jeroen

Read the rest of this entry »

Posted in Learning/Teaching, LifeHacker, Power User | Leave a Comment »

Kirsten Verdel on Twitter: “LET OP: de GGD is bezig om het telefoonnummer voor boosterafspraken zoveel mogelijk van internet te verwijderen. Meerdere mensen is zelfs gevraagd hoe ze aan het nummer kwamen (staat in de brief…..). Afijn: het is dus nog steeds 0800-7070.” / Twitter

Posted by jpluimers on 2021/12/17

[Archive] Kirsten Verdel on Twitter: “LET OP: de GGD is bezig om het telefoonnummer voor boosterafspraken zoveel mogelijk van internet te verwijderen. Meerdere mensen is zelfs gevraagd hoe ze aan het nummer kwamen (staat in de brief…..). Afijn: het is dus nog steeds 0800-7070.” / Twitter

Dat is nog niet gelukt op onderstaande pagina’s. Dus onthou: als je een normale of boostervaccinatie wilt, dan kan dat door te bellen naar 0800-7070.

  • [Wayback/Archive] GGD GHOR Nederland ondervindt ernstige hinder door DDoS-aanvallen – GGD GHOR Nederland

    Wanneer het online niet lukt om afspraken te maken ​kunnen mensen telefonisch contact opnemen.

    Als alternatief voor testafspraken kan men bellen met het landelijk nummer 0800-1202.

    Voor vaccinatieafspraken is het telefoonnummer 0800-7070 beschikbaar.

    Beide nummers zijn zeven dagen per week bereikbaar van 08.00 ​uur ‘s ochtends tot 20.00 uur ‘s avonds. Let op: burgers kunnen niet zelf bellen voor hun coronatestuitslag.

  • [Wayback/Archive] Veelgestelde vragen boostervaccinatie – GGD GHOR Nederland

    Hoe maak ik een afspraak bij één van de GGD’en?
    Zodra u uw uitnodiging heeft ontvangen, kunt u de Landelijke Vaccinatie Afsprakenlijn bellen via 0800-7070. Dit nummer is dagelijks bereikbaar tussen 08.00 en 20.00 uur. Samen met een medewerker kunt u een locatie, datum en een tijdstip kiezen.

  • [Wayback/Archive] Contact & Pers – GGD GHOR Nederland
    Uw vraag gaat over: Hier vindt u informatie:
    Coronatest of coronavaccinatie – afspraak maken of verzetten Bel 0800-1202 voor een testafspraak

    Bel 0800-7070 voor een vaccinatieafspraak
    Of ga naar www.coronatest.nl
    Coronatest of coronavaccinatie – algemene vragen Ga naar vragen.coronatest.nl

    U vindt hier ook een contactformulier
    CoronaCheck-app / QR-code – vragen over storingen Ga naar status.coronacheck.nl
    CoronaCheck-app / QR-code – vragen over testbewijs, vaccinatiebewijs, testbewijs voor reizen, Testen-voor-Toegang Ga naar rijksoverheid.nl voor alle
    vragen en antwoorden over uw coronabewijs
    Vaccinatiegegevens: als uw gegevens niet kloppen of u kunt uw gegevens niet ophalen Bent u gevaccineerd door de GGD bel dan 0800-5090 . Bent u gevaccineerd door het ziekenhuis, huisarts of een andere zorginstelling, neem dan contact op met die zorginstelling
    Algemene vragen over het coronavirus en beleid Ga naar rijksoverheid.nl of bel 0800-1351
    Vragen over reisbewijzen Ga naar nederlandwereldwijd.nl

    Of bel het Ministerie van Buitenlandse zaken 024-7247247
    Gratis coronatest voor reizigers Ga naar  testenvoorjereis.nl
    Buitenlandse vaccinaties/registraties Ga naar rivm.nl/vaccinatie2
    Vaccinatieafspraak voor personen zonder BSN/ DigiD Bel 0800-7070
    Verwijderen of anonimiseren persoonsgegevens Neem contact op met de GGD in uw regio (te vinden via ggd.nl). U kunt ook mailen naar gegevensverwerking@ggdghor.nl.

–jeroen

Read the rest of this entry »

Posted in Covid-19 / Coronavirus, LifeHacker, Power User | Leave a Comment »

Language oddities: siblings (English) and Geschwister (German) have no Dutch equivalent word

Posted by jpluimers on 2021/12/17

A while ago I learned that the English word siblings translates into the German word Geschiwster.

Before that, I thought Geschwister was synonym to Schwester; long story at [Archive.is] Jeroen Pluimers on Twitter: “Dat lukt heel behoorlijk. Over Duits: heeft dar een woord voor ‘sibblings’? In het Nederlands kom je dan af en toe “brussen” tegen. Hoe zit dat in het Duits?… “.

There is Dutch word that comes close “brussen” which:

  • has no wide spread use,
  • does mean brothers and sisters (broers en zussen),
  • but in the context of one or more sibblings that have one sibbling with special needs.

In a time where gender has become less important, privacy more important, I think it is time to put more emphasis on the neutral use of “brussen”.

Links

–jeroen

Read the rest of this entry »

Posted in About, Learning/Teaching, LifeHacker, Personal, Power User | Leave a Comment »

Delphi MVVM links

Posted by jpluimers on 2021/12/16

After I did conference presentations and wrote a magazine article and in 2013 about Delphi MVVM using DSharp, I saw a 3 articles in 2018, then I went through a big rollercoaster involving rectum cancer treatment.

After recovering, I found that there is one commercially project working on an MVVM framework implementation.

So here are some links on MVVM from new to old:

In my experience experimenting with MVVM and other three- and four-letter frameworks, I found a recurring concept is “convention over configuration”. This relies heavily on having matching names in the various layers.

There you see a big drawback in the Delphi compiler: it lacks a NameOf expression, which means a lot of literal strings ending in your code. Few of the MVVM frameworks have good logging explaining when literals mismatch.

The C# compiler also took a while (until C# version 6 in 2015) to get one, but now supports the [Wayback] nameof expression – C# reference | Microsoft Docs. Some more documentation about this:

Furthermore, the Delphi compiler lacks helpers on interfaces and helpers for generics (heck, I would actually want full extension methods) and generic parameters for methods on interfaces (which is different from the generic parameters on the interface declaration itself). This lack of these features often cause for convoluted syntax to workaround this. Stefan explains the first lacks more clearly in [Wayback] Delphi sorcery: Why no extension methods in Delphi?.

Requests for the nameof expression and interface helpers have been there since at least 2015:

–jeroen

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

BHACP021 Chime Pro (2nd Generation) Teardown Internal Photos EMC TEST REPORT Ring

Posted by jpluimers on 2021/12/16

So you do not have to do a tear-down yourself: [Wayback] BHACP021 Chime Pro (2nd Generation) Teardown Internal Photos EMC TEST REPORT Ring

Chime Pro (2nd Generation) Internal Photos details for FCC ID 2AEUPBHACP021 made by Ring LLC. Document Includes Internal Photos EMC TEST REPORT

–jeroen

Posted in Development, Hardware Development, IoT Internet of Things, Network-and-equipment, Power User, Ring Doorbell/Chime (Amazon) | Leave a Comment »