Archive for April 2nd, 2019
Friends+Me Google+ Exporter Support
Posted by jpluimers on 2019/04/02
Posted in Uncategorized | Leave a Comment »
Some links on DUnit, JUnit and NUnit XSD specifications of their XML formats (JUnit is actually Ant XML)
Posted by jpluimers on 2019/04/02
For my link archive:
- DUnit:
- JUnit:
- [WayBack] karma-junit-reporter/junit-schema.xsd at master · karma-runner/karma-junit-reporter · GitHub
- [WayBack] junit5/jenkins-junit.xsd at master · junit-team/junit5 · GitHub
- [WayBack] JUnit Format – Enterprise Tester
- [WayBack] Linux Lighting Group – JUnit XML reporting file format
- [WayBack] Understanding PDF translation | JUnit PDF Report
- [WayBack] unit testing – Spec. for JUnit XML Output – Stack Overflow
- [WayBack] https://svn.jenkins-ci.org/trunk/hudson/dtkit/dtkit-format/dtkit-junit-model/src/main/resources/com/thalesgroup/dtkit/junit/model/xsd/junit-4.xsd
- [WayBack] jenkins – JUnit XML format specification that Hudson supports – Stack Overflow
- [WayBack] GitHub – windyroad/JUnit-Schema: XSD for Apache Ant’s JUnit output
- [WayBack] JUnit-Schema/JUnit.xsd at master · windyroad/JUnit-Schema · GitHub: JUnit-Schema – XSD for Apache Ant’s JUnit output
- [WayBack] xunit-plugin/src/main/resources/org/jenkinsci/plugins/xunit/types at master · jenkinsci/xunit-plugin · GitHub
- [WayBack] JUnit-Schema/JUnit.xsd at master · windyroad/JUnit-Schema · GitHub
- [WayBack] maven-surefire/surefire-test-report.xsd at master · apache/maven-surefire · GitHub
- [WayBack] GitHub – windyroad/JUnit-Schema: XSD for Apache Ant’s JUnit output
- [WayBack] Apache Ant JUnit XML Schema – Windy Road Here is the XML Schema for the XML produced by Apache Ant’s JUnit task and JUnitReport task, based on the code in Apache Ant 1.8.2: JUnit.xsd on GitHub
- NUnit 2:
- NUnit XSD for verification and XML to HTML conversion (hey, I wrote about one part before. Yay!)
- [WayBack] http://nunit.org/docs/files/Results.xsd
- [WayBack] karma-nunit2-reporter/nunit-schema.xsd at master · martinmcwhorter/karma-nunit2-reporter · GitHub
- NUnit 3:
- [WayBack] Test Result XML Format · nunit/docs Wiki · GitHub
- [WayBack] nunit/Test.xsd at master · nunit/nunit · GitHub
- [WayBack] nunit-transforms/nunit3-junit.xslt at master · nunit/nunit-transforms · GitHub
- [WayBack] GitHub – nunit/nunit-transforms: A collection of contributed XSLT transforms for use with the NUnit result file.
- [WayBack] automation – What is the difference between nunit3 xml format and nunit2 xml format? – Stack Overflow
- [WayBack] nunit-transforms/nunit3-junit at master · nunit/nunit-transforms · GitHub
- [WayBack] Bug: Validating against a schema throws NullReferenceException in XsdValidatingReader
- [WayBack] Validating Xml with a Schema in an NUnit Test (.NET 3.5/C#) | My Adventures in Coding
- [Archive.is] IBM Knowledge Center – JUnit XML format
- [WayBack] Junit 3 vs Junit 4 Comparison: Junit 3 vs Junit 4 Overview Junit 4 is the next series of Junit 3 and introduced lot of features. It has been compatible with most tools for a while.
- [WayBack] JUnit Test Infected: Programmers Love Writing Tests
–jeroen
Posted in Agile, Development, Software Development, Unit Testing | Leave a Comment »
architecture – How much is too much Dependency Injection? – Software Engineering Stack Exchange
Posted by jpluimers on 2019/04/02
Mark Seeman posted a great answer with insights into how to architect applications: [WayBack] architecture – How much is too much Dependency Injection? – Software Engineering Stack Exchange
Some topics covered:
- small code bases
- pure DI over DI container
- cases for both coarse and fine-grained DI
- favour functional programming over OOP
- both functional and DI ports and adapters
It links to a ton of other good reads for a quiet long weekend as well:
- [WayBack] When to use a DI Container
- [WayBack] Code rant: The Configuration Complexity Clock
- [Archive.is] Design Patterns: Elements of Reusable Object-Oriented Software 1st Edition by Erich Gamma (Author), Richard Helm (Author), Ralph Johnson (Author), John Vlissides (Author), Grady Booch (Foreword)
- [Archive.is] Dependency Injection in .NET 1st Edition by Mark Seemann (Author)
- [Archive.is] Integration Tests Are a Scam
- [WayBack] Introducing BDD | Dan North & Associates (Behaviour Driven Development)
- [WayBack] Test-induced design damage (DHH)
- [WayBack] Functional design is intrinsically testable
- [WayBack] SOLID: the next step is Functional
- [WayBack] Functional architecture is Ports and Adapters
- [WayBack] Layers, Onions, Ports, Adapters: it’s all the same
- [WayBack] Dependency rejection
- [WayBack] Partial application is dependency injection
- [WayBack] Feedback mechanisms and tradeoffs
–jeroen
Posted in Design Patterns, Development, Software Development | Leave a Comment »
Interface methods are not assignment compatible with method references or methods of object.
Posted by jpluimers on 2019/04/02
Boy I wish that QC was still up and QualityPortal was publicly indexable as that would have saved me quite a bit of time tracking this down. Luckily I got help from Stefan Glienke (who maintains the awesome Spring4D library based on modern Delphi compiler support) when I mentioned
How good are you with reference to function?
I’ve an odd compiler thing throwing errors when using interfaces but not with classes.
So, for posterity:
Unlike C#, in Delphi interface methods are not compatible with method references or methods of object.
This has many manifestations, which means you can get a variety of compiler errors. I’ve listed the ones I could find below, but presume there are more and if I find more will update this post.
These are the errors you can get:
- E2010 Incompatible types: ‘T’ and ‘Procedure’
- E2035 Not enough actual parameters
- E2250 There is no overloaded version of ‘FirstOrDefault’ that can be called with these arguments
These are the (now defunct, but used to be publicly accessible) QC and QualityPortal (needs sign on) entries (thanks Stefan Glienke and Blaise Thorn for reporting these):
- QC95543 An overloaded routine cannot be assigned to the method reference (June 2011)
- QC110364 Interface methods are not assignable to anonymous method variable (November 2015)
- [RSP-13007] Interface methods are not assignable to anonymous method variable – Embarcadero Technologies (November 2016)
The really frustrating part is that the RSP is marked as “new feature” whereas clearly it isn’t, so it probably never will be fixed.
A workaround for now is to wrap the interface method references with:
- either anonymous methods (when you have just a few classes to cover, but maybe more than a few methods on the interface)
- or instance methods on a class (when there are many classes to cover and preferably few methods on the interface)
Examples are in the code below that also shows this works fine and dandy in C#.
–jeroen
Posted in Delphi, Delphi 10 Seattle, Delphi 10.1 Berlin (BigBen), Delphi 10.2 Tokyo (Godzilla), Delphi XE3, Delphi XE4, Delphi XE5, Delphi XE6, Delphi XE7, Delphi XE8, Development, Software Development, Spring4D | Leave a Comment »
Google Local Guides Nederland after G+
Posted by jpluimers on 2019/04/02
For my information archive as G+ died:
- localguidesnederland.slack.com/ (still not sure how to get an invitation)
- www.localguidesconnect.com/t5/Help-Desk/bg-p/help-desk
From the (unarchived, but disappeared) Is er al iemand een slack kanaal gestart waar we als localguides heen kunnen?
Posted in Google, GoogleMaps, Local Guides, Power User | Leave a Comment »