Generic classes and functions are one way to create flexible, reusable classes and functions. But before you start creating your own generic functions, you should be clear on when they’re your best choice.
Learn to measure the performance of your apps and ensure a great UX.
- By Greg Shackles
- 12/18/2015
When you need to know when a file or folder appears, disappears or is renamed -- in fact, if almost anything at all happens in the file system -- you can have Windows notify your application so that you can take action.
C# developers who want to wring more meaningful info from large sets of data should get cozy with the statistical computing language known as R. Let's get familiar with R in this new series.
- By James McCaffrey
- 12/16/2015
There are lots of benefits to gathering information by opening a dialog box instead of sending your user to another page. Fortunately, jQuery and ASP.NET MVC make it easy to do (and you don't have to worry about offending pop-up blockers).
Application code needs to raise events and respond to them. The MessagingCenter makes this whole process much simpler than standard .NET events.
- By Wallace McClure
- 12/10/2015
If you need to have objects look alike but don't have any code to share, you don't need inheritance -- you need an interface. Here's an example of how interfaces provide a more flexible way to deal with similar-but-different classes.
TypeScript has some "interesting" limitations when it comes to overloading functions. But it also offers you some options when you need more flexibility in declaring functions, including both optional parameters and infinite parameter lists.
With the Universal Windows Platform, you can now build apps that truly interact with the new digital assistant for Windows. In this article, Nick Randolph walks through using Cortana to launch and interact with your application.
- By Nick Randolph
- 12/01/2015
You want to use a DLL in multiple projects (it's even possible that other developers at your company might find your DLL helpful). The easiest way to distribute and deploy that DLL, or any other combination of files, is with NuGet. Really.
A high-level look at some of the more interesting features of the newest Apple mobile OS that can trip up C# developers making apps for it.
- By Wallace McClure
- 11/19/2015
You can dramatically simplify your code by using classes to define read-only/immutable objects … but to create classes that behave correctly requires a little bit of redirection.
The short definition of a parameter sweep is that it's the process of trying different training parameter values in order to find a good set of neural network weight values.
- By James McCaffrey
- 11/10/2015
You can dramatically simplify your code by using value objects, but to create a value object that makes sense to the developer who uses it, you need to redefine what the equals sign means. Along the way, Peter points out some problems when you don't use classes to define your data.
True artificial intelligence is years away. But we can demonstrate the challenges of AI decisionmaking using C# to derive solutions for the classic sliding tiles puzzle.
- By Arnaldo Pérez Castaño
- 10/30/2015
Now that you know how to create tag helpers, let's create a custom one that loads a bootstrap-select dropdown via a remote URI.
The TypeScript datatyping support not only applies to simple variables, it also supports you when doing clever things with functions. Specifically, TypeScript ensures you create reliable code when implementing callback functions.
Create precise logic dictating which messages an actor will handle and how they will react to them.
- By Jason Roberts
- 10/26/2015
Simplify conditional actor code and improve readability.
- By Jason Roberts
- 10/22/2015
An introduction to the Chakra JavaScript engine and how it can be used within a Windows 10 app to execute JavaScript.
- By Nick Randolph
- 10/21/2015
The trie data structure is one alternative method for searching text that can be more efficient than traditional search approaches. Here's a trie class you can create in C#.
- By Arnaldo Pérez Castaño
- 10/20/2015
Implementing Domain Events can dramatically simplify your application while also making it more scalable. Here are some of the implementation options available to you in the .NET environment.
Recurrent neural networks can solve some types of problems that regular feed-forward networks cannot handle.
- By James McCaffrey
- 10/12/2015
The open source library RestSharp is designed to make consuming APIs from .NET easy and work across platforms.
- By Ondrej Balas
- 10/08/2015
Peter addresses reader's concerns by showing how to implement a read-only/immutable value object.