HNHacker News
TopNewBestAskShowJobs

dugmartin

4,253 karma · joined February 12, 2009

http://dougmart.in/

I'm a software developer based in the beautiful village of Shelburne Falls, MA, USA with thirty years of professional software design and development experience gained from a range of employers and clients including small startups to Fortune 100 companies.

I am currently a Principal Engineer at the Concord Consortium (https://concord.org), a nonprofit educational research and development organization working to bring the promise of technology into reality for education in science, math, and engineering.

submissionscomments
dugmartin··on This week in 1988, Robert Morris unleashed his eponymous worm
Slower and unstable. I spent a lot of my freshman year in college on Bitnet chat and iirc about every 30 minutes there would be a "netsplit" and a bunch of folks in the chat would disappear. Maybe it was our universities connection, which I think was direct to UIUC. I've posted here before that back then I thought Bitnet chat was magical. Things like being in a chat room with students in Berlin while the wall was falling felt so futuristic to me.
dugmartin··on Tags to make HTML work like you expect
I know this was a joke:

   <div id="root"></div>
   <script src="bundle.js"></script>
but I feel there is a last tag missing:

   <main>...</main>
that will ensure screenreaders skip all your page "chrome" and make life much easier for a lot of folks. As a bonus mark any navigation elements inside main using <nav> (or role="navigation").
dugmartin··on The Programmer Identity Crisis
I started around the same time. No unit tests but we did have code reviews because of ISO 9001 requirements. That meant printing out the diffs on the laser printer and corralling 3 people into a meeting room to pour over them and then have them literally sign off on the change. This was for an RTOS that ran big industrial controls in things like steel plants and offshore oil rigs.

Project management was a 40 foot Gantt chart printed out on laser printer paper and taped to the wall. The sweet sound of waterfall.

dugmartin··on GNU Health
A doctor in my little town created his own open source EMR software in FileMaker:

https://cottagemed.org/p/24/Cottage-Med

His practice also accepts payment in the form of barter: https://cottagemed.org/p/15/About-Our-Practice

dugmartin··on Gifted children are special needs children
> You should also remove any students from classrooms whom routinely distract from others' learning.

You can't do this without getting sued (at least in Massachusetts). Source: my wife is a long-time elementary school teacher and my daughter works as a one-on-one aide while she is getting her teaching degree.

I don't want to start of flamewar but the current "push in" model created by educational bureaucrats creates a classroom environment that caters to the "timesinks". When you have a good chunk of the class on IEPs (individual education plans) that must be followed by law the "high flyers" (gifted kids) mostly get ignored due to time pressure.

Add socialization problems caused by COVID and reduced attention spans due to devices and chaos is always eminent. The stories I hear about daily classroom behavior would have blown my mind as a kid growing up in the 70s/80s.

I just wish that gifted kids could get the same access to IEPs that the other tail of the curve gets. However, when you base your educational outcomes on high stakes testing it is just natural to ignore the outliers above the mean and focus on the ones below it.

Again, I don't want to start a flamewar. Everyone has the right to an education.

dugmartin··on A mechanic offered a reason why no one wants to work in the industry
The "design for unmaintainability" problem has been around for a while. I remember helping a friend change his plugs on this Ford Ranger in the early 90s. The closest two plugs to the firewall required you to climb into the engine bay and basically hug the engine to get your arm into position to blindly get to the plugs. If you look around on YouTube you'll see some crazy mechanic videos where they show things like bolts located in impossible to loosen locations.

Cars used to be simpler to work on because a) they inherently were simpler and b) the engine bay used to have a lot of room to work in. Both of these things are not coming back.

dugmartin··on Markov chains are the original language models
If you would like to visually play with a Markov chain model my non-profit research org built a Markov plugin for, CODAP, our data analysis tool:

https://codap.concord.org/app/static/dg/en/cert/index.html?d...

If you select drawing mode from the first screen shown and then click the "T" icon you can type some text and it will generate a state diagram for you that you can then "play" and examine the output sequences. If you have states that have multiple exit routes you can click on that state and adjust the probabilities of each option.

