@joelanman@hachyderm.io avatar

joelanman

@joelanman@hachyderm.io

He/him, previously design lead on GOV.UK Prototype Kit and other GDS projects.

Looks after plants and animals. Anxiety and depression

This profile is from a federated server and may be incomplete. Browse more on the original instance.

joelanman, to random
@joelanman@hachyderm.io avatar
joelanman, to random
@joelanman@hachyderm.io avatar
joelanman,
@joelanman@hachyderm.io avatar

@nicod It's great!

joelanman, to accessibility
@joelanman@hachyderm.io avatar

its a shame this hasnt moved along

https://github.com/w3c/aria/issues/1404

joelanman, to random
@joelanman@hachyderm.io avatar

Figma still doesn't have text on a path, and the plugins that do it seem ropey

bernat, to random
@bernat@social.ei8fdb.org avatar

How many hours of human brain power are wasted saying "Can everyone see my screen?", in order to making up for the fact that video conference screen-sharing is stress inducing, and tools do a shit job of feedback.

joelanman,
@joelanman@hachyderm.io avatar

@bernat you're on mute

edeverett, to UX
@edeverett@mastodon.social avatar

Does anyone have a good working definition of what an "intuitive interaction" a means? Not academically as such, think something usable as design principles.

I currently working with:

"An interaction is intuitive when it is learned and understood through the act of doing it once"

The key for me (I think) is in the "act of doing it" bit. Learned by doing and simple enough that's it's understood as you do it.

joelanman,
@joelanman@hachyderm.io avatar

@edeverett something that is easy to use when you try it for the first time

joelanman,
@joelanman@hachyderm.io avatar

@edeverett maybe its something to do with intention? Like it's easy to slip on ice, but it'd be weird to call that intuitive

joelanman,
@joelanman@hachyderm.io avatar

@edeverett so with that and your point about deceptive patterns:

something that works the way you think it will

joelanman, to webdev
@joelanman@hachyderm.io avatar

Anyone used cron jobs on Railway.app? I'm confused by their implementation - seems like you have to create a whole new service for it

https://help.railway.app/questions/how-to-run-specific-scripts-in-a-cron-jo-924f9f1a

joelanman, to random
@joelanman@hachyderm.io avatar
joelanman, to javascript
@joelanman@hachyderm.io avatar

This feels a bit wonky to me. You can't use const like this:

try {  
 const myVar = myFunc(options)  
} catch (error) {   
 console.error(error)  
}

console.log(myVar)  

as myVar doesn't exist outside the try scope. So if you need to do a try catch, you have to use let - even if you actually want to use the variable as a const (not change it later)

let myVar  
try {  
 myVar = myFunc(options)  
} catch (error) {   
 console.error(error)  
}

console.log(myVar)  

#javaScript

joelanman,
@joelanman@hachyderm.io avatar

@woodsbythesea sorry not sure I follow can you give an example?

joelanman,
@joelanman@hachyderm.io avatar

@woodsbythesea thanks! Yeh I shouldve given more context, I'm writing a controller in express.js, and in it I have to await a bunch of db calls. So without error handling I'd have

const users = await User.getUsers()  

but the db call can fail so I have to wrap with try. Claude.ai is suggesting wrapping all the code in the controller in the try, which sidesteps my const issue

joelanman,
@joelanman@hachyderm.io avatar

@woodsbythesea in express you have to call next with the error, which exists at the controller level, so I don't think I can

joelanman,
@joelanman@hachyderm.io avatar

this looks pretty smart, not sure I fully understand it though

https://stackoverflow.com/a/49664174

@woodsbythesea

joelanman, to random
@joelanman@hachyderm.io avatar

weird GitHub comment tip. When adding a link to another issue or PR, if you format it as a bullet point, it will be displayed with the title of the issue

joelanman, to CSS
@joelanman@hachyderm.io avatar

Is setting up a CSS grid, then having row divs with display: contents so its contents line up with grid a common pattern? Any pitfalls?

joelanman,
@joelanman@hachyderm.io avatar

ah ok, seems you can't style it if you do this, for example border-bottom does nothing

joelanman,
@joelanman@hachyderm.io avatar

subgrid seems like a better approach, thanks @teacherbuknoy

joelanman, to random
@joelanman@hachyderm.io avatar

Today on Nextdoor:

Admin please b l o o d y Is not swearing for god sake it is in the bibble

joelanman, to random
@joelanman@hachyderm.io avatar

I think something that can sometimes be misunderstood about the GOV.UK Design System is that if you find a component or pattern isn't right for your users, you can adapt or create a new one

https://www.gov.uk/service-manual/design/making-your-service-look-like-govuk#if-the-existing-patterns-dont-meet-your-needs

joelanman, to programming
@joelanman@hachyderm.io avatar

any opinions on Node.js logging libraries like Winston or Pino? Or do you just write your own logging functions?

joelanman, to random
@joelanman@hachyderm.io avatar

is a .env.template the normal way to document what's needed in a .env file in a project? Or do you do that in the readme/dev docs, or both?

joelanman, to webdev
@joelanman@hachyderm.io avatar

https://www.rspca.org.uk loads 5mb of JavaScript... just, why? To do what? The state of tech architecture is just awful

  • All
  • Subscribed
  • Moderated
  • Favorites
  • normalnudes
  • InstantRegret
  • thenastyranch
  • mdbf
  • Durango
  • Youngstown
  • slotface
  • hgfsjryuu7
  • vwfavf
  • rosin
  • kavyap
  • osvaldo12
  • PowerRangers
  • DreamBathrooms
  • anitta
  • magazineikmin
  • khanakhh
  • GTA5RPClips
  • ethstaker
  • cubers
  • ngwrru68w68
  • tacticalgear
  • everett
  • tester
  • Leos
  • cisconetworking
  • modclub
  • provamag3
  • All magazines