HNHacker News
TopNewBestAskShowJobs

rahoulb

2,475 karma · joined November 9, 2009

Rubyist - https://theartandscienceofruby.com/ CTO at Collabor8Online - https://www.collabor8online.co.uk/
submissionscomments
rahoulb··on Windows 9x and Word 9x at 800x600 resolution. Spacious. Comfy
Take a look in a lot of boardrooms.

If typing weren't such an important part of my job, I probably would too. There have been times when I've not been writing much code and then I rarely touched a computer. For calls, meetings, sketches, quick note taking, planning stuff out, audio editing, things like that I much prefer an iPad.

rahoulb··on Windows 9x and Word 9x at 800x600 resolution. Spacious. Comfy
It depends entirely on your audience.

If you're dealing with a hundred people in an office, then the vast majority can probably deal with a high-density UI. Because they are there for work and the UI - and more importantly the concepts underneath that UI and the mental model it requires - will be related to the stuff they already know.

But if you're dealing with an audience of millions who are trying to pass the time, or using apps or parts of the system that they rarely interact with, or have no real interest in the device, then a high-density UI will be extremely intimidating. They have no mental model of what is being represented on-screen - and if it's casual usage, they have no desire to spend the energy to learn that mental model. What they will want is the device to have two big buttons saying "do this" or "do that". Which is why the iPhone's grid of icons endures - "I want a bus ticket", "I want the camera", "I want to watch a video".

Personally I think the hardest part of UX design is ensuring the model presented on-screen matches the model that the user is expecting.

Which has two implications - firstly, it's entirely audience dependent and secondly, the further the UX model and the actual underlying model diverge, the more cracks will appear while people are using it - so you have to design from the bottom up for that given audience.

rahoulb··on Closure, from why the lucky stiff (2013)
With Ruby I feel (feel being the operative word) like I’m free to get the computer to do what I want and create something that looks good and makes me happy.

But in other languages I immediately feel cramped and constrained - and the code looks ugly to my eyes.

As for correctness and quality, number one is it has to fulfil the business requirements I’m being paid for (and I’ve shipped lots of crappy code that I’m ashamed of but the clients are very happy) and secondary, I like to look back at it and see something elegant that also looks good in an editor.

Of course, the definitions of elegant and “looks good” are the real questions here.

rahoulb··on Closure, from why the lucky stiff (2013)
I don’t mean it as a separation, it’s an emotional response to how I do things.

In fact my blog is called The Art && Science of Ruby

rahoulb··on Closure, from why the lucky stiff (2013)
I always said "Python is like writing maths, ruby is like writing english"
rahoulb··on Tell HN: Nearly all of Evernote’s remaining staff has been laid off
In general I would agree but the hardest part of any success is getting the word out there.

Especially for double-sided markets like food delivery where you have a chicken and egg problem - why providers sign up when there aren’t users and why would users sign up when there aren’t any providers.

That’s a human problem, not a technical one, and is the expensive bit.

rahoulb··on The quest for a simple smartwatch
I've been waiting for years for that (or at the very least being able to manage the watch from an iPad, as I tend to carry that around with me).

The only other thing the watch is missing is the ability to connect to bluetooth in my car, so if I have left my phone behind I can still answer calls or listen to music. I'm sure this is intentionally crippled as it starts the pairing process then fails - tried in several cars with different makes of head unit.

rahoulb··on So you want to write a GUI framework (2021)
https://www.legislation.gov.uk/ukpga/2010/15/contents

Section 20

rahoulb··on Supertokens: Open-Source Alternative to Auth0 / Firebase Auth / AWS Cognito
IANAL but that's why law has to be interpreted by judges rather than being a book of absolute rules.

Lots of codified laws are bent or modified by prevailing social attitudes, customs or precedent, so you could argue "I looked at it a couple of years ago and then independently decided to implement something similar" is a very different situation to "we read through the code and a week later started on a competitor".

Whether you'd get away with it is another matter, depending upon interpretation and perspective.

rahoulb··on Story: Redis and its creator antirez
I just want to add my voice to the many thanking antirez for Redis.

Back when I discovered it (probably through Resque), my mantra was "NoSQL is fraud" as I was yet to find a NoSQL database that I trusted with my data (yes, I know Redis isn't strictly a NoSQL database - or at least wasn't at the time).

