Mathematically proved: Steven Crowder v. The Daily Wire

The conflict between Steven Crowder and The Daily Wire has made people in the conservative sphere argue who is in the right, but to me it's simple, and I don't understand why people don't see the obvious math. I contend I can prove mathematically who was shittier. Let's start with a few facts: We don't … Continue reading Mathematically proved: Steven Crowder v. The Daily Wire

Advertisement

My tone doesn’t make me wrong, or how I convinced the Ruby project to fix an inconsistency

Back in 2012 I stumbled upon an inconsistency in Ruby's handling of time zones which took me a lot of discussions to get fixed, but eventually I managed to get it done. Essentially this didn't work: DateTime.strptime('0 +0100', '%s %z') The time zone part (+0100) was ignored. If you are not familiar with strptime/strftime, the … Continue reading My tone doesn’t make me wrong, or how I convinced the Ruby project to fix an inconsistency

Refactoring JavaScript promise tests

I've been writing some tests for promises in QUnit, and I noticed many areas of opportunity to simplify the code. Tests in QUnit are simple: test('error check', assert => { const error = 'Bad Request'; assert.equal(error, 'Bad Request'); }); Not so much when promises are involved: test('promise', assert => { const done = assert.async(); /* … Continue reading Refactoring JavaScript promise tests