HNHacker News
TopNewBestAskShowJobs

kcartlidge

696 karma · joined September 5, 2020

UK Software Engineer (sometimes Lead). C#, Go, Node, Python, AWS.
submissionscomments
kcartlidge··on The Rise and Fall of Ashton-Tate (2023)
I loved DBase II and DBase III+ but then I switched to DataEase and did some huge database systems mostly running on Netware. Whilst I used Clipper, FoxPro, and others, for that genre of non-client-server text mode databases DataEase v4 was the ultimate (for my tastes). It didn't do well in the Windows transition and doesn't get much of a mention these days, although dataease.com is still developing and releasing stuff (the old DOS editions were the pinnacle and stuff since then is forgettable).
kcartlidge··on Dev Fonts
Dev fonts is usually synonymous with fixed width (mono) fonts, and for good reasons. Those reasons are discussed by iA Writer in interesting detail [1]. However they do so as a precursor to their own duospace font, "iA Writer Duo" [2].

It's a compromise, but one that works well (for me). Basically IBM Plex but with m, M, w, and W being 50% wider than all the other characters.

Sounds odd, but is very legible and usually fine depending upon the context of its use.

[1] https://ia.net/topics/in-search-of-the-perfect-writing-font

[2] https://github.com/iaolo/iA-Fonts

kcartlidge··on Ask HN: What would you preserve if the internet were to go down tomorrow?
> What would you preserve if the internet were to go down tomorrow?

Nothing. I'd be too busy celebrating.

