-
Friday links 248
10 Tips When Considering Open Source Software – Page 3 ILMerge – Microsoft Research Freebie: Creativity & Learning Icon Set (PSD,AI,SVG,PNG) | Codrops How one announcement destroyed the .NET ecosystem on Windows — The Startup — Medium Top 10 Best Free Keylogger Software to Monitor Keystrokes in Windows • Raymond.CC Decoding Symmetric Cyphers with Crypto-JS…
-
AOP with Roslyn–part 5 – getting line number right
There is a problem with inserting lines – the number of lines is not the same. What I mean by this? Look at this example The DateTime.Now is on line 8 When we insert lines before and after each method,the DateTime.Now is on line 9 This is usually not so important –…
-
Friday links 247
AppDomains Won’t Protect Host From a Failing Plugin – CodeProject R (programming language) – Wikipedia,the free encyclopedia A programmer wrote scripts to secretly automate a lot of his job — including to automatically email his wife and make himself a latte – Business Insider Programmer Automates His Job For 6 Years,Finally Gets Fired,Forgets How To…
-
AOP with Roslyn–part 4–custom code to the end of the method
A good AOP needs also custom code to the beginning and to the end of the method. So we need to add formatter for the last line. That means that the MetodRewriter constructor will look like this: More,we should put code at the beginning and at the end of the method And…
-
Friday links 246
5 More Awesome New Mozilla Technologies You’ve Never Heard Of IP Address Details – ipinfo.io Versioning: the chicken & egg Simplify your controllers with the Command Pattern and MediatR – JonHilton.Net Continuous Integration with Microsoft SQL Server – SQLServerCentral “Stop designing languages. Write libraries instead.” – JAXenter gmanny/Pechkin: .NET Wrapper for WkHtmlToPdf static DLL. Allows…
-
AOP with Roslyn–part 3–custom code at beginning of each method
Last time(http://msprogrammer.serviciipeweb.ro/2017/11/27/aop-with-roslynpart-2/) we have injected a new code into each method . However,this code was pretty much hardcoded into the MethodRewriter class – it was a simple Console.WriteLine(\”{nameClass}_{nameMethod}_{lineStartNumber}\”); Now we want to can customize this code at the will of the programmer. For this,I have modified classes RewriteCode and MethodRewriter to accept a parameter…
-
Friday links 245
High performance web user interfaces – Google I/O 2016 – YouTube 6 Stupid Mistakes Smart Developers Should Make Creating an EPUB for Workshop Notes Why I switched to making products | A geek with a hat The Hidden Time-Saving Benefits of Code Reviews – DZone Agile The curse of staying up to date with new…
-
AOP with Roslyn–part 2
I want to transform code by injecting some simple code,like “Console.WriteLine(“method”) So this code: should be modified to this code: How I do the code: I derive from CSharpSyntaxRewriter and override the VisitMethodDeclaration . I will construct a new node with the Console.WriteLine statement inserted As test,I have created…
-
Friday links 244
The Quiet Crisis unfolding in Software Development — Medium Microsoft meets Open Source · Ted Neward’s Blog Your Software is Never Perfect Docker: Windows containers on Windows host – step by step in Stapp.space 5 Ways Remote Teams Can Create a Culture of Accountability How to Build a Search Page with Elasticsearch and .NET Sayed…
-
AOP with Roslyn
What I am interested in is to make a tool that logs in when the program comes in and out of a method. It’s good for identifying problems in code and for logging. What already exists on the market: PostSharp – one of the best – see https://www.postsharp.net/alternatives Cecil http://www.mono-project.com/docs/tools+libraries/libraries/Mono.Cecil/ Fody https://github.com/Fody NConcern: https://github.com/Virtuoze/NConcern What…
I am ok , you are ok