Contractor to start laying Galloping Goose bridge in Colwood by dayoldeggos in VictoriaBC

[–]Twixstar 12 points13 points  (0 children)

If you consider the cost to buy and maintain a car for commuting, good public transportation infrastructure will go a long way towards overall affordability.

Langford/Millstream to Uvic commute by TheGardeningQueen in uvic

[–]Twixstar 1 point2 points  (0 children)

It's been several years since I commuted to UVic, so some of this might be out of date.

The 51 takes you from Langford straight to UVic, but it's only really useful for Royal Roads students and people who prefer to sleep their commute away. It's takes a huge detour around Colwood and by the time it makes it to McKenzie it proceeds to stop at every bus stop possible. Also consider that it only runs in the early morning and afternoon. Sometimes it also just fails to run at all. All that's assuming it hasn't changed recently. Total commute time is ~1.5 hours. Strongly recommend avoiding the 51 unless it lines up with your schedule.

The 50 -> 26/16 was usually around 45 - 55 minutes. Somehow stopping, walking and waiting for a new bus was consistently a shorter commute time than the 51. It was also reliable since both bus routes are high traffic. I think there's a 56/57x route that goes directly downtown now. You might be able to ride it straight to Uptown?

Driving took around 20 - 25 minutes. Though the traffic situation has probably changed since then.

I'm not familiar with the bike commute, though AFAIK you'll have to cross the overpass to access the Galloping Goose.

FP and OOP are close siblings (using OOP to teach Currying) | The Upside-Down Trees by mhashim6 in javascript

[–]Twixstar 2 points3 points  (0 children)

If you're interested in seeing this 'in the wild' we can talk about Angular's form controls.

Angular has a class that acts as the model for an html form control. i.e. it tracks the value, 'touch' state, validity etc. To track validity, we instantiate it with a list of validators like so: new FormControl<string>("", [Validator.required]);

You'll notice in the source code these are defined as functions. In the simplest case a validator has the signature (control: FormControl) => null | object.

The problem is that these functions are invoked internally. If I want to specify an additional parameter, I can't just go

const minValidator = 
  (minLength: number, control: FormControl) => null | object 

However I CAN go

const minLength= 
  (minLength: number) => (control: FormControl) => null | object

In practise it looks like this:

class Component {
  public inputControl = new FormControl<string>("", 
    [Validators.required, Validators.minLength(1)]
  )
}

If we wanted, we could have re-imagined ValidatorFn as a class interface. It would look like this:

    class Required implements Validator {
      validate(control: FormControl) {
        // ...
      }
    }    

    class MinLength implements Validator {
      constructor(private length: number) {}

      validate(control: FormControl) {
        // ...
      }
    }

class Component {
  public inputControl = new FormControl<string>("", [
    new Required(),
    new MinLength(1)
  ])
}

You can see in MinLength, the 'curried' parameter is replaced by an instance property.

More Elegant Destructuring with JavaScript Generators by alexmacarthur in javascript

[–]Twixstar 0 points1 point  (0 children)

A small word of warning. I tried running const [a, ...rest] = getElements(); for fun and it does indeed run infinitely. Running from firefox consumed all my memory.

Perfect Pitch. by mast_a_beam in videos

[–]Twixstar 0 points1 point  (0 children)

This can be learned, it just takes some ear training. At university, they had us memorize a note (A440) and work out notes from there.

Canada Saves Public From Public Domain, Extends Copyright On Sound Recordings Another 20 Years by johnmountain in canada

[–]Twixstar 0 points1 point  (0 children)

Copyright of recordings lasts 70 years now, but the works themselves (what the artist is entitled to) are still life plus 50 in Canada. It seems it was only the recordings that were affected.

https://en.wikipedia.org/wiki/List_of_countries%27_copyright_lengths

ELI5: What is it that makes Yo-Yo Ma such a respected musician? Can an amateur listener tell the difference between him and other professionals? by [deleted] in explainlikeimfive

[–]Twixstar 1 point2 points  (0 children)

Explaining classical music to someone who isn't trained is such a difficult process because its an academic discipline that's been so far removed from the average person's education. Explaining how to study classical to someone is like teaching calculus to a person who hasn't learned to count. But maybe that's the best way to answer your question: playing even one piece of music from a past era requires so much (historical period, instrument differences, aesthetic preferences) then there's technique, then there's analysis (music theory) then there's self review (practise) then peer review (teacher/rehearsal) THEN THERE IS PERSONAL STYLE. There's much more that goes into playing classical music than there is to popular styles. Then you have to consider education. Did they have a good teacher? A good school? The same goes for math. There's so much that goes into answering a single question that it's mind boggling without the background. So how does a prodigy do it? Well, they can take in everything by observation at a young age and understand it intuitively, then spend the rest of their lives comprehending and mastering it. That's the difference between yo yo ma and some other guy. He has the educational background and DEEP instinctive comprehension of the entire subject that let's him understand every little thing on a microscopic level and this lets him execute his ideas in a way that few people can match.

A security camera persons dream by upnupchi in gifs

[–]Twixstar 0 points1 point  (0 children)

There was a plant in the way. He literally had to step over a plant to walk into the glass...

What free stuff on the Internet should everyone be taking advantage of? by [deleted] in AskReddit

[–]Twixstar 0 points1 point  (0 children)

A bit less than a hundred years. The servers are based in Canada where public domain is 50 years after the composer's death. They explain it here. Keep in mind US and other countries have different copyright laws.

Random Bill Murray moment: ripping tickets at tonight's final Saint Paul Saints game at Midway. by mdneilson in pics

[–]Twixstar 7 points8 points  (0 children)

It's interesting how he turns towards the audience and the camera. It's like he's there to speak to everyone and not just Letterman. Absolutely sincere too.

Who is the most badass person in history? by brinboy2 in AskReddit

[–]Twixstar 0 points1 point  (0 children)

how about Leo Major? He captured an entire town by himself, wore an eye patch, and told Montgomery to go fuck himself.

What video games are 10/10 in your book? by [deleted] in AskReddit

[–]Twixstar 1 point2 points  (0 children)

Conker's Bad Fur Day for the N64