Archive for the ‘Development’ Category
Posted by jpluimers on 2017/05/30
ILMerge has all sorts of drawbacks with things like XAML, WPF, NHibernate, dynamically loaded assemblies and reflection.
Jeffrey Richter: Excerpt #2 from CLR via C#, Third Edition | Microsoft Press blog has an interesting approach based on adding a callback to the AppDomain’s ResolveAssembly event with some steps so you can embed assemblies as resources which you then – unlike ILmerge- dynamically resolve.
Those steps require a bit of manual labour which is taken away by MiloszKrajewski/LibZ: LibZ, the alternative to ILMerge.
The repository on github even compresses your assembly resources.
–jeroen
Posted in .NET, .NET 3.0, .NET 3.5, .NET 4.0, .NET 4.5, C#, C# 3.0, C# 4.0, C# 5.0, C# 6 (Roslyn), Development, Software Development | Leave a Comment »
Posted by jpluimers on 2017/05/26
Source:
History repeating itself: [Archive.is] 31607 – C:\nul\nul crashes/BSOD then, now it’s this:
Via:
All versions prior to Windows 10 and Windows Server 2016 seem vulnerable.
So add $MFT to this list:
Oh BTW: history repeated itself this year too. With NUL
In short, Steven Sheldon created a rust package named nul which broke the complete package manager on Windows:
BTW: one of my gripes on learning new languages is that they come with a whole new idiom of their ecosystem: rust, cargo, crates, all sound like being a truck mechanic to me.
–jeroen
Read the rest of this entry »
Posted in Development, Microsoft Surface on Windows 7, NTFS, Power User, Security, Software Development, The Old New Thing, Windows, Windows 10, Windows 7, Windows 8, Windows 8.1, Windows 9, Windows 95, Windows 98, Windows Defender, Windows Development, Windows ME, Windows NT, Windows Server 2000, Windows Server 2003, Windows Server 2003 R2, Windows Server 2008, Windows Server 2008 R2, Windows Server 2012, Windows Server 2012 R2, Windows Server 2016, Windows Vista, Windows XP | Leave a Comment »
Posted by jpluimers on 2017/05/25
As the pull request had been in the pipeline for almost 2 years, I missed it went through:
Before that, Github would not render parts of reStructuredText files at all it could not fully render them. Now it renders them as raw reStructuredText so at least you can see the content.
Examples:
.. function:: code_to_ast(codeobj)
- Compare the different rendering of these two engines on the same file:
–jeroen
Posted in Development, Lightweight markup language, reStructuredText, Software Development | Leave a Comment »
Posted by jpluimers on 2017/05/24
Some people still don’t get it:
We like to keep our code organized for readability, and use Hungarian Notation as prefixes where they clarify the purpose of a variable.
Source: A Modern Hungarian Notation – Pixplicity
My opinion on this:
- Don’t abbreviate. There is code completion for a reason.
- Put technical meanings at the end and functional meanings at the start of identifiers: software development is about functional stuff, not about technical stuff as the latter changes way faster than the former.
- You might consider using prefixes for arguments, local variables, instance variables and such, but often that works against you while refactoring stuff.
Been there, done that (;
Source: Boy, there sure is a lot of discussion about Hungarian Notation!
–jeroen
Posted in Conventions, Development, Naming Conventions, Software Development | Leave a Comment »
Posted by jpluimers on 2017/05/23
One of the Delphi programmers I keep an eye on is [WayBack] Stefan Glienke, the maintainer of the great Spring4D Delphi framework at spring4d.org.
His blog posts come in bursts, though his G+ posts are spreaded a bit more evenly.
Some of his recent posts and references:
–jeroen
Read the rest of this entry »
Posted in Delphi, Development, Software Development | Leave a Comment »
Posted by jpluimers on 2017/05/18
Quite a few interesting entries got posted after I published this compiler glitch:
Wow, this parses:
property Foo: string index 0 string read GetFoo;
Note the extra “string”.
Found this in an old piece of code so it must have been uncaught by the compiler for quite a while.
– Jeroen Wiert Pluimers – Google+
Some:
property DepartmentName: string index 0 program library uses unit interface string class read GetCustomDataX;
property Foo: string index 0 unit if library uses unit do not inline file else raise object if is nil read GetFoo;
–jeroen
Posted in Delphi, Development, Fun, Software Development | 2 Comments »