HNHacker News
TopNewBestAskShowJobs

DougWebb

3,324 karma · joined April 21, 2009

I've been a professional software engineer for the past 20 years. I consider myself a tool-maker, someone who creates tools that make work (and life) easier for others. Let me know the problems you or your business face, the tedious things, the complex things, the things that seem like "there must be a better way", and I'll work with you to create automated tools to handle those things, so that you can focus on the real work that makes your business great.

https://webbindustries.com

https://stackoverflow.com/users/story/73475?view=Cv

Freelance Software Consultant - Jun 2017 - Present

- https://webbindustries.com

Senior Software Engineer at Surround Technologies - 2011-Present

- https://surroundtech.com

Lead Architect at Experian Cheetahmail - 2010-2011

- http://www.cheetahmail.com

Senior architect at Wolters Kluwer Medical Research - 1996-2010

- http://www.ovid.com/site/products/tools/ovid/ovidsp_access.jsp

- https://www.youtube.com/user/OvidWoltersKluwer

submissionscomments
DougWebb··on You've only added two lines – why did that take two days?
You could spend a few hours making a 3D print of that bottle to produce a very believable mock-up. And then use it with someone gullible to make a deal on an order to manufacture a million of them. You get your commission on the sale, toss the 3D print to your manufacturing engineer, and let them know the customer needs delivery next week.
DougWebb··on Ask HN: How many hours do you work?
Early in my career, I routinely worked 50 hrs/wk. Not on purpose; I just preferred to get to the office early to avoid the morning rush hour, and I often stayed around late to get a drink with co-workers after work. I was always productive, and it wasn't until years later that I realized that 50 hrs/wk adds up to an extra 3 months/yr.

Same job, about six years into it, a major project came up that I had staked my reputation on. For almost six months, I was working 80-100 hrs/wk. It destroyed me. My metabolism shut down, my thyroid was damaged. My body temperature dropped from 98.6F to 97F, and overnight while I slept it dropped to 96F and I had trouble waking up in the mornings. I found out later that if it had dropped any lower than that, my body would not have been able to warm itself back up. It took about a decade for my temperature to return to normal, but I still need thyroid medication. And my ability to work long hours has never returned; it's a good thing productivity continues to increase with experience. I work a lot smarter now.

EDIT: the project was a success, at least. My boss was awarded employee of the year, but I was awarded second employee of the year, which was the only time they did that. I also got a little engraved glass plaque, the kind that comes from a corporate gifts catalog. Maybe a $50 gift card too. So worth destroying my metabolism for over a decade.

DougWebb··on Which firms profit most from America’s health-care system (2018)
That article provides pretty strong evidence that DTC ads, overall, are bad for patients:

58 percent [of physicians surveyed] agreed strongly that DTC ads make the drugs seem better than they really are.

Physicians thought the ads did not convey information about risks and benefits equally well. Seventy-eight percent of physicians believe their patients understand the possible benefits of the drug very well or somewhat, compared to 40 percent who believe their patients understand the possible risks, and 65 percent believe DTC ads confuse patients about the relative risks and benefits of prescription drugs. In addition, about 75 percent of physicians surveyed believed that DTC ads cause patients to think that the drug works better than it does, and many physicians felt some pressure to prescribe something when patients mentioned DTC ads.

Eight percent of physicians said they felt very pressured to prescribe the specific brand-name drug when asked.

Doctors believe that patients understand that they need to consult a health care professional about appropriate treatment. Eighty-two percent responded either "very well" or "somewhat" when asked whether they believe that their patients understand that only a doctor can decide whether a drug is right for them.

Note the last point means that 18% of the doctors believed that their patients thought they knew better than the doctor about whether or not a drug is right for them.

The few positive aspects, about patients being better informed about drug therapies that might help them, could be solved by making the monthly journal info I described available online. People go to Google and type in their symptoms and/or the name of their disease if they know it, and end up on sites like drugs.com and webmd.com. If Google were indexing the journal I described, and those other sites pulled from it too (publishing license should allow that, as it would be publicly funded), then patients would see all of the good information about the drugs, without the advertising bias.

