Active discussion on this post from Apple https://news.ycombinator.com/item?id=19396966
16 karma · joined April 13, 2018
Active discussion on this post from Apple https://news.ycombinator.com/item?id=19396966
https://www.greentechmedia.com/articles/read/tesla-fulfills-...
Step, Step Into, Resume.. use different function keys than I'm used to on Linux.
Edit + Resend doesn't work for me on Linux. It works on Windows for me.
Copying headers doesn't work well for me on Linux. I have to click 'Raw Headers' to copy a header. Works fine on Windows.
Chrome is still faster than Firefox.
I prefer chrome and Edge's download monitor.
I prefer Firefox's proxy controls.
The problem with the wider go community is they are usually not driven by evidence, but adherence to a philosophy. eg, its not possible to write large programs without generics.
I use both the receiver and the Bluetooth support, and the three receiver function daily.
I love the shape of the mouse, truly the best mouse I've owned.
Additionally not being able to share images as a feature? I guess everyone will do the three step upload to imgur first.
In my world - if I could get away with less different clients I would. It makes it a nightmare to support.
When you model by hand you typically use ideal models. SPICE models can be vastly more complex. A good example is a diode which is harder to model as it's a non-linear device.
Simulated "electricity" (voltage and current) is reduced to a set of differential equations, which the program then uses to plot charts.
Don't get me wrong - the iPhone was ground breaking. It's the hundred little details that made it special.
But would someone else have done it? Yes. Is this relevant? No
I'd suggest a simple language requires a simpler implementation.
> It wasn't enough to just add features to existing programming languages, because sometimes you can get more in the long run by taking things away. They wanted to start from scratch and rethink everything. ... [But they did not want] to deviate too much from what developers already knew because they wanted to avoid alienating Go's target audience.[1]
Sometimes for simple problems a simple tool is the best fit.
[1]https://arstechnica.com/information-technology/2009/11/go-ne... (via wiki)
My mistake
> How is that possible? As you say on the next line, they don't need to conform to any format. How can my linter know that I don't have a package that parses "josn" tags, and that I typoed? Please link me to the lint rule if it exists.
Annotations are used at run-time via reflections. JSON marshaling is a common use for annotations.
> If I have a struct with the tag `josn:"foo"` instead of "json", I won't get an error, it'll just silently blow up.
well it won't blow up, it won't function as intended - much like a logical error. A linter, like the one that comes with VSCode will catch this error for you.
Annotations don't need to conform to any format and are not compile time errors. I am unsure how this could change while maintaining the Go1 guarantee. Perhaps this could be an area of improvement going forward - having typed annotations.
> If I add a new field, I have to manually add the tag too.
It will work in go too. If you want it to deviate from the naming of your struct field, you would need to describe the map. It's like complaining that when you add a field to your database, you need to add it to your code too. Sure it's not as powerful as Rust, but that's the point.
> In rust, I write '#[serde(rename_all = "camelCase")]' above a struct. If I typo, it won't compile. If I add new members to the struct, they'll work without me having to remember some boilerplate.
That's handy, but incompatible with Go 1. It is worth noting that Go and Rust are different. Rust is more focused on power, while Go has more of a focus on simplicity.
With just rsc we lose a little of this. There are many other incredibly talented engineers involved such as Ian Lance Taylor. I'm interested if this philosophy will still be important in the future.
Go is far from perfect, I just don't agree that lumping things in a good/bad pile is very insightful.
Engineering is all about making compromises. It's unsurprising that you'll meet everyones use cases that it's not designed for. The article would have provided additional value if it explored alternatives to the bad, and the disadvantages that come with them.