Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
twhitmore
searching PlanetScale…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
14 ms
·
91.
▲
by
twhitmore
6y ago
If the server is closing idle connections, the client connection pool should track idle times & close them earlier. Checking for readability still has a race condition. Really this seems like a poor example of configuration.
92.
▲
by
twhitmore
6y ago
In many environments instead of #1 "Say No", you may be better to say "I'd like to understand". Then listen & ask questions, until you've fully heard their problem and can propose a preferable alternative a
93.
▲
by
twhitmore
6y ago
I would strongly recommend the Strategy pattern, over modeling fixed concrete configuration structure. At least the first time or couple of times you encounter a complex configuration requirement, in a new domain. Spring XML or similar can
94.
▲
by
twhitmore
6y ago
Write an overview in narrative, and the rest in headings and bullet points. Keep the substance to 1-2 A4 pages. Nobody sane wants to parse more than a tiny bit of narration. Try to use Wiki, Google Docs, or shared docs in Office 365 if at a
95.
▲
by
twhitmore
6y ago
Request processing in Java (or any other sane language) is Request-scoped. The Request is a variable, the Response is a variable, they're only in local scope? And any data the developer uses will also be local -- and thus stateless --
96.
▲
by
twhitmore
6y ago
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 syste
97.
▲
by
twhitmore
6y ago
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
98.
▲
by
twhitmore
6y ago
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 e
99.
▲
by
twhitmore
6y ago
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 do
100.
▲
by
twhitmore
6y ago
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 correct
101.
▲
by
twhitmore
7y ago
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
102.
▲
by
twhitmore
7y ago
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 t
103.
▲
by
twhitmore
7y ago
It probably has more digits for the primary key than the MS bug tracker originally mentioned. Sigh.
104.
▲
by
twhitmore
7y ago
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+ d
105.
▲
by
twhitmore
7y ago
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&quo
106.
▲
by
twhitmore
7y ago
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
107.
▲
by
twhitmore
7y ago
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
108.
▲
by
twhitmore
7y ago
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 fi
109.
▲
by
twhitmore
7y ago
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
110.
▲
by
twhitmore
7y ago
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 Mee
111.
▲
by
twhitmore
7y ago
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
112.
▲
by
twhitmore
7y ago
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) o
113.
▲
by
twhitmore
7y ago
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 politician
114.
▲
by
twhitmore
7y ago
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
115.
▲
by
twhitmore
7y ago
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.
116.
▲
by
twhitmore
7y ago
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.&q
117.
▲
by
twhitmore
7y ago
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 funct
118.
▲
by
twhitmore
7y ago
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. Co