DougWebb··on Which firms profit most from America’s health-care system (2018)
Patients do not need to be informed of new drugs, and never were until pharmaceutical companies lobbied Congress to remove the ban on direct advertising, which had been put in place as a consumer protection law due to 19th century "snake oil" salesmen/con-men. For doctors, a monthly publication of drugs currently in development, their status, and their uses would be adequate. It'd be much better for doctors to get their information from a published journal than the advertisements in some trade magazine or attractive reps handing out free samples.

Regarding You're just running a wealth transfer or insurance program in addition at that point. Yes, that would be a major purpose of nationalizing drug R&D and manufacturing. You could say the same about every public service.

DougWebb··on Which firms profit most from America’s health-care system (2018)
Pharmaceutical companies have massive advertising/marketing budgets, which a nationalized drug R&D program would not need. That lowers overall costs. The R&D and manufacturing costs would also be spread across all Americans instead of only the patients who need the drugs, so the costs would be much lower for the patients as well.
DougWebb··on Experts warn parts of U.S. on verge of being overwhelmed by Covid-19 resurgence
I'll agree that allowing corporations to steal most of the resources that were intended to help people trying to quarantine, and failing to ensure both the ability to quarantine and the safety of those who absolutely could not, have been abject failures of the governments handling of this crisis.
DougWebb··on Experts warn parts of U.S. on verge of being overwhelmed by Covid-19 resurgence
The point of locking down everyone is to slow down the spread of the virus through the entire population, which protects the high-risk people from accidental exposure, until a vaccine can be developed and deployed. That way we get herd immunity without killing the percentage of people who can't survive a full infection, but will be just fine with a vaccination.

Having healthy people isolated is not about protecting the healthy people. It's about stopping the healthy people from spreading the disease to the high-risk people.

DougWebb··on Software reuse is more like an organ transplant than snapping Lego blocks (2011)
Also with OOP and procedural programming you get lego blocks that can mutate. Lego blocks can transform themselves and other lego blocks. They form an interconnected network of entities that are constantly mutating.

That kind of sounds like a structure of living cells. They're more complex than a structure of lego blocks, but they can do a lot more too.

Don't take that as an argument in favor of OOP though. Building with legos is a lot easier to get right than building with cells would be.

DougWebb··on Show HN: Generate Visual Sitemap from sitemap.xml, just write URL
I tried it on my company's website, surroundtech.com. It just produced a parent node and a very wide tree of child pages. Not useful in any way.

The website is built using a CMS that's part of our product line, which auto-generates a sitemap.xml file. It also automatically produces a Sitemap page: https://surroundtech.com/sitemap. The two tabs of interest are "Cards", which shows how each page would look when shared via social media links, and "Sitemap Tree" which shows the (non-graphical) page tree.

To be fair to the visual tool, our auto-generated xml is just a flat list of urls, and our auto-generated url routing is a flat list of uniquely named pages rather than a /-separated hierarchy. To create our own sitemap page we use the hierarchy that's built into our CMS, which also creates the top-level menu on the site.

DougWebb··on As many as 6B Earth-like planets in our galaxy, according to new estimates
There is only one intelligent being in the entire universe. It's the entire universe, having a dream about being a human. And it's you.
DougWebb··on Fast high-level programming languages
Perl isn't really an interpreted language. It's compiled to a sort of bytecode when you run the program, and executed on a sort of virtual machine. Similar to Java or C#, but much faster to compile. So fast that most people don't even know it's happening.

As for performance, it really helps if you write idiomatic Perl code. There may be more than one way to do it, but some ways are better. For example, an explicit for loop over a list has to be compiled to byte code that steps through the looping, but if you use map or grep the byte code calls a pre-written optimized function that loops as fast as code written in C would be. The more idiomatic your code is, the more optimized calls like that you get, and the faster your code will run.

