Mostrar mensagens com a etiqueta C#. Mostrar todas as mensagens
Mostrar mensagens com a etiqueta C#. Mostrar todas as mensagens

quarta-feira, 17 de outubro de 2018

SCRIPTING: One more (cross.platform) tool for scripting? (C# and .NET Core scripting "dotnet-script" global tool)

C# and .NET Core scripting with the "dotnet-script" global tool - Scott Hanselman


Other alternatives .Net based include (quoting):

"In the past you may have used ScriptCS for C# scripting.
There's a number of cool C#/F# scripting options.
This is certainly not a new thing:
In this case, I was very impressed with the easy of dotnet-script as a global tool and it's simplicity.
Go check out https://github.com/filipw/dotnet-script and try it out today!"

Also don't forget the scripting languages like Python and Perl.
But don't get me wrong with this last statement: Python is much more than a scripting tool nowadays, like javascript is not a thing for interactive web pages. 

quarta-feira, 4 de abril de 2018

TOOL: Coco Code Coverage

Multiple-platform/compiler code coverage tool:
https://www.froglogic.com/coco/free-trial/

Quoting:
"Coco

Cross-platform and cross-compiler code coverage analysis for C, C++, C#, SystemC, Tcl and QML code.


Coco utilizes source code instrumentation to analyze the applications’ source code.

No changes to the source code are necessary.

Executing a test suite against an instrumented application produces data that can later be analyzed. This analysis can be used to understand how much of the source code has been hit by tests, which additional tests need to be written, how the code coverage changed over time and more."

quarta-feira, 22 de novembro de 2017

ASP.Net and tutorials? (Dotnetcurry.com)

http://www.dotnetcurry.com/tutorials/aspnet

What is ASP.Net (and dotnetcurry)?
Quoting:
"ASP.NET is a modern open source server-side web framework for building static, dynamic and real-time Web sites, Web applications and Mobile applications using HTML, HTML5, CSS and JavaScript.

So far, we have published 173 ASP.NET tutorials and articles, which have been read by over 22446387 (Twenty Two Million Four Hundred Forty Six Thousand Three Hundred Eighty Seven)developers and architects."

SW Construction: Generics and maintainability (C#)

http://www.dotnetcurry.com/patterns-practices/1381/using-generics-csharp-maintainability

Quoting:
"When we encapsulate data, we can change the internal representation of the data without affecting the consumers of the unit encapsulating the data.

On the other hand, when we don’t encapsulate data, the behavior units will access data (received as method parameters for example) directly and therefore they have a hard dependency on the internal representation of the data.

Therefore, when doing behavior-only encapsulation, it is harder to change the internal representation of data.

In this article, I am going to discuss how we can use generics in C# to make it easier to handle data-related change requests in software applications when doing behavior-only encapsulation."
(...)
"You aren’t gonna need it (The YAGNI principle)

Should we always separate data-independent and data-dependent logic into different classes?

Should we make our data-independent classes generic from the start?

Well, it depends.

But in most of the cases, we don’t have to.

In most of the cases, applications start small, and then they evolve with time. It is important to first concentrate efforts on meeting the requirements we have at hand. We can always refactor later to meet new requirements.

In a document processing application that processes plain text documents only, we can start normally without making the document type generic in the classes that deal with documents.

Later, when we need to introduce different documents types, we can refactor existing classes/interfaces to become generic, and we can also refactor to separate data-independent behavior and data-dependent behavior into different classes.

If we follow the SOLID principles (the Single Responsibility Principle in particular), chances are that separation of data-independent and data-dependent behavior, is already high. Also, refactoring in this case would be a lot easier compared to when our classes are very long."

sexta-feira, 2 de dezembro de 2016

Coding: In C#?

Coding in C#? I've found a good overview (from a Microsoft person, so careful with The bias) that looks like a good summary of where this programming language is going including parallel projects Rosylin, Xamarin, Unity and more:


https://realm.io/news/goto-mads-torgersen-why-take-another-look-at-c-sharp/