(Even though I'd likely be out of work.)

kcartlidge··on Tech Jobs Have Dried Up–-and Aren't Coming Back Soon
https://archive.is/jF7Qr
kcartlidge··on LinkedIn is now using everyone's content to train their AI tool
And me too in the UK.

It also only applies going forward, so the default opt-in means they've already taken what they want before we get a chance to say no. Though to be fair I never expected otherwise.

kcartlidge··on Dublin Core, what is it good for?
EPUB (even v3) uses some Dublin Core metadata. Unlike the page the thread refers to it's presented as `<dc:title>` not `DC.Title` but other than that it's the same thing. Only a handful of tags are used.

    https://idpf.org/epub/30/spec/epub30-publications.html#sec-metadata-elem
kcartlidge··on Stonebraker Seeks to Invert the Computing Paradigm with DBOS
And:

> Pick was originally implemented as the Generalized Information Retrieval Language System (GIRLS)

As an aside, though, I really enjoyed working on a Pick system a few decades back.

kcartlidge··on Stonebraker Seeks to Invert the Computing Paradigm with DBOS
I was a Pick user back in the late 1980s and that was, indeed, my first thought too.
kcartlidge··on MacBook Air, M2 Chip, 8GB RAM: Nothing is open, but half the memory is gone
I'd strongly consider returning the machine. This is very far from my normal experience with an 8GB M1 over several years (as a developer as well as a casual user).
kcartlidge··on MacBook Air, M2 Chip, 8GB RAM: Nothing is open, but half the memory is gone
> I have sadly to use one M1 with 8gb and it is really painful.

I've been using an 8GB M1 for a couple of years, including for development with C#, Go, Python, and Rails. I've had triple-figures of browser tabs open, Office 2019 Mac, Affinity Designer, and more all running at once. And never in all those years have I experienced sluggishness or slowdown either in-app or during switching.

I don't doubt your experience, this is simply to say that not all observed behaviours can be assumed to be generally applicable.

kcartlidge··on Alexa is in millions of households and Amazon is losing billions
> retail customer experience and return policy is unmatched ... make it suck like Europe.

Maybe it's great in the US, I don't know, but it far from sucks in Europe. Amongst other things for returns policies you have a guaranteed 14 day return period for online orders even if there's no issues. Plus there's a minimum 2 years warranty, and a few years more if there's a reasonable expectation for the item in question to last longer. I'm not seeing the issue.

kcartlidge··on Evan Wright, 'Generation Kill' Author and Rolling Stone Contributor, Dead at 59
Generation Kill is an excellent (short) series. Recommended.
kcartlidge··on The Beast of Gévaudan (1764–1767)
This is the story the film Brotherhood of the Wolf (with Mark Dacascos and Vincent Cassel) is based on. Long, action-packed, slightly confused, and very stylish; a good watch.
kcartlidge··on Ask HN: What's (in your opinion) the best authentication method for web apps?
The phrase 'terrible advice' is unwarranted when it comes to a simple comment saying to use one-way cryptographic hashes rather than storing passwords.

I offered a technically correct warning for a single case, and also specifically said I wasn't commenting on whether that auth method should be used or not.

I'm not required to offer a security tutorial, but yes it's true that storing anything, even hashes, is a security risk. So if it helps any other readers they can somewhat mitigate dictionary attacks by using salts and possibly peppers.

kcartlidge··on Ask HN: What's (in your opinion) the best authentication method for web apps?
> If you accept id+password, either you are storing them, in which case you are a target (prepare to be boarded), or someone else is.

Without specifically commenting on the relative merits of all the auth options being mentioned in the thread, I do feel it worth pointing out that "if you accept id+password" you definitely should not be storing them. And neither should someone else on your behalf.

Using one-way cryptographic hashes of passwords is well documented and nobody should have the "hoard of stored treasure, other people’s passwords" even with id+password as the auth mechanism.

kcartlidge··on Microfeatures I love in blogs and personal websites
> One micro feature I implement on my blog that I would like to see everywhere: a single-page index of all the posts

I've got a variant of this on my own blog [1]. Full site contents generated automatically from (and grouped by) the content's tags.

To avoid the appearance of self-promotion, I'll balance this with an up-front warning that the actual content makes the opportunity cost of visiting debatable unless you're really curious ...

[1] https://kcartlidge.com/contents/

kcartlidge··on Apple unveils iOS 18 with new home screen & Control Center
On my iPhone SE 3:

- Accessibility -> Display & Text Size -> Colour Filters -> Greyscale switches it on. It also sets the default colour filter which is helpful because ...

- Accessibility -> Accessibility Shortcut -> Colour Filters means you can then triple-press the Home button (on an SE) to toggle that setting at any time

As various studies have suggested in the past, I do find I use it less in greyscale.

kcartlidge··on Ask HN: What macOS apps/programs do you use daily and recommend?
Thanks - I'll take a look.
kcartlidge··on Ask HN: What macOS apps/programs do you use daily and recommend?
Loads of little things, but you specifically asked for daily use so:

- Rectangle for window management (I appreciate you have Magnet and tastes differ)

- MarkEdit is an excellent (free) Markdown editor

- Highland 2 (not free) for more long-form Markdown writing as it can handle normal Markdown files and feels more polished than similar tools (especially the document map)

- VLC as I watch a lot of box sets and it's better than the Apple options

- SourceTree for source control (not as good as Git Extentions on Windows but more to my tastes than the VS Code plugins, Fork, or GitKraken for example)

- BitWarden as I'm cross-platform so don't want to rely on the Apple Keychain

- Authy for two-factor authentication - not the Google, Microsoft, or similar option as I don't want to be tied to a tech giant account that can get switched off

- PCloud (with encryption and a mapped drive) for the same cross-platform reason, plus again I don't want my backups tied to a tech giant account that can get switched off

- PGAdmin 4 for database management during development

- Keka for handling archives/zips as it usually handles files fine when Apple's archiver won't (eg some EPUBs when renamed to zip)

- Fastmail for being able to manage multiple custom domain emails, aliases, and even nameservers from a single (paid) user account (I'm aware it isn't a Mac app but I do often use Outlook from Office 2019 to access it despite the excellent web site)

kcartlidge··on Show HN: CommitAsync – $100K+ dev jobs 100% remote only
Out of curiosity, here's a bit of C# to do it. This randomly populates a 10x10 grid then looks for a random target in a randomly located 3x3 sub-grid.

As per the question I've ignored error conditions, but using the simple expedient in this case of positioning the 3x3's top left within the first 8x8 not the full 10x10.

Example output is underneath.

    // Make and fill the grid.
    var r = new Random();
    var grid = new int[10, 10];
    for (var y = 0; y < 10; y++)
        for (var x = 0; x < 10; x++)
            grid[x, y] = r.Next(10);
    
    // Draw the grid for reference.
    Console.WriteLine();
    Console.WriteLine("    0 1 2 3 4 5 6 7 8 9");
    Console.WriteLine();
    for (var y = 0; y < 10; y++)
    {
        Console.Write($"{y}   ");
        for (var x = 0; x < 10; x++)
            Console.Write(grid[x, y] + " ");
        Console.WriteLine();
    }
    Console.WriteLine();
    
    // Random starting point and target.
    var tlx = r.Next(8);
    var tly = r.Next(8);
    var target = r.Next(10);
    
    // Extract the 3x3 sub-grid and "[ ]" any matches.
    Console.WriteLine($"Looking for {target} in 3x3 grid at {tlx},{tly}");
    Console.WriteLine();
    for (var dy = 0; dy < 3; dy++)
    {
        for (var dx = 0; dx < 3; dx++)
        {
            var ax = tlx + dx;
            var ay = tly + dy;
            var v = grid[ax, ay];
            if (v == target) Console.Write($"[{v}]");
            else Console.Write($" {v} ");
        }
        Console.WriteLine();
    }
    Console.WriteLine();
    
Example output:

        0 1 2 3 4 5 6 7 8 9
    
    0   1 2 5 4 1 8 0 2 8 5 
    1   4 2 2 5 8 4 4 0 4 8 
    2   7 1 8 2 5 6 3 6 3 6 
    3   8 7 3 2 4 6 5 9 6 2 
    4   6 3 4 2 9 7 4 7 6 1 
    5   1 4 2 3 8 3 2 4 3 3 
    6   0 6 6 5 1 4 7 3 4 9 
    7   2 0 6 9 9 9 3 9 1 7 
    8   1 6 5 8 3 8 9 8 3 4 
    9   0 8 7 9 5 4 0 7 0 3 
    
    Looking for 5 in 3x3 grid at 2,6
    
     6 [5] 1 
     6  9  9 
    [5] 8  3 
As others have said elsewhere this could use a one-dimensional array but as we know upfront what the constraints are I've gone for the clarity of the two-dimensional. This is said to be the very first mistake everyone makes in graphics programming - but nothing in the question says it is for use in graphics, so being an interview question I went for clarity.

Similarly there's the possible use of a ternary, less memory allocation, and tighter code, but again in this situation I'd go for readability.

There may also be edge cases not covered; this was a 10 minute hack (as it looked fun) and isn't exhaustively tested.

kcartlidge··on New MacBook Setup
I don't use Xcode itself, but do use the Xcode command line tools. I've found the simplest way to install them on a new machine is to open a terminal, try and run `git` (which isn't yet installed), and then you're automatically prompted to install the Xcode command line tools (only) and taken through it.
kcartlidge··on Ask HN: Devs/data scis who pivoted to a new career in 30s/40s, what do you do?
> it's probably not career-ending to take a few year break but I don't know much about this anecdotally

This is true.

A fair while back I left database and dev work for a few years. Tried my hand at kitchen design and sales, loading trucks, ISP tech support, chicken farming, builder's merchant sales counter, call centre night manager, farm labourer, collections agent, and more.

Loved it all, but my motivation was to experiment to see if the tech world was just my default or something I truly enjoyed. Turned out it was the latter so I returned to it.

Initially I was down about 20% on salary on my return to the industry, but a couple of years sorted that out and early employers seemed to appreciate the more rounded real-world experience.

Cathartic. Though I wouldn't do it again now I have a wife, mortgage, and dog to support.

kcartlidge··on Apple introduces M4 chip
All I can say is I have both and I use both most days. In addition to work-issued Windows laptops, so I have a reasonable and very regular comparison. And the comparative experience is exactly as I described. Always. Every time.

> you have to deal with all the small slowdown from constant swapping

That just doesn't happen. As I responded to another post, though, I don't do Docker or LLMs on the M1 otherwise you'd probably be right.

> Unless you stick to a very small amounts of apps and very small amounts of tabs at the same time

It's really common to have approaching 50+ tabs open at once. And using Word is often accompanied by VS Code, Excel, Affinity Designer, DotNet, Python, and others due to the nature of what I'm doing. No slowdown.

> maybe you are emotionally attached

I am emotionally attached to the device. Though as a long-time Mac, Windows, and Linux user I'm neither blinkered nor tribal - the attachment is driven by the experience and not the other way around.

> maybe the various advantages of the Mac make you ignore the serious limitations that come with it

There are indeed limitations. 8GB is too small. The fact that for what I do it has no impact doesn't mean I don't see that.

> you can deal with the 8GB Apple Silicon devices you are very likely to be well served by a much cheaper device anyway (like half as cheap)

I already have better Windows laptops than that, and I know that going for a Windows laptop that's half as cheap as the entry level Air would be nothing like as nice because the more expensive ones already aren't (the Lenovo was dearer than the Air).

---

To conclude, you have to use the right tool for the job. If the nature of the task intrinsically needs lots of RAM then 8GB is not good enough. But when it is enough it runs rings around equivalent (and often 'better') Windows machines.

kcartlidge··on Apple introduces M4 chip
Not individually, no. Though it's often done simultaneously.

That said you're right about lots of RAM in that I wouldn't bother using the 8GB M1 Air for Docker or running LLMs (it can run SD for images though, but very slowly). Partly that's why I have the Lenovo. You need to pick the right machine for the job at hand.

kcartlidge··on What ever happened to Modula-2?
> If memory serves, JPI did a Modula2 compiler that looked quite a bit like Turbo Pascal.

There was. I bought (and used) it twice back in the day.

It was fast, simple, clean, modular (as you'd expect), and the IDE was the best IDE ever - in relation to its power/performance vs the machines it ran on at the time, obviously, not in absolute terms.

For the Pascal influence you only need to look at the career of Anders Hejlsberg of C# and TypeScript fame. Plus Free Pascal and Lazarus are (arguably) the best modern-day cross platform native desktop software development tools (like an open source cross-platform Delphi).

kcartlidge··on Apple introduces M4 chip
> If you go for the base model, you are in for a bad time, 256GB with heavy swap and no dedicated GPU memory (making the 8GB even worse) is just plain stupid ... their base model at somewhat affordable price are deeply incompetent

I got the base model M1 Air a couple of years back and whilst I don't do much gaming I do do C#, Python, Go, Rails, local Postgres, and more. I also have a (new last year) Lenovo 13th gen i7 with 16GB RAM running Windows 11 and the performance with the same load is night and day - the M1 walks all over it whilst easily lasting 10hrs+.

Note that I'm not a fanboy; I run both by choice. Also both iPhone and Android.

The Windows laptop often gets sluggish and hot. The M1 never slows down and stays cold. There's just no comparison (though the Air keyboard remains poor).

I don't much care about the technical details, and I know 8GB isn't a lot. I care about the experience and the underspecced Mac wins.

kcartlidge··on Ask HN: What nonfiction books do you keep rereading?
Most gave been mentioned, but as they probably won't be I'll include these:

- The Extended Circle - an Anthology of Humane Thought by Jon Wynne Tyson

- Letters from the Desert by Carlo Carretto

kcartlidge··on They thought they were joining an accelerator – instead they lost their startups
Years ago I took a dev role at a very well known UK organisation, a prestigious brand supposedly good for the career. Their systems turned out to be smoke and mirrors of the most braindead kind. One and a half days in I'd seen enough and I quit. If you know, you know.
kcartlidge··on Uno: Create Beautiful Cross Platform .NET Apps Faster
Maybe we have different circles.

I'm one amongst many using Net on other systems (Mac & Linux) as well as Windows. Larger enterprises which use VS on Windows often deploy the results onto Linux servers too (especially with microservices), which is hardly being hostile.

Though to address the issue of GUIs in Net-land, I've given up as nothing since WinForms (and possibly WPF) has lasted. They are 'supported' in many cases, but it always feels half-hearted or half-dead.

kcartlidge··on Ask HN: Is iCloud a viable alternative to Dropbox? Any other alternatives?
Fair enough - I get how with your use case these are issues.

I usually have a lot of files but most of them are single to tens of megs at most, so it works for me and I've never had the sync issues and upload failures you describe despite using it for years.

But my experience with other providers means I don't question your own experience here at all, and maybe others thinking of trying them out should consider which of our use cases more closely matches theirs and proceed with appropriate caution.

← PreviousPage 2 of 19Next →