DougWebb··on America is stuck at home, but food-delivery companies still struggle to profit
My postman mostly brings me junk mail, that I throw directly into a bin next to my building's mailboxes rather than bring it up to the apartment. That's not his fault, of course. There's no mechanism for me to tip him on any regular basis, unlike the delivery apps that let me add a tip to my credit card payment.
DougWebb··on America is stuck at home, but food-delivery companies still struggle to profit
I don't go to grocery stores; I have my groceries delivered, and I tip them well. If the businesses I buy from raised prices so they could pass the additional revenue on to their workers as hazard pay, and I had any confidence at all that they were actually doing that, I'd be glad to stop tipping.
DougWebb··on America is stuck at home, but food-delivery companies still struggle to profit
How about "Hey, this person is out doing a job that could possibly kill them, to save me from having to risk my life by going out. That's really valuable to me; I'll give them an extra $5."

I really don't get people who are against tipping people in low-paid service jobs. (Even if they're making at least minimum wage.) If you're paid more than they are, and their service is providing you with value, show them some appreciation!

DougWebb··on U.S. field hospitals stand down, most without treating any Covid-19 patients
We don't have those numbers because of the lockdowns, which were obeyed in part because of the media coverage. The alternative would have been China's approach of physically locking people inside their homes, or much lower compliance and higher infection and death rates.
DougWebb··on Things Markdown got wrong
As user you shouldn't be concerned by how it looks. Thats job of overall design and that might change depending where you publish / who designed it. You shouldn't make that decision because you don't have the required context.

As the writer of Markdown content, you're often both the user of the content and the publisher of the content, so you do care about how it looks. Even if you're just the user, your intention when writing is to communicate something, and the eventual appearance of your content impacts how it is interpreted by the reader. So you still care about how your writing will look, which forces you to care about how the publishing process interprets the markdown syntax.

DougWebb··on Neanderthals Traversed Vast Distances
Note just that; the entire maps are showing present-day landscapes instead of ice-age landscapes. There should be glaciers, lower sea levels, and Doggerland.
DougWebb··on Cancer medicine generates enormous revenues but marginal benefits for patients?
Most of what I’ve heard about keto diets involves leaving blood sugar levels dangerously low for long periods of time by forcing your body into its weird starvation mode.

That's a gross mis-characterization of keto diets, at least when done properly[1].

Up to 20g of net-carbs (ie: non-fiber) per day. The intention is to moderate your insulin response, which impacts other hormones and, for weight loss, switches your fat cells to be able to release fat for energy instead of storing fat. That level of carbs are more than adequate to maintain necessary blood sugar levels for your body's needs.

There's no "weird starvation mode". Lowering your carb intake and moderating your insulin response causes your body to stop the "easy" burning of carbs for energy, and to switch to burning fat (from your food first, fat cells second) for energy. A big misconception about keto is that you have to eat a lot of fat; if you're trying to lose weight that's not true. You need to consume enough fat to keep your calorie intake from being too low (otherwise you do get into a starvation mode which lowers your metabolism), but low enough so that your body needs to get fat from your fat cells to make up its energy needs.

All that said, I have no idea if keto helps with cancer at all. It almost certainly has no direct affect. If there's any benefit, I would guess that it's related to the hormonal and metabolic impacts of fat-burning rather than carb-burning, or the reduction of systemic inflammation that most people on extended keto diets experience.

[1] https://www.reddit.com/r/keto/wiki/faq

DougWebb··on The web as a GUI toolkit
I would say that we shouldn't have an advanced web application unless we need an advanced web application. Most of the time, we really don't need it.
DougWebb··on Stripe charged me $714 for duplicate transactions within seconds
Just came to recommend idempotency keys as well.

https://stripe.com/docs/api/idempotent_requests

DougWebb··on Congrats! Web scraping is legal! (US precedent)
We've done that, but it's tough to rate-limit a botnet because of the ip address spread. Also, their crappy scraper software doesn't even bother to check if requests are successful; it spews them just as fast no matter how our site responds.
DougWebb··on Congrats! Web scraping is legal! (US precedent)
We did figure out who the scraper probably is, but only after several years. For a long time they used an untracable botnet, but after blocking that they eventually switched to a corporate network we traced to a data aggregation company. But we don't know for sure who's doing the scraping; it could be the company, a rogue employee, or a botnet that got loose on their network.
DougWebb··on Congrats! Web scraping is legal! (US precedent)
If the scraper contacted the client, said what they need the data for, and (probably) paid for api access, then my client would probably go for it.

