|
You are here |
jamesward.com | ||
| | | | |
gist.github.com
|
|
| | | | | GitHub Gist: instantly share code, notes, and snippets. | |
| | | | |
connorberry.com
|
|
| | | | | Language Comparison Perl: while (<>) { print "$. : $_" } Perl: while (<>) { print "$. : $_" } CSharp: using System; using System.IO; class App { public static void Main(string[] args) { int line_number = 1; foreach (string arg in args) { foreach (string line in File.ReadLines(arg)) { Console.WriteLine(line_number + ":" + line);... | |
| | | | |
golb.hplar.ch
|
|
| | | | | [AI summary] This article explains how to use regular expressions for string processing and introduces the VerbalExpressions library to make regex patterns more human-readable in Java and JavaScript. | |
| | | | |
enterprisecraftsmanship.com
|
|
| | | Hard coding is often considered an anti-pattern. Having values that can change over time hard-coded in the source code requires recompilation every time these values actually change. While this statement is true, I think that hard coding should be the default choice when developing an application. Hard coding vs configuration file When you work on a project or feature, there always are some magic numbers or strings that potentially can change in future. | ||