News for hackers. Stuff that matters.

4140tm

Re:Making Python fast – Adventures with mypyc on Tuesday September 27, 2022 @11:23AM (#32996531)
I just found out about Lagom from this blog post and it's exactly what I have been looking for.

All other Python options I've seen feel too involved or leak too much into your code. Lagom seems to balance everything just right.

Thank you!

Re:Uncle Bob and Silver Bullets (2017) on Monday July 04, 2022 @03:01PM (#31980608)
How do you know what testing/designing practices all "important" software projects use?

Do you expect it to be advertised?

Re:Map of Reddit on Friday May 13, 2022 @03:03AM (#31364288)
A few years back I saw something similar where subreddits were presented like a tree, based on topics (and popularity, I think). Made it easy to drill down to interesting niche subreddits.

Haven't been able to find it since.

Re:Cognition versus Programming: The Big Two – Why TDD? on Friday March 18, 2022 @04:12AM (#30719715)
You are skipping a step there - it's red -> green -> refactor

As for "tactical programming instead of strategic design" - that's entirely up to the developer and how they approach the problem. if you are prone to neglecting the design you'll do it any way. If anything, (actually) practicing TDD would force you to come up with better design.

Re:The Pragmatic Pragmatic Programmer on Wednesday January 05, 2022 @03:08AM (#29806406)
People in general are bad in dealing with nuance. And there is enough of it in these type of books for some to overheat.
Re:Ask HN: Is it still worth learning Kubernetes in 2022? on Saturday January 01, 2022 @04:34AM (#29756949)
It's not a huge investment to learn. At the same time it's very valuable. I would prepare for CKAD first and do CKA only if relevant.
Re:Kubernetes at Home with K3s on Sunday December 05, 2021 @08:41AM (#29449185)
The main reason for not working NGINX examples is because there are two NGINX ingress controllers - one by NGINX and one maintained by k8s. Real fun if one does not know this upfront. Ingress api version changes don't help much, of course
You don't need precise specs to practice TDD. If you have idea of the code you need to write, you can write the test for it beforehand - no matter how often someone might change their mind about the app.

Doing so would actually make your life a lot easier when it's time to alter functionality, because now you have well tested and testable code. Code that is written to be tested is usually a lot easier to reason about, to change and extend.

If you do it in concise manner and test behavior rather than implementation, what you previously thought of overhead will actually speed you up.

Re:Pynguin – Generate Python unit tests automatically on Tuesday June 01, 2021 @02:52AM (#27351394)
If no one knows whether the code is correct a generated test could easily do more harm than good.

If no one is able/willing to refactor the code into understandable and testable bits, there's not much left to guarantee the correctness of it.

Re:Pynguin – Generate Python unit tests automatically on Tuesday June 01, 2021 @02:46AM (#27351361)
> The domain is fintech

What you describe is the opposite of what I expect from (modern) fintech.

* no tests

* god method with no proper documentation/requirements

* no one actually understanding the function deciding how much money to send! Isn't this one of the core functionalities of fintech products?

Every year I go to the pharmacy and buy a flu vaccine. I can then get the shot in a way convenient for me.
Re:GitHub, fuck your name change on Wednesday March 17, 2021 @05:23AM (#26488473)
Do you think there's any relation between the naming of whitelist/blacklist and skin color? I certainly don't. Colors and their associations exist beyond racial identity.

Also, what is the problem in calling the relationship between two processes (one fully controlling the other) master-slave? It's a perfectly suitable analogy and does not have anything to do with any one person's ethnicity or history. I'll go a step further and say that looking at this whole thing entirely in the context of the mistreatment of african americans is unfair to people all over the world who have a history of slavery - as other posters have noted, there are plenty examples of that for people of all races. This is not exclusive to one group of people and no one can claim ownership of the word.

I find it bizarre how many arguments on the topic are just of the type "microservices are the cure" / "microservices are cancer" - no reflection on specific domains and context.

It's very much like the case with unit tests.

What is a unit? How small is micro? These two questions on their own are subject of debates of religious proportions.

I'm not a huge fan of putting client-side rendering on everything, but I still feel it's unfair and shallow to put so much blame on it.

For an app getting more than a couple page views in a session, a SPA solution may provide significant savings on rendering and db queries. Combine that with resource caching and these effects extend to following sessions.

That is, of course, if the app was built with some consideration regarding overall performance. Unfortunately, not too many web developers (both FE and BE) seem to be overly concerned with efficiency.

Re:Bosch develops rapid test for Covid-19 on Thursday March 26, 2020 @05:42AM (#22691932)
it does, when you take into account the turnover of existing accurate test methods and their accessibility
Re:Format Python Code Using YAPF on Sunday February 09, 2020 @07:42AM (#22281809)
Weird. I also use flake8 and the only mismatch between the two has been the default line length of black, which I changed to 79. All is good now.
Re:Format Python Code Using YAPF on Sunday February 09, 2020 @07:22AM (#22281757)
I have hated every single formatter I've tried, other than Black. It seems to be the only one that's not just trying to put style into PEP8 compliance, but also keep it readable and maintainable.

I'm also curious about the issues you've had with it.

Up until recently I couldn't actually do much with google maps on my phone because I have restricted it from using microphone. An error would pop up on every simple address lookup