My client is under no obligation to make access to this data easier. It's not really their data either; the information is property addesses, owner names and addresses, and tax assessments and payments. My client wouldn't want to make it easier for scammers to get that data. So they're not going to do anything unless they know the scraper is legit. If that's the case, the api would require authentication, and any fees would be for the server load, not the data.

DougWebb··on Congrats! Web scraping is legal! (US precedent)
One of my clients is involved in property tax collection and reporting. Property Tax records are public info, and their website allows looking up the records for any property without a login. However, the data behind this website it the _source_ of the public records, and not the public records themselves (which would be local government databases).

For years now we've been in an arms race with someone using a botnet to scrape all of the account information for a particular county. My client doesn't care so much about the data; it's the server load that's a problem. Normal activity for this site is a few dozen account searches per minute, but when the botnet gets through our blockade it sends hundreds of search requests per second, overwhelmimg the site. The operator of the botnet has NEVER tried to contact my client to ask for an efficient api to access the data, which they'd probably provide for a minimal fee.

Data hosting isn't free, even if the data is.

DougWebb··on Ask HN: Solo devs, how do you plan your development?
My problem is that I lose track of where all of my todo files are; I work on too many (client) projects to keep everything in a single file.

Luckily, over time todos tend to become todon'ts, so losing track of the old ones isn't generally a problem.

DougWebb··on Ask HN: Solo devs, how do you plan your development?
I have a very similar process, except I also insert "Let me start (over) building something to manage this properly" into each cycle.
DougWebb··on Ask HN: What did you build in 2019?
I built a new web application front-end to an old warehouse inventory tracking and catalog management system for a very large corporation everyone is familiar with. But thanks to the contracting arrangement, I can't talk about it. Makes it tough to attract new clients.

I made some enhancements in 2019 to my Hacker News reader (https://webbindustries.com/hackernews), but who hasn't made one of those.

DougWebb··on VR optics and why inter-pupillary distance (IPD) means too many things
Try sideloading QuestIPD [0]. It shows a test pattern that's supposed to help set the slider properly, and it shows you the exact setting value you're using.

[0] https://sidequestvr.com/#/app/303

DougWebb··on The dark side of electronic waste recycling
So, your suggestion is that the US consumer has to pay a "tacked-on fee" when they purchase a recyclable product. That fee, presumably, is held by the US government. In other words, it's a sales tax.

When the consumer wants to get rid of the product, they can just throw it out and send it to a landfill. If they do, the fee is kept by the government.

Or, the consumer can get the product to a recycling company, somehow. The recycling company can then request the fee amount from the government. This would require tracking the product's UPC and proof of the # of items recycled, or individual serial numbers. (The tracking info, from sale to disposal, could be sold to marketers for additional revenue. For extra value, attach the info to the consumer for targeted advertising.)

Finally, the recycling company, after getting the sales tax money from the consumer and selling the consumer's data for targeted marketing, can now sell the recycled components back to the manufacturing companies. None of the proceeds make their way back to the consumer, of course.

I don't see any economic benefit for consumers here; in fact the cost burden is mostly on them. That suggests Congress would probably love the idea.

DougWebb··on Is there dark matter at the center of the Milky Way which also decays?
I've read (elsewhere, I guess) that some 95% of the Milky Way's mass is estimated to be dark matter. If there are only 700g of it nearby, it can't be distributed the same way normal matter is. How can that be, since it interacts with normal matter gravitationally? Does the solar wind blow it away, or something like that?

I've also seen an article not long ago showing 'visualizations' of dark matter around a spiral galaxy, and it was mostly in teardrop-shaped lobes above and below the galaxy's center and aligned on the axis, rather than distributed through the disk. I didn't think of it at the time but now that I do, it seems like that distribution also indicates that light from the stars is pushing the dark matter away.

← PreviousPage 4 of 34Next →