HNHacker News
TopNewBestAskShowJobs

twhitmore

299 karma · joined April 22, 2019

submissionscomments
twhitmore··on A look at modern PHP
You can do this in Spring Boot/ Java, with one Java class and one config file.

And it will likely be an order of magnitude more scalable & reliable than the PHP, having proper logging, security features, etc.

Whereas such PHP systems in my experience tend to be unreliable, in need of maintenance and often broken.

The Java/ Spring Boot option will also take you all the way to a high-end commercial system/ large website/ webapp.

twhitmore··on A look at modern PHP
Spring Boot has most of the important parts of this. And super easy to call a library for anything else, or write 10-20 lines of code yourself.

This is all in a performant, reliable and secure compiled language (Java). Language improvements and modern frameworks have also addressed the long-winded code which used to be an issue.

twhitmore··on ICANN board withholds consent for a change of control of the .org registry
I have found WSJ to carry one-sided articles with little factual basis quite frequently, actually.

Such travesties as: Perfect market theory, Chicago School/ dry economics, ignoring the negative effects of monopolies/ short-term extractive capitalism.

I know they used to be "reputable" but. Today large parts of America are a crumbling trashcan. Where is their acknowledgement of this problem, and how capitalism should solve it?

I would recommend The Economist as a factually-based business & economics subscription.

twhitmore··on Michael Burry of ‘The Big Short’ Slams Virus Lockdown
People's lives are worth millions of dollars. Each. Government estimates are around $5 million per life.

It's the coronavirus causing economic damage, customers dying or having to stay home to avoid dying is bad for business. I don't know what planet this is not obvious to people on.

Fastest way to address this is to quickly contain & suppress the virus -- isolation, testing, tracing, eradication -- after which careful & gradual reopening can occur.

Of course this requires a competent government; a functioning health system would help too. So would a government capable of supporting businesses to put employees on paid furlough, pause interest on mortgages & debts, issue stimulus efficiently, etc. Many other countries are able to accomplish much of this -- unfortunately the US is largely not. Substantially due to the extractive capitalist/ monopolist attitudes of greed & "money at any cost" seen right above.

twhitmore··on DLL hijacking vulnerabilities in Nirsoft tools
Raymond Chen in this article seems to rather minimize the severity of arbitrary code execution attacks allowed by buffer overruns.

His logic is also faulty since he conflates 'End-User' permitted capabilities (what the App correctly allows the user/ request to do) with Application permissions to the OS.

Really this seems like it might be blinded by too many years of C/ C++ & immersion in stale campus group-think.

twhitmore··on Stop the Apple and Google contact tracing platform
Generally I agree that location tracking is already relatively widely done, and the Apple/ Google protocol makes reasonable efforts to preserve privacy.

I do share some caution, however -- tracing 'personal contacts' by BTLE is likely much more personally specific, and hence significantly more intrusive, than just location.

If such mechanisms became more generally available they would likely become used as part of the machinery of repression in states such as China. Or everywhere (depending on our future).

Location is fairly imprecise as to social contact, but I guess the concern would be that this will be accurate enough to track dissenters, find their contacts, and accuse/ imprison you.

twhitmore··on We called it RAID because it kills bugs dead
Is it just me, or does this seem terrible? Lack of a stable business key & limiting key size to 4.5 digits just seems terribly lacking in any competent database practice.

I was building ISAM database applications for small business in the early nineties, and we used 6 digit keys.. and an index to access records by.

I'm sure Raymond Chen is a nice guy, but this just makes me think of a retard stabbing his cheek when trying to eat with a fork. (Dirty Rotten Scoundrels movie.)

twhitmore··on We called it RAID because it kills bugs dead
It probably has more digits for the primary key than the MS bug tracker originally mentioned. Sigh.
twhitmore··on Please stop recommending Gitflow
I've seen Git Flow fail in even relatively small software houses.

I've seen sensible trunk-based development with feature & release branches (equiv to what MS call 'Release Flow') work well from small to huge (400+ devs) environments.

twhitmore··on Radiooooo – The Music Time Machine
Very cool. Listened to some French and African 70s stuff.. Thanks for posting this.

One minor glitch -- user registration form wouldn't work for me.

It told me there was an error, therefore "my email must already be registered".

twhitmore··on Three Types of Data
To perhaps offer a slightly wider perspective on kinds of data & lifetimes:

- Constant data

- Long-term configuration

- Medium-term configuration

- Client/account data

- Business transactions

- Transitory processing work

twhitmore··on Fantastic Bugs and Where to Find Them
When you start stack-swapping, at some point you're going to need to deal with unwinding the stack (exceptions).

What surprises me is that they said that, in most cases, throwing exceptions seemed to work OK!

I would have assumed that if it wasn't properly supported by the Boost Context object, it would have frequently been corrupting memory. Maybe they just never noticed the corruption.

twhitmore··on SoftICE
I used SoftICE to debug a multitasking IVR application I'd written in C/C++ with a stack-switching kernel on top of MS-DOS :) Great project, but it would crash once or twice a day on both the test machines we had. Couldn't figure out why. Went through the code with a fine-tooth comb, still at a total loss.

