fhunt | 5 years ago | on: Vaccines should end the pandemic, despite the variants, say experts
fhunt's comments
fhunt | 5 years ago | on: Vaccines should end the pandemic, despite the variants, say experts
fhunt | 5 years ago | on: Vaccines should end the pandemic, despite the variants, say experts
fhunt | 5 years ago | on: Vaccines should end the pandemic, despite the variants, say experts
fhunt | 5 years ago | on: Speed of Rust vs. C
fhunt | 5 years ago | on: Vaccines should end the pandemic, despite the variants, say experts
We trust experts from other industries so much that we do not tolerate any other view without having a clue what is going on ourselves. The reason is simple, we have our views, they are political and we refer to "experts" to make our views scientific. Just my opinion and I bet that a huge number will disagree again with this comment. But—could I be right? Why not admit that I might be right? Because it's a political topic and your opinion is set.
fhunt | 5 years ago | on: Speed of Rust vs. C
fhunt | 5 years ago | on: M.2 on a Raspberry Pi – The Tofu CM4 Carrier Board
fhunt | 5 years ago | on: Vaccines should end the pandemic, despite the variants, say experts
Why do we trust "experts" from other industries?
fhunt | 5 years ago | on: M.2 on a Raspberry Pi – The Tofu CM4 Carrier Board
fhunt | 5 years ago | on: Learn Go by writing tests – Hello, world (2018)
didn't say this
> Carefully written tests allow you to confidently edit the code without worrying that you might have broken something in the process.
yes true but again you get this with typed code without any tests for 80% of the code as well, look, it's about the quantity and what you are going to test. with types you need way less unit tests (some like ben awad say none!) but still integration tests. still doing tests like crazy and like it's 2010 defocusses your devs and makes refactoring much more tedious, change a small thing and rewrite twenty unnecessary tests from a too ambitious test warrior who didn't understand types. this creates a notion where codebases get stale and untouched for years. nobody likes to refactor test code bc it's an unattached piece of code which complicates things more than it helps, it rarely feels like a true spec but rather like some random code and the next one wonders why his predecessor wrote this test at all. this is so the past idk why people are worshipping this.
Write tests where types don't help anymore (integration tests!) and things are crucial, otherwise focus on the core logic. I have rather devs who write excellent typed code with just very few integration tests than somebody who drives nuts and goes down the full rabbit hole writing 10x more test code nobody asked for than actual code paired with such blog posts like from OP on top, they've missed the boat.
fhunt | 5 years ago | on: Learn Go by writing tests – Hello, world (2018)
TS has the best and most responsive editor support (tsserver). I know that Rust's is much slower but IDK much more than that.
Re ecosystem and build system: TS' build system is not trivial but it's very flexible and has a bigger ecosystem.
fhunt | 5 years ago | on: Learn Go by writing tests – Hello, world (2018)
Where did I say that? I just meant, and my apologies for not being clear, focus should be types, ofc you still need tests. But not as many as a decade ago and more important, people must drop this dogma that tests are the key to everything. There are not and the more tests a codebase has the worse its quality and maintainability.
> I still practiced TDD
You can do this ofc but my experience differs: Once you have an excellent type system, both in terms of language features and tool chain eg editor, you can literally code for days without running even the compiler once. This is pure flow and very much the opposite of TDD. But the entry barrier of is much higher than TDD. Don't get me wrong, you still need tests but TDD?? IDK, this feels like trial-and-error-coding from 2010. I mean if we still used all Ruby, yes tests and TDD everywhere but the environment has changed.
fhunt | 5 years ago | on: Learn Go by writing tests – Hello, world (2018)
Edit: Since this seems to be an unpopular opinion why stop here, haha: The more one stresses tests the more he/she signals that he must have missed years of advancements in software engineering. If you do this with peers, ok, but publicly? Even Ruby added types, not the kind of types we hoped for but still, it's a strong signal. If your lang has a mature type system you don't need half of your tests anymore and might not be into such write-ups. Praising and writing gazillions of tests don't make you look smarter, very much the opposite.
fhunt | 5 years ago | on: Kinto: Mac-style shortcut keys for Linux and Windows
fhunt | 5 years ago | on: From Vim to Emacs in fourteen days (2015)
fhunt | 5 years ago | on: From Vim to Emacs in fourteen days (2015)
fhunt | 5 years ago | on: From Vim to Emacs in fourteen days (2015)
fhunt | 5 years ago | on: From Vim to Emacs in fourteen days (2015)
fhunt | 5 years ago | on: Kinto: Mac-style shortcut keys for Linux and Windows
And even if not? Why not question existing methodology, people just follow some news outlets believing one and only thing.