de en es fr nl pl pt sv zh

strings

Ruby `parser` gem

Accidentally Quadratic

The ruby parser gem is an implementation of a Ruby parser in Ruby itself, which allows for Ruby code to parse and introspect Ruby code. It’s used in a number of places, but perhaps most prominently by rubocop, a Ruby linter and style checker. In parser versions <= 2.3.0.4, the parser is...

Concatenation of strings in Python

Fred C (W6BSD)

Most Python books or blog posts, teach us that concatenating strings using the + sign is a bad idea. This is true: using + or =+ is a really bad idea. In Python, strings are immutable. This means that every time your assign a new value or you want to increase the size of an existing string, Python...