dugmartin··on Fall Foliage Map 2025
Confimed. I live in the tiny bit of "moderate" color that is dipping down from Vermont into Western Mass. We are in a drought and the leaves seem to be just drying up and dropping instead of changing colors. I'm hoping the rain this week doesn't just knock them off the trees.
dugmartin··on The American Nations regions across North America
As someone that grew up partly in Southern Illinois with lots of relatives in Southern Indiana I can tell you they have a great deal in common. Both regions are very "southern" culturally, with very distinct accents.

Illinois is an interesting place as it features large changes in culture from north to south. I was born in Northern Illinois and lived there until I was 10 when I moved 5 hours south. There is an enormous cultural difference. As the map shows Northern Illinois is part of the "Midlands" with a flat/generic accent whereas the Southern Illinois/Southern Indiana accent sounds a lot like Woody Harrelson's (who was born in Texas). The greater Chicagoland area is its own thing, the map shows it part of Yankeedom but I disagree - I lived in Chicago twice in my 20s and I've lived in Yankeedom (Massachusetts) for 25 years now and I don't see much similarity. I'd group far northern Illinois, Wisconsin, Michigan and Minnesota in their own group, maybe called the "Opers"

dugmartin··on “No Tax on Tips” Includes Digital Creators, Too
In the US, the cook and busboys and other support staff normally also receive tips as part of the "tipping out" system where the servers split part of their tips. It is voluntary but not really - if you, as a server, don't tip out your tables start not getting their food as fast and the table isn't turned as fast.
dugmartin··on Jeena's Hyprland Demo
And if you want a solid integrated i3/Sway desktop I'd recommend checking out Regolith (https://regolith-desktop.com/). I've been running it for years and its great.
dugmartin··on Show HN: Swimming in Tech Debt
I haven't read the book but I've known Lou for probably 20 years and he is a very smart, very pragmatic software engineer who also happens to be a great guy. I look forward to when this is launched so I can buy a copy.
dugmartin··on Privately-Owned Rail Cars
When I lived in suburbs and worked downtown in the ‘90s they used to sell bottles of beer out of big iced tubs right outside the rail siding down in Union Station. It was usually a fun ride back to Downer’s Grove.
dugmartin··on 500 days of math
It shows this 3/4 the way down on their homepage (https://mathacademy.com/):

> Math Academy's courses are fully accredited by the Accrediting Commission for Schools, Western Association of Schools and Colleges. www.acswasc.org

dugmartin··on Lördagsgodis (Saturday Sweets)
In the US when I was a kid in a '70s most grocery stores and supermarkets had a Brach's candy bin/wall, labelled "Pick-A-Mix", where you could buy candy by weight. The only time we got any was when my grandmother was with us as she had a huge "sweet tooth". I think by the early 2000s they were all gone (at least I haven't seen any).
dugmartin··on I tried every todo app and ended up with a .txt file
If you live in VS Code there is a notes plugin that lets you create and manage Markdown notes in the sidebar. I usually create one note per repo and then pin the tab in that repo. If you work on a lot of projects it is a great way to segregate your todos by project so you don’t get overloaded. I also have a todo folder that has multiple notes pinned (today, scratchpad and long term notes) that I keep open in my main workspace window. It works for me, YMMV.
dugmartin··on Coronary artery calcium testing can reveal plaque in arteries, but is underused
It caused a lot of muscle weakness in the legs for two members of my family. The weakness went away for one of them when they stopped taking it.
dugmartin··on Pet ownership and cognitive functioning in later adulthood across pet types
Our 15 year old part Maine Coon that passed away last year was a massive extrovert. He would sit on our front porch waiting for strangers to walk by just so he could run out and flop down on the sidewalk for belly pets. I used to tell him he was going to get kicked out of the Cat Union for doing it.
dugmartin··on I Wrote a Compiler
If you use something like Antlr (https://www.antlr.org/) it has visualization tools and an online tester (http://lab.antlr.org/). There are also tools for visualizing generic EBNF grammars like this: https://jacquev6.github.io/DrawGrammar/
dugmartin··on Telephone Exchanges in the UK
My dad was a telephone engineer/manager with GTE in the US. As a kid in the mid 1970s he used to take me with him to the local exchange building to deliver donuts to the guys on duty (he was that kind of boss). The security was interesting - there was a tube built into the masonry with a 90 degree angle that had a mirror. He would pick up the phone on the outside wall and say his name and an identifying number and then the door would buzz open. The building was a few stories tall and had no windows, which I think was a Cold War thing.

We would deliver the donuts to the break room which usually had at least one guy smoking in it (it was the '70s). A couple of times we went into the switching room which still had rotary dial switches clacking away as people dialed in numbers. There was an overwhelming smell of ozone in the room. It was all very cool to 5 year old me.

dugmartin··on The Army’s Newest Recruits: Tech Execs From Meta, OpenAI and More
For engineers it would make sense to bring them in as warrant officers which is where you put technical experts that don’t lead.
dugmartin··on Getting Past Procrastination
I do this also. My tweak is to make the syntax error just a sentence of what tiny step needs to be done next. Then the next day I turn that sentence into a comment, do what needs to be done next and then delete the comment. It me the dual endorphin hit of completing a task and deleting code.
dugmartin··on I made a chair
The are treated with creosote: https://en.wikipedia.org/wiki/Creosote
dugmartin··on Show HN: Patio – Rent tools, learn DIY, reduce waste
Our local library is starting up a tool lending section. They also have "fix it" days every few months run by volunteers where you can show up with something to fix and the volunteers will work with you to fix it.
dugmartin··on I'm starting a social club to solve the male loneliness epidemic
These still exist in the US but the membership has plummeted. Some examples:

    - Freemasons
    - Odd Fellows
    - Fraternal Order of Eagles
    - Benevolent and Protective Order of Elks
    - Loyal Order of Moose
We have an Eagle's "aerie" in my little town. It has a nice banquet hall area on the main floor and a member's only bar in the basement with pool tables and a deck that overlooks the river.
dugmartin··on Show HN: I made a Zero-config tool to visualize your code
Totally off topic but this is the first time I've seen (or noticed) an ICP license link in a footer. I was curious so I looked it up (https://en.wikipedia.org/wiki/ICP_license) and its been in effect since 2000. I guess I'm one of the lucky 10,000 today.
dugmartin··on DuckLake is an integrated data lake and catalog format
This can also be done using row group metadata within the parquet file. The row group metadata can include the range values of ordinals so you can "partition" on timestamps without having to have a file per time range.
dugmartin··on LiveStore: State management based on reactive SQLite and built-in sync engine
fyi, I've done something similar and the cleanest method for leader election is to use the web locks api:

https://developer.mozilla.org/en-US/docs/Web/API/Web_Locks_A...

It is supported by all browsers. You just have all the tabs try to lock the same resource and have them return a promise in the lock callback. The first one wins and when that tab closes the next one in line gets automatically elected.

The leader can then use a broadcast channel and act as a server for all the other tabs to serialize access to any shared resources.

dugmartin··on Malicious compliance by booking an available meeting room
In the late 90s there was a manager where I worked at the time where you actually felt relieved she they scheduled a meeting for one reason: she scheduled meetings to be 50 minutes long and no matter what she would end them promptly at 50 minutes and then she would stand up and leave the room. I once saw her, politely but firmly, tell a senior exec a few rungs up the ladder from her that time was up when he was in mid-pontification and close the folio thing she always brought to meetings and then exit the room.
dugmartin··on Librarians are dangerous
Yes - they built a huge new library in the town next over as the old one was overflowing with books and then only moved about 1/5 of the books over when it was completed. They disappeared the entire CS section. But it has about 5 unused meeting rooms, an unused “media maker space” and an enormous light filled open second floor area with two couches.
← PreviousPage 2 of 34Next →