Enter Soft-ICE. Within a week I found that Soft ICE wouldn't interrupt in the hung state. That started making us suspicious that it might not be just our code.

What do you know -- both test machines (though otherwise completely different) had the same cheap $5 ripoff network card. These were causing the crashes.

Replaced those and the software worked perfectly -- ran 24/7 for 3 years without a hitch. The one time it did stop, was the NetWare stack crashing underneath.

So that's my SoftICE story :)

twhitmore··on Roundoff Error and the Patriot Missile (1992)
Iraq had substantially customized their Scuds, attempting to increase their range. This customization was not totally successful as it destabilized the missiles in flight.

The resultant tumbling made them highly inaccurate as to target, but it has been suggested it also made them much harder to shoot down.

Sources: https://fas.org/nuke/guide/iraq/missile/al_hussein.htm, https://en.wikipedia.org/wiki/Al_Hussein_(missile)

twhitmore··on Adobe Provides facial recognition Software for DHS and ICE
Agree -- I scanned this myself, looking for the 'Facial Recognition' mentions. Broadly this seems a justification to purchase Adobe by brand (rather than competitive tendering) for Digital Media, Digital Marketing, and Digital Meeting functionalities.

Pretty hi-tech stuff, but from what I could gather "Digital Media" means using Acrobat/ Reader for forms.

Much as I dislike Adobe, there doesn't seem much going on here.

twhitmore··on Why do we need modules at all? (2011)
Nope. Not convinced this is an idea, or even a good thought provoker.

Organization of code at a larger granularity than individual functions, is something that's really useful and important in most non-trivial applications.

Topicality and meaningfulness of organization is something that should be valued. Removing or skipping it because Joe can't be bothered separating his String, Text File and Process funcs would be foolishness. Resulting in only a new form of spaghetti.

twhitmore··on A dream of an ultimate OS (1995)
You're describing the fact that OS apis are typed, and check state for validity. That's already the case and OS system calls already incur those costs.

In a database, preparing a query compiles the access plan (ie all the above) on the server side. There's no reason it would be any less efficient than an OS call today.

Could in fact be more efficient, since you would probably be able to leverage set-based operations on the server (ie OS) side rather than iterating everything on the caller.

twhitmore··on Protests Put Hong Kong on Collision Course with China’s Communist Party
Everybody, this is a dangerous time. APCs are massing in Shenzhen (see other thread).

Now is the time to email your local Chinese embassy. Carrie Lam, the top HK politician. Michael Tien and Ronnie Wong, leading pro-establishment politicians. Let them know dialogue & political solutions are needed, violence is not acceptable, and that PEOPLE ARE WATCHING AND CARE.

Mention any connections to China you have. Your voice can make a difference to the political calculus. But time is very short. Act now.

twhitmore··on Chinese military entering Shenzen, just across the border with Hong Kong
Everybody, now is the time to email your local Chinese embassy. Carrie Lam, the top HK politician. Michael Tien and Ronnie Wong, leading pro-establishment politicians.

Let them know dialogue & political solutions are needed, violence is not acceptable, and that PEOPLE ARE WATCHING AND CARE.

Your voice can make a difference to the political calculus. But time is very short. You must act now.

twhitmore··on Ask HN: When does it make sense to roll your own X?
Tend to agree. When I've seen Drools integrated in Java apps, it's usually a bloated mess and a simple DSL would have done much better.
twhitmore··on Java's Original Sin (2009)
Clickbait in some respects. "Java should have been a different language from what it was, more pure in OO terms, and without the characteristics that made it understandable & popular for developers from C and similar backgrounds."

While the ideas are (somewhat) valid, it would have been a quite different language from the language that gathered traction and became popular as Java.

twhitmore··on Fighting Complexity in Software Development
Is it just me? I feel this is confused and adding complexity in some areas, not genuinely optimal for simplicity.

I tend to feel that unexpected, unrecoverable exceptions are best treated as just that -- exceptions. Applying a C-style function return value check seems backwards.

And the "Interpreter"?? Proper purpose of Interpreter or DSL is for dynamic (configurable or user-input) code, not to implement basic sequential flow and the 'if' statement which the underlying language already provides.

twhitmore··on Ask HN: Examples of bad open-source code to learn what to avoid?
Libraries can be useful despite imperfections, and poor design decisions can occur in overall good libraries. So we can't judge too harshly.

Having said that:

1) iText PDF library used to have some fairly poor & duplicated code. Column layout was a highlight. Also strange ideas overemphasizing subclasses, eg. for paragraph styles. (Correct approach: use values rather than types.)

2) Tomcat webserver back around 2007 used to have some amazing 'clustering' code to deploy your webapp across multiple servers. But it lacked proper knowledge & hence control of what it was doing. IIRC there was no clear master, and a server couldn't tell what had been started on it versus what had been replicated since a peer was seen to be running it. Effect: replication would be additive only, contexts would just replicate everywhere uncontrolled, and there was no good way to stop/ undeploy an app across the cluster.

← PreviousPage 4 of 4