But reading the docs and looking at how it worked, it shone through how carefully thought out and well-crafted it was. And this was without even looking at the source code (I haven't done any C for years and doubt I would understand it anyway).

It's amazing how that excellence shines through beyond the code and it's still one of my go-to tools (I mainly work with Rails, so can't avoid it to be fair) - so thank you again Salvatore.

rahoulb··on Even Apple employees hate Siri and are skeptical of its future, new report says
I think there's something about sounds that you learn early on in language acquisition - maybe your brain develops differently.

'th' is the obvious one that non-english speakers struggle with. I remember a dutch guy laughing at my attempts at various dutch words - I literally could not hear the difference between his pronunciation and mine.

And 'ch' (as in Loch or Bach) is a sound in Scottish english but not in English english.

I lived in Scotland till I was 4, then moved to England and all traces of my previous Scottish accent are long long gone. But my friend, whose surname is Donnachie, says I'm the only English person she's met who pronounces her name correctly - I guess because I learnt that sound early on.

Similarly, my dad, who learnt english in India, still struggles with a "j" sound (he says "zudge" instead of "judge"), despite living here for 50 years and having a posh middle-class English accent that sounds just like a "native" english speaker.

rahoulb··on OpenCore Legacy Patcher – Use new macOS versions on old hardware
I have a 2015 27" i5 iMac and I use OCLP to run Ventura on it.

Everything is fine - apart from some very occasional graphics glitches (transparency effects and so on). A bigger issue is every time there is an official OS update, Bluetooth breaks. I have to plug in a keyboard and mouse, get OCLP to repatch the OS and reboot.

rahoulb··on Better alternatives to git submodules
That's what I have been doing, but I wondered if there was something I'm missing with the submodules
rahoulb··on Better alternatives to git submodules
This is timely, as I used submodules years ago and got very confused with them.

But now I have an Ask HN:

I'm building a ruby gem (package) that will be shared across a few of my applications. The apps are separate and proprietary, but I want to open source the gem, so a monorepo doesn't fit.

When the gem is stable, I can just publish it and then reference it in my Gemfile like any other gem - rebundling every time there's a new release.

But at the moment, I'm actively developing the gem and making frequent changes to the API - so I want to reference it directly from the container app and edit both together as different edge cases arise.

The standard Ruby on Rails way to do this is to stick it in /lib or /vendor - then work on it and once done, extract it and publish the gem. But I'm working on several apps that share this gem and will all influence how it works. So I don't want multiple vendored copies scattered across different source trees. And I don't want to be rebundling the app every time I make a minor change to the gem - so referencing the git repo is out.

On paper a submodule sounds like the perfect solution - main app is a repo, with a submodule repo in vendor. I can make changes to both, then push them separately to their own repos. If I start working on app 2, I just fetch the submodule to get the latest version of the gem without having to rebundle everything.

As it's just me working on this set of code at the moment, are submodules a good fit?

rahoulb··on How they filmed The Last of Us arcade scene
I like that it doesn’t have many zombies. We’ve all seen loads of them and their rarity means it’s a genuine scare when they appear.

(I’ve not played the game though but I’m going to get it now)

rahoulb··on The age of cargo cult Agile must end
Not least - the Agile Manifesto states "favour people over processes" - by definition, there isn't a fixed process that you should be following as it will change whenever people are added to or leave the team. This is the exact opposite of what companies want - consistency with (most) people being interchangeable.
rahoulb··on Web Push for Web Apps on iOS and iPadOS
However with a native app, you've chosen to install it, so you're at least partially interested in its notifications. With a website, you may just have browsed to it and have no intention of ever returning again. So the point of having to "install" the PWA to your home-screen mimics that first stage of intention.

The key issue (as many others have noted) is that the "installation" step is still somewhat arcane.

rahoulb··on Web Push for Web Apps on iOS and iPadOS
Somewhat off-topic but as someone who used to be a very heavy iPad user (the M1 Mac has kind of obsoleted it), I think of the share sheet as the equivalent of a Unix pipe. It takes your current view or output and makes it available to another process - and if you use Shortcuts, you can actually see the data and its transformations along a literal pipeline.

So, back on-topic, it does kind of make sense in that you’re taking the current URL and sending it to the Springboard.

rahoulb··on Bing: “I will not harm you unless you harm me first”
While ChatGPT is limited to 2022, Bing feeds in up to date search results.

Ben Thompson (of Stratechery) asked Bing if he (Ben) thought there was a recession and it paraphrased an article Ben had published the day before.

(From Ben’s subsequent interview with Sam Altman and Kevin Scott):

> I was very impressed at the recency, how it captures stuff. For example, I asked it, “Does Ben Thompson think there’s a recession?” and it actually parsed my Article on Monday and said, “No, he just thinks tech’s actually being divorced from the broader economy,” and listed a number of reasons.

rahoulb··on Hardcoded Folder Icons in macOS
The copy/paste the icon file dates back to pre-OSX MacOS. There were many theming utilities for MacOS that made the process easier and a lot of them came over to OSX/macOS, but they seem to have died out now.
rahoulb··on Hardcoded Folder Icons in macOS
Blowing the smoke away is a great touch.

I miss that kind of thing - the closest we get nowadays is when things bounce or shake a little bit as you interact with them.

I guess this is what Gruber was talking about recently - stuff that wouldn't go on a spreadsheet of features but make you want to use the app just because it does stuff like this.

rahoulb··on Hardcoded Folder Icons in macOS
It may be hard to believe now, but there was a time when iTunes was a great piece of software. It used to have two jobs - play your music and manage your music - and it had a good UI for both tasks.

iTunes had a "brushed metal" interface - the Apple HIG said brushed metal was for apps that represent "devices", as opposed to standard "Aqua" (or "Platinum" if you go back far enough) for apps which represent "documents" - and in the top-right corner was a recessed "iris". When you put a blank CD into the drive, then clicked the iris with a playlist selected, the iris animated opening, revealing a glowing yellow and black "Burn" button (using this same icon). You clicked the glowing button and your playlist would be burnt to CD.

Burning a CD was an expensive operation (both in time and compute, as it slowed the machine down, plus it tied up your CD drive), so the "safety cover" iris and the animation revealing the button underneath used to delight me every time I used it.

rahoulb··on Show HN: Docker rollout – Zero Downtime Deployment for Docker-compose
There's a difference between a hardware or other catastrophic failure giving you serious downtime and wanting to deploy a new version several times per week.
rahoulb··on Show HN: Docker rollout – Zero Downtime Deployment for Docker-compose
The apps that I build (and use dokku to deploy - thank you josegonzalez, it's a great tool) are critical to their users.

While ten, twenty, thirty seconds isn't much in the grand scheme of things, if it happens just as someone is doing an important update, it reduces trust in the software. If it happens a couple of times, they're going to report back to their boss that the system is unreliable and fails just when they need it most.

And with international users, I can't be sure that I'm picking a time to do a deployment where no-one is going to be using it.

rahoulb··on Google and Mozilla are working on iOS browsers that aren't based on WebKit
I know a lot of non-technical people who use Webkit-Chrome on their iPhones because they (have to?) use Blink-Chrome on their computers.

Currently they just accept that "iPhone" browsers don't behave exactly like computer browsers, but if Google started a campaign saying "now you can get exactly the same behaviour on your phone" I'm sure it would influence them.

rahoulb··on Big data is dead
Not just data scientists.

My friend runs a successful market research agency and she says she gets called in when management have decided they need to make a change but need evidence to sell it to the shareholders and staff.

rahoulb··on Apple’s Mac security is so good, it’s sending used M1 MacBooks to the scrap heap
For some thieves the data is important. But for most, the hardware is what they are after as they can get a quick couple of hundred quid for it.
rahoulb··on Apple’s Mac security is so good, it’s sending used M1 MacBooks to the scrap heap
Activation Lock started on iPhones and the purpose was to discourage theft, as people were having them ripped out of their hands and then sold on.
rahoulb··on Ask HN: What would be your stack if you are building an MVP today?
I love Hotwire and it's reinvigorated my love of Rails.
rahoulb··on Official Warning: Zero3K
> certain professionals sacrifice aspects of their lives in order to facilitate treatment and professional isolation for such individuals in an effort to keep them off the street and out of interactions with regular society.

That was literally my dad’s job. In the UK in the 80s they implemented a policy called “care in the community” which was about ensuring that people with serious mental health issues were not institutionalised. For the most part this was a good thing but my dad actually made the decisions over the care and freedom they would receive. Eventually he quit because he felt too many dangerous people were being released - and in the end worked at Rampton, which is a prison hospital, looking after serial killers.

← PreviousPage 3 of 28Next →