With more and more things moving into the cloud, you can now find a bunch of online editors for your favourite language. I told you about Plunker in a recent post. But there’s more. jsFiddle – another web IDE for JavaScript SQL Fiddle – […]
Tag: csharp
Regular Expressions: Groups
In Python, you can write the following, to capture groups of characters with regular expressions. >>> import re >>> print(“Match is ‘” … + re.search(‘\\s([a-z]+)\\s’, … ‘My text string.’).group(1) + “‘”) Match is ‘text’ >>> This is quite straightforward. In C#, you can write […]
Package basics
Packages form the basic building blocks of software components in many programming languages. For example, in Java you use the package statement to define the package for a class as follows. package a.b; public class C { public static void main(String[] args) […]
Unit testing in Java and C#
Unit testing has become a cornerstone of modern software development. Some of the most popular frameworks for unit testing are collectively known as xUnit. Originally developed for Smalltalk, there are now xUnit frameworks available for many programming languages. The current version 4 of the […]