HNHacker News
TopNewBestAskShowJobs

0x445442

2,137 karma · joined September 11, 2016

submissionscomments
0x445442··on The Limits of Rationality
It’s been a number of years since my last reading but what I remember is it pulling at the thread of the concept of quality. The author stumbles upon this while teaching an introductory writing course at college. What he discovers is that it’s difficult to reduce the act of writing to a prescribed set of rules to follow in order to produce a quality piece. And yet, somehow his students, without training or much effort, are able to judge which pieces exhibit quality. This idea literally leads the author to madness.
0x445442··on The Limits of Rationality
Fantastic book. It’s exploration of quality is amazing.
0x445442··on A Reflection on the Small Web
But then he blows it by linking to Instagram.
0x445442··on Paving the on-ramp to Java
I agree, mocks should not be used and if you remove mock dependencies it usually exposes glaring problems in the code organization and design because the tests become overly complex. The dependencies should be coded to an interface so that you can inject whatever implementation you want.
0x445442··on Paving the on-ramp to Java
Because you have to address the separate permutations and concerns of multiple stack levels versus just declaring what you want the result to be from those additional stack levels. In essence, your "unit" test is a lie because your testing other units accidentally. I see a similar problems a lot with classes that have a small number of public methods which delegate to a larger stack of internal private calls. Unit tests are about testing the unit explicitly and forcing/contriving results of dependencies which you shouldn't be concerned with because those dependencies have been explicitly tested elsewhere. When these situations arise what you have are in memory integration tests, not unit tests.

As an example, suppose I have a static method that takes in an object and returns a result based on the state of that object. Now I have conditional logic in the unit under test that has a dependency on the result of that static method. In my unit test, I don't want to go to the trouble of creating the state of the object to force the delegate call to return a certain result that determines the execution flow, I want to just force that call to return the result I need.

0x445442··on Paving the on-ramp to Java
But even here you’re testing the same code twice. One directly with the tests for the class the static methods live in and once accidentally when you test the class that includes the util class as a dependency. This situation can be fixed by replacing the static methods with Functions.
0x445442··on Paving the on-ramp to Java
But Java has a solution for the “good static methods” you’ve described in the Function interface. I’d submit that a FooLib class with these static methods could be replaced with a foo.lib package with the corresponding Function implementations. This allows great flexibility with unit testing because you don’t even need a mocking framework. Instead, you just provide a dummy implementation of the Function the unit under test depends on.

In fact, dependence on mocking frameworks is a huge code smell because it covers over the common practice of not coding to an interface. If you want to expose poor design in a code base, remove the mocking decencies and see how hard it is to rewrite the tests.

0x445442··on Real World Micro Services
> Why is the standard library not an HTTP call?

You mean like string concatenation? Come on man. As far as evolution goes, that’s what semantic versioning is for.

0x445442··on JMAP: It’s Like IMAP but Not Really (2019)
> Almost all requests in JMAP are to the same URL using an HTTP POST to submit a JSON body of “methods”. A method is an action or query you want to perform like “give me the 20 newest messages in this mailbox”

Can the HTTP spec just add a CALL verb already?

0x445442··on A software engineer is always wrong
Software Engineer? Where is this engineering of which you speak?
0x445442··on Florida to Supreme Court: Let us regulate social networks as common carriers
As I understand it there was plenty of federal property destroyed during the summer of 2020. Are you really saying the DOJ doesn’t prosecute people outside of DC? The insanity is turning a blind eye to the obvious hypocrisies and double standards that exist with the two examples.
0x445442··on Florida to Supreme Court: Let us regulate social networks as common carriers
Twitter reinstated him because he has internal communications showing Twitter colluded with the Biden administration to silence him for publishing information that went against the administration’s narrative.
0x445442··on Florida to Supreme Court: Let us regulate social networks as common carriers
> The problem is that no one filing these various cases against social media is properly alleging sufficient facts to suggest government coercion…

Alex Berenson did.

