Problem The method receives an unformatted string and it needs to put line breaks after ‘;’ or before ‘i)’ and […]

Problem Features: messages formatted with clear borders errors sent to stderr colour handling colours can be included in other strings […]

Problem The following is my sample code: String month = “09”; String year = “2014”; String monthYear = “092014”; The […]

Problem Purpose A clean, reusable module to generate pretty tables (much like those in SQL-clients), like so: +——–+——–+——–+ | HEADER […]

Problem How should I approach refactoring this code? def separate_comma(number) a = number.to_s.split(”) b = a.size/3.0 if a.size < 4 […]

Problem I wanted to see graphically what my programme was doing so I wrote this automatic flowchart generator: class Object […]