If, after pressing F5, you've ever found yourself adjusting the size of your browser window, then this tip is for you. But you shouldn't be surprised if it doesn't work.
We just covered background information on our last file processing foray. Now, what's faster: CRT, Windows API, or something else?
- By Bartlomiej Filipek
- 03/06/2017
Entity Framework Core doesn't have lazy loading (at least, not yet). But you can fake it by using explicit loading, though it doesn't work quite the way you might want. In fact, it's probably a good idea to use this in Entity Framework 6.
If you want to ensure that the right code is loaded at the right time (and only loaded when you need it), you can use TypeScript code to organize your code into modules. As a side benefit, managing your script tags will get considerably easier.
Writing Universal Windows Platform (UWP) apps that rely on inter-process communication is actually easy. Debugging and making them fault-tolerant is the tricky part, but it can be done with the AppServiceConnection for UWP and IoT Apps.
- By Lee Richardson
- 02/27/2017
Some questions can only be answered by organizing your data into groups and then finding groups that contain particular members or have particular properties.
Good documentation is important for any application, and it starts with documenting your code. It helps you and it helps your users.
- By Terrence Dorsey
- 02/21/2017
Complex queries can be solved with a combination of simpler LINQ queries, anonymous objects and the Group/By/Into clauses. Using Group/By/Into will also give you the best possible performance for those complex queries.
You don't have to keep all your configuration settings in your config file. There are even some benefits to exporting sections to separate files.
Here's a trick to have Marten automatically deserialize JSON data only when you want it to.
- By Jason Roberts
- 02/16/2017
When you want to find all the objects that are missing a corresponding object, then you need the LINQ equivalent of an outer join. Here, step by painful step, is how to build that query.
You don't need to take your hands off the keyboard to move to another tab in the Toolbox.
Your Xamarin Forms App needs one more little tweak, and that's to make it device-specific, so users don't freak out. Unlike the Apple tweak, the Android tweak takes a bit of work.
- By Wallace McClure
- 02/08/2017
Find out more about this new feature of ASP.NET Core 1.0 and how it might help you.
If you decide on using an Enum with enumerated values in your Entity Framework class, here are the tools you'll need to make it work. But an enumerated value shouldn't be your first choice.
Here are two ways to save some typing when defining anonymous objects. One only works in Visual Basic, though.
Welcome to the 21st century, C#, now that case blocks support a variety of pattern-matching formats.
Find the patterns in your data sets using these Clustering.R script tricks.
- By James McCaffrey
- 02/01/2017
A roundup of a few more features: deprecated any type, literal datatypes, read-only properties, more!
You want to keep an object around only as long as you have memory available, do ya? Then you need the WeakReference class.
On the Windows platform, the C++ language offers several ways to process a file. We'll look at four approaches for serial IO access.
- By Bartlomiej Filipek
- 01/26/2017
Marten is PostgreSQL-based, so take advantage of relational features where it makes sense. Here's an example.
- By Jason Roberts
- 01/24/2017
Peter starts off with a perfectly good solution to a problem but then complicates the problem . . . and ends up moving to a different design pattern. While on that journey he has some best practices around designing Data Transfer Objects.
You probably use ToList to convert your LINQ results into Lists. It's almost as easy to convert any collection into a Dictionary whose items you can retrieve by key.
String functions, integer functions ... booorrring! Tuples in C# 7.0 -- let's explore what makes them infinitely more exciting.