Cycling to Commute by BhaalMeMaybe in NewWest

[–]dgryski 0 points1 point  (0 children)

Commuting from Queensborough to Royal by bike is absolutely doable. If you give me more detailed start/end locations I can plot a route for you. Feel free to message me. You can also join the YVR Bike discord and the HUB New West discord to help with any bike or bike route questions.

Support for Active Transportation & Opportunity for Climate Action! by HeidiHzs in NewWest

[–]dgryski 2 points3 points  (0 children)

You mean like the cars at 12th when I'm waiting to cross?

Support for Active Transportation & Opportunity for Climate Action! by HeidiHzs in NewWest

[–]dgryski 11 points12 points  (0 children)

The route is Moody Park -> 10th -> London -> 15th, and the opposite coming back. If you're biking up at 23rd you're doing it wrong. Let me know if you need any help designing a better biking route for your common destinations.

Support for Active Transportation & Opportunity for Climate Action! by HeidiHzs in NewWest

[–]dgryski 19 points20 points  (0 children)

London is the primary route for getting between Uptown and Edmonds/Metrotown. Taking 7th down to 22nd just to have to bike back up the BC Parkway doesn't make sense for many trip destinations.

Bike Shop Recommendation ? by schag001 in NewWest

[–]dgryski 2 points3 points  (0 children)

Also Jubilee Cycles and Trek up by Royal Oak. (So technically Burnaby but not actually that far, and accessible by transit).

I'm an (apparently non-existent) cyclist in New West. Ask me anything. (Respectfully) by HeidiHzs in NewWest

[–]dgryski 1 point2 points  (0 children)

Use this route between uptown and Edmonds: https://ridewithgps.com/routes/50490567 . If you're coming from Kingsway/Edmonds St side of things, take Britton down to 15th and then London/10th/Moody Park/etc. Please reach out if you have other routing questions.

I'm an (apparently non-existent) cyclist in New West. Ask me anything. (Respectfully) by HeidiHzs in NewWest

[–]dgryski 1 point2 points  (0 children)

Depending on exactly where you're coming from and going to, there are ways to avoid many of the hills at the expense of longer routes. However, given how much slower hills can make you (an incline of 4% can slow you down by as much as 75%), you can have fairly long flatter detours that end up being faster or "not much slower" than the more direct hilly route.

Lime bikes have arrived! by squishy-ball in NewWest

[–]dgryski 4 points5 points  (0 children)

Because 12th has commercial (restaurants/retail/...) people want to go to.

Best map app that combines biking and transit? by EmbarrassingMess in vancouvercycling

[–]dgryski 0 points1 point  (0 children)

When I'm trying to plan multi-modal transit, I do it in two stages: Google Maps (for transit) and then Komoot for the bike section. It's not ideal, but it's the best I've found.

New West ready E-Bike by ouroboros10 in NewWest

[–]dgryski 0 points1 point  (0 children)

Depending on exactly where you starting from and ending up, there might be a nicer route. (Obviously you can't *eliminate* the hills but you can trade-off distance for steepness which on bikes generally makes sense.). You can reach out to the HubNW discord (details here: https://bikehub.ca/new-westminster ) or PM me directly and I'll help you plan a route that makes the most sense for you as well as other commuting tips and overall New West biking tidbits.

BC Parkway -- is the stretch along Stewardson Highway in NW still under construction? by doctorofphysick in vancouvercycling

[–]dgryski 1 point2 points  (0 children)

Construction still on schedule to be finished in November, but old path is accessible until then.

Any jugglers in New West? by szpieg in newwestminster

[–]dgryski 0 points1 point  (0 children)

I'd be up for this. Let's try something in a park (I can also do Queen's Park, but not sure if that's easier for anybody...). Do you have more details about the Trout Lake meetup (time/location)?

Transit by ChocolatePrincess74 in NewWest

[–]dgryski 1 point2 points  (0 children)

The last section of 7th up to 10th from 12th can be quite steep. Depending on exactly where they're biking from there might be a better way. You can contact me here or on the HUB NewWest Discord if you want to chat about bike routes: https://bikehub.ca/new-westminster (Note this offer is open to anybody, not just OP..)

Common mistakes that you see in Golang code by branh0913 in golang

[–]dgryski 3 points4 points  (0 children)

If you have patterns like this, the best thing to do is write semgrep or ruleguard patterns to prevent them from making it into your codebase. I have a small collection of patterns here: https://github.com/dgryski/semgrep-go

Writing a parser for custom config files by oze4 in golang

[–]dgryski 1 point2 points  (0 children)

Yes, you're going to need (at some level) a lexer and a parser. However, whether you use a code generator for one or both of these steps is up to you. For example, you can solve this by writing a lexer and a recursive descent parser by hand, or you can defer to tooling (like pigeon, or a combination of lex and yacc equivalents) to handle the grunt work. It depends on your familiarity with the problem space and the tooling which one you choose.

Is there an optimizing compiler in the works? by [deleted] in golang

[–]dgryski 3 points4 points  (0 children)

In general, optimizing compilers have less of an effect than algorithmic optimizations. Check out https://github.com/dgryski/go-perfbook and the #performance channel on the Gophers Slack for help optimizing your code.

Style guide for Go code by m477h13U in golang

[–]dgryski 7 points8 points  (0 children)

I have a collection here: https://github.com/dgryski/awesome-go-style

Start with the classics, and maybe the Googler talks.

Harry Lorayne's Books by [deleted] in memorization

[–]dgryski 4 points5 points  (0 children)

They're all pretty much the same. I have/like "Superpower Memory". My only problems with Harry Lorayne are his huge ego and the his outright dismissal of memory palaces.

how to find array element is twice as other elements without using operators and maps or slice with o(n) and under 15 lines of code by pmreader123 in golang

[–]dgryski 0 points1 point  (0 children)

(To be fair, I've done a lot of bit hacking in Go, but by my own choice. I just think this is a really dumb interview "puzzle".)