HNHacker News
TopNewBestAskShowJobs

michaelmcmillan

1,010 karma · joined June 5, 2012

https://michaelmcmillan.net
submissionscomments
michaelmcmillan··on ReMarkable: A paper tablet that lets you read and write
What was that?
michaelmcmillan··on Ask HN: What text editor do you use and why is it your editor of choice?
Then I suggest you disprove my hypothesis.
michaelmcmillan··on Svelte – A UI framework that compiles into tiny standalone JavaScript modules
That reasoning quickly falls apart when you throw a cache in front of your backend.
michaelmcmillan··on Ask HN: What text editor do you use and why is it your editor of choice?
No complex commitment necessary. You'll be faster with vim in less than two days. You'll never look back.

alias nano='vim'

michaelmcmillan··on Quick, Draw
Could they not easily avoid this by using their Google Search images database? They already have a filter for "drawings". Combining that with the title of picture/alt attribute, you could pretty much avoid that scenario.
michaelmcmillan··on Why Pylint Is Both Useful and Unusable, and How You Can Actually Use It
I grant you that linting catches bugs, but what I've argued for (perhaps badly) is that the bugs it catches are very shallow, but more importantly they make up a relatively small subset of the bugs proper unit tests catch. That's what makes the comparison you made deceptive.

I use both linting (pylint actually) and unit tests, so I am not advocating that you should scrap your linting tools. I am just trying to point out the difference.

Your B) argument is yet another indication that the tests are not good enough. The example bug OP posted is what made me comment in the first place. If your tests don't catch that your tests are useless.

michaelmcmillan··on Why Pylint Is Both Useful and Unusable, and How You Can Actually Use It
You are making my point. It makes no sense to call a sandwich cheaper than a condo when you are evaluating what to buy when looking for a place to live. That is what I was pointing out.

Testing and linting does different things. Of course a sandwich is cheaper than a condo, but what does that have to do with what we are talking about?

As for the claim that you can't have unit tests for everything: What do you mean? No, you can't test all branches or combinations in a system, but you can have a 100% test coverage (aka. hitting each line at least once).

michaelmcmillan··on Why Pylint Is Both Useful and Unusable, and How You Can Actually Use It
Sure, "bug" as a term is as elastic as you want it to be. I was pointing out the false equivalence you implied by writing "cheaper". Testing and linting does not provide the same value, so calling it cheaper is a kind of fallacy.
michaelmcmillan··on Why Pylint Is Both Useful and Unusable, and How You Can Actually Use It
They serve two completely different purposes. Testing ensures the logic is correct, linting is checking the code for syntax errors and bad practice.
michaelmcmillan··on Why Pylint Is Both Useful and Unusable, and How You Can Actually Use It
I know they were there, but they are obviously useless. Hence my comment: Fix your tests.
michaelmcmillan··on Why Pylint Is Both Useful and Unusable, and How You Can Actually Use It
The fact that your unit tests did not catch that bug tells me you should spend less time linting and more time covering.
michaelmcmillan··on Ask HN: What's your favorite tech talk?
Fast test, slow test by Gary Bernhardt: https://www.youtube.com/watch?v=RAxiiRPHS9k
michaelmcmillan··on Google runs on 5000 times more code than the original space shuttle
And approximately 5000 times more unreliable.
michaelmcmillan··on Tesla confirms “Autopilot” crash in Montana
I thought the entire autopilot could be replaced with an over-the-air software update?
michaelmcmillan··on How to win the coding interview
I had a go at this with Python. It has tests, a fast implementation (O(n/2)) and uses memoization to optimize.

https://github.com/michaelmcmillan/palindrome

michaelmcmillan··on The fall of Salon.com
This is just the tip of the iceberg. Continue down the rabbit hole if you want to see how dishonest and malicious Islam apologists like Glenn Greenwald and Reza Aslan are. Flabbergasting.
michaelmcmillan··on Ask HN: How do you handle large Python projects?
I share your experience. Small decoupled modules developed with TDD has turned out great at our project. That's not to say that we haven't had major refactorings, but they have been painless because of the confidence provided by a proper test suite.
michaelmcmillan··on The fall of Salon.com
Salon is really where digital journalism goes to die. The level of dishonesty displayed is really outrageous [1].

[1]: https://www.samharris.org/blog/item/sam-harris-the-salon-int...

michaelmcmillan··on SpaceX successfully lands a Falcon 9 rocket at sea for the third time
I think that's a tautology :)
michaelmcmillan··on Show HN: Update your requirements.txt file with Pur in Python
Yes, it is a new service, but I don't see how that holds up as general argument towards not using it. Your second point is false, it supports private repositories.
michaelmcmillan··on Show HN: Update your requirements.txt file with Pur in Python
There is a free service that does this for you. It automatically sends a Pull-Request whenever one of your dependencies are outdated. This means that you can easily check that all your tests pass before merging it.

https://doppins.com

michaelmcmillan··on Uvloop: Fast Python networking
> Just one point, please make sure you have designed DB access as a core part of your framework (e.g. [1]). Too many frameworks discount database interaction until it's too late.

I strongly advise against this. One of the reasons Flask is so attractive is the fact that it does not enforce any database on you.

Thanks to its decoupled design you can use it purely as a routing library, which is great! Letting the framework decide something important as the database is a bad idea. [1]

[1] https://blog.8thlight.com/uncle-bob/2012/08/13/the-clean-arc...

michaelmcmillan··on Remote Code Execution in ImageMagick (CVE-2016–3714)
https://github.com/ImageMagick/ImageMagick/commit/e93e339c0a...
michaelmcmillan··on Google.com partially dangerous
If I remember correctly, that guy was an employee. Still no excuse though.
michaelmcmillan··on Git Tips
I never recall the command, but it lives in my bash history somewhere. Running your test suite over a series of commits can be very handy.
michaelmcmillan··on Cruise
That is a flawed analogy. It would be correct if you replaced "washed" with "made".
michaelmcmillan··on My Heroic and Lazy Stand Against IFTTT
I'd say it is the only right way to act when you have been called out on sending scary legal contracts and bullying services into working for you for free.
michaelmcmillan··on My Heroic and Lazy Stand Against IFTTT
You do not seem like a very serious CEO.
michaelmcmillan··on Alert: NPM modules hijacked
How can a test detect a hijacked dependency that acts exactly like the original, but with a backdoor?
michaelmcmillan··on Brussels Rocked by Terrorist Attacks
How does the actual belief in paradise have anything to do with politics?
← PreviousPage 7 of 12Next →