5 ms·
That’s just not true. More mature, sure. But the language experience couldn’t be more different between the two, and that counts. I don’t wanna be wasting my ti
by felipellrocha 6y ago
That’s just not true. More mature, sure. But the language experience couldn’t be more different between the two, and that counts. I don’t wanna be wasting my time with quirkiness.
- throwaway894345 6y agoI like Rust and everything, but pretending it’s going to get the job done faster than Go is just that—pretending. If you don’t like Go’s developer experience, then fine (and understandable when the alternative is Rust), but it’s not wasting time IMO.
- deleted 6y ago[deleted]
- ffdjjjffjj 6y agoIt’s not pretending. In fact, web application hosts are a great candidate for replacement with faster languages because it can have an immediate impact on infra costs.
- throwaway894345 6y agoReducing infra costs are rarely the largest opportunity for an organization, and even then the majority of infra waste is typically unrelated to language. Moreover, trading iteration velocity (and/or rewriting your application) for some marginal infra cost improvement is not a very good approach.
- couchand 6y agoWriting a for loop every time you need to iterate over a collection is wasting time.
- aaronblohowiak 6y agoMy ratio of writing to debugging has never been such that the difference between for and forEach ever mattered. That being said, debugging complex go code bases 5 years ago (when I last was doing this daily) was less fun than other languages (their armory stocks a nice assortment of footguns and the debugging support was... minimal. Might have changed since then.)
- todd3834 6y agoDid Delve exist 5 years ago? I find Delve to provide a great debugging experience for Go applications. Might be worth checking out if anyone found concern with that comment.
- steveklabnik 6y agoThe first tagged release on Delve's GitHub is from 2014, but I have no idea if it was public at the time or not.
- NationalPark 6y agoI think he's referring to the "functional" stye APIs which let you write code that looks a lot like operating on java collections with streams. It's actually pretty great, I definitely miss it in other languages.
- throwaway894345 6y agoIs it possible that there are other factors that could take even more time than writing a little boilerplate? Maybe dueling with the borrow checker?
- viraptor 6y agoIt's a tradeoff. I'd rather duel with the borrow checker a little bit every day then have a long debugging session figuring out where's a missing copy causing values taken from a map to be not available - that is a fun multi-hour challenge sometimes.
- throwaway894345 6y agoThat’s perfectly reasonable if you’re writing lots of parallel code, but frankly 95% of web server code isn’t the sort of hairy parallel code that would benefit from a borrow checker on balance.
- viraptor 6y agoThere are no threads in this scenario. You can easily lose ownership / crash on bad references when using golang maps in a single thread.
- throwaway894345 6y agoHow do you get "bad references" in a Go map in a single thread? Are you thinking of nil pointers? That's a separate issue.
- jopython 6y agoHave you tried https://github.com/elliotchance/pie https://github.com/elliotchance/pie
- deleted 6y ago[deleted]