C#

Showing 19-23 of 23 results
EngineeringIcon ChevronData Science and Databases

Needle in a Haystack: A Nifty Large-scale Text Search Algorithm Tutorial

By Ahmed Alamir

When coming across the term "text search," one usually thinks of a large body of text which is indexed in a way that makes it possible to quickly look up one or more search terms when they are entered by a user. This is a classic problem in computer science to which many solutions exist. But how about a reverse scenario? What if what's available for indexing beforehand is a group of search phrases, and only at runtime is a large body of text presented for searching?

12 minute readContinue Reading
EngineeringIcon ChevronData Science and Databases

MetaDapper: Data Mapping and Conversion Made Easy With the Right Tools

By Richard Rozsa

Data conversion, translation, and mapping is by no means rocket science, but it is by all means tedious. This article introduces MetaDapper, a .NET library that strives to simplify, streamline, and automate the data conversion process to the greatest extent possible.

10 minute readContinue Reading
EngineeringIcon ChevronTechnology

Buggy C# Code: The 10 Most Common Mistakes in C# Programming

By Patrick Ryder

C# is a powerful and flexible language with many mechanisms and paradigms that can greatly improve productivity. Having a limited understanding or appreciation of its capabilities, though, can leave one in the proverbial state of “knowing enough to be dangerous”. This article describes 10 of the most common programming mistakes made, or pitfalls to be avoided, by C# programmers.

19 minute readContinue Reading
EngineeringIcon ChevronTechnology

Python Class Attributes: An Overly Thorough Guide

By Charles Marsh

In a recent phone screen, I decided to use a class attribute in my implementation of a certain Python API. My interviewer challenged me, questioning whether my code was syntactically valid, when it was executed, etc. In fact, I wasn’t sure of the answers myself. So I did some digging. Python class attributes: when (or how) to use them. In this guide, I walk you through common pitfalls and conclude with a list of valid use cases that could save you time, energy, and lines of code.

11 minute readContinue Reading
EngineeringIcon ChevronTechnology

Great Developers Know When and How To Refactor Rails Code

By Radan Skoric

>If it ain't broke, don't fix it. It's a well known phrase, but as we know, most of the human technological progress was made by people who decided to fix what isn’t broken. Especially in the software industry one could argue that most of what we do is fixing what isn’t broken. Fixing functionality, improving the UI, improving speed and memory efficiency, adding features: these are all activities for which it is easy to see if they are worth doing, and then we argue for or against spending our time on them. However, there is an activity, which for the most part falls into a gray area: refactoring, and especially large scale refactoring.

14 minute readContinue Reading

Join the Toptal® community.