0x445442··on Florida to Supreme Court: Let us regulate social networks as common carriers
I would define those convicted of January 6th “insanities” as political prisoners when those responsible for the Summer 2020 violence were not convicted of crimes and when people like Ray Epps were not prosecuted for their role on January 6th.
0x445442··on Ask HN: Which books you have read till now that were worth investing time in?
As I get older I grow more impatient with the effort of capturing my experiences with photos or other media. Organizing the media is a hassle and the real time effort diminishes the experience because my memories of the experience are interspersed with the effort to capture it.
0x445442··on Amazon built a new unit to fix its engineering culture
> Now granted many people at these places are salaried…

This shouldn’t make a difference because in theory they would be doing 2x more work which is essentially cutting their salary in half. I realize that the dev team being twice as efficient doesn’t necessarily double the unit’s revenue but it’s some multiple.

0x445442··on Amazon built a new unit to fix its engineering culture
At almost every company I’ve worked for I would estimate that if I worked on or made changes like you have described the benefit to cost ratio would be multiples larger than any of the actual features I worked on. This was always perplexing until I realized my assumption that managers were given a pool of money and were judged on the ROI they generated on that money was false.
0x445442··on Linux command line for you and me
Don’t forget “dirs -v”. I’ve tried to use Powershell a few times and always tap out because it doesn’t come with the dirs command. It’s so fundamental to my workflow a shell without it or without an easy way to implement it is a no go.
0x445442··on Why Craigslist still looks the same after 25 years
It probably looks the same because it doesn’t need to look different. And it seems CL wasn’t enticed by the cult of money that is Silicon Valley. Thus, their organization was not taken over by countless layers of middle management attempting to justify their own existence by adding a bunch of useless features.
0x445442··on The movie Hackers was released 27 years ago
If you’re going by IQ I’d bet he’s at least in the 145-159 highly gifted range.
0x445442··on The movie Hackers was released 27 years ago
I imagine there’s still cool gigs. It’s just not with The Enterprise doing Webscale.
0x445442··on The movie Hackers was released 27 years ago
Post of the day award!
0x445442··on Ask HN: What interesting problems are you working on?
If I read the site correctly it’s the last bit that is of particular concern. Why on earth does one need to make 220,000 per year independently in order to clear the same amount as some making 180,000 as an employee?
0x445442··on BlueJ – A Lightweight Java IDE
James Coplien
0x445442··on Apache NetBeans 15
The single window option from IntelliJ is a hack of sorts, the last I checked they have some notion about importing a module vice a project. I'm not sure why on earth you would want separate windows though when, say, you're working on multiple Spring Boot projects and a couple of library jar projects that all interact with each other. Switching back and forth from window to window seems like self cutting.
0x445442··on Apache NetBeans 15
Netbeans > Eclipse > IntelliJ when it comes to working on multiple projects. I still see colleagues who have a separate IntelliJ window open for each project they need to work with because IntelliJ makes it so damned convoluted.
0x445442··on Some New HTTP Verbs
Don’t know if this post was meant as a joke but I could see DO or CALL as useful additions. Sometimes you just want a process to run where input, if any is required, will not be persisted nor used as query filtering criteria and no query result sets are expected in return. Yes, I know there are other constructs to perform these tasks but from a pragmatic standpoint it’s simple to just throw up an http endpoint to address these businesses cases. What’s annoying is having to decide on whether to use POST or GET.
0x445442··on Covid: Summary of lab-origin hypothesis
> but I think it make sense to question the motivation in this instance.

By this logic it's equally valid to question the motivation of someone hand waving the questions away as "copy pasta" rather than just answering them. The Socratic method is a perfectly valid way to further an argument.

0x445442··on Covid: Summary of lab-origin hypothesis
Your speculation of the poster’s positions on said questions is not in good faith either. Even if your assumptions were correct, they’re entirely irrelevant as the questions stand on their own.
0x445442··on After self-hosting my email for twenty-three years I have thrown in the towel
You asked it there is any money to be made in email, I provided you with anecdotal evidence that there was.
← PreviousPage 14 of 34Next →