Replies

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

timbray, to random
@timbray@cosocial.ca avatar

Passkeys were hot last year, don’t seem to be catching on, here’s one view of why that is. Dark and sobering but convincing: https://fy.blackhats.net.au/blog/2024-04-26-passkeys-a-shattered-dream/

tomw,
@tomw@mastodon.social avatar

@timbray Classic overengineered solution. It needs to be simple enough for anyone to understand. Currently it is not simple enough for people who work as programmers to understand.

tomw, to random
@tomw@mastodon.social avatar

Does a word processor exist (regular app or web app I suppose) that displays a section outline with 'live' word counts next to each section? Like:

Introduction (434 words)
Chapter 1 (942 words)
etc

This seems so simple but searching turns up a) other people asking the same question and b) bodgy scripts/plugins.

tomw,
@tomw@mastodon.social avatar

For now I'm using a script inside Google Docs that refreshes once per minute and... oh man. Feels like it's going to break at any moment.

tomw,
@tomw@mastodon.social avatar

One of these days I'll break and make Count Wordula, the word processor for people who are really into counting words but don't really need any other function of a word processor apart from maybe bold and italics

tomw,
@tomw@mastodon.social avatar

@siblingpastry Hmm, this does look like pretty much what I'm looking for! And the pricing isn't too bad. Thanks, I'll probably give it a try

tomw, to random
@tomw@mastodon.social avatar

You know how people do something slightly embarrassing in the coffee shop (or wherever) and then they say "now I can never go back there"?

I have worked in plenty of customer service jobs and let me reassure you that I never remembered anyone for any reason.

"My usual"? I have no idea who you are, sorry.

"I was just here an hour ago"? Nice for you, I did not retain that information.

"I've been waiting for my food for ages"? Hmm, it is possible that I was bad at this.

tomw,
@tomw@mastodon.social avatar

@brianstorms Yeah, people ordering in the Starbucks style ("grande oat milk extra hot"...) is annoying, wait for the questions.

Of course it's all moving to touchscreens now, so hey.

tomw,
@tomw@mastodon.social avatar

@DodoTheDev Everyone is the star of their own life...

tomw, to random
@tomw@mastodon.social avatar

Marketing website: "Wow, Bonkadonk makes collecting payments so easy, even my cat can do it! Now he runs his own fancy collars business. Thanks Bonkadonk."

Emails to customers: "We have just deprecated the C-7 GX Rootytooty trust chain as part of our move to GlobalSecure root chain v4. What does this mean for me? You will need to update..."

tomw,
@tomw@mastodon.social avatar

More websites should say "Wow, this made a difficult task somewhat less difficult, though also still requiring regular maintenance and basic competence."

tomw, to random
@tomw@mastodon.social avatar

Used to be that you'd ask "what are the kids into?" and the answer would be like, idk, pogs.

Now the answer is "liminal spaces".

tomw,
@tomw@mastodon.social avatar

I will not be taking questions on this.

Really though, they love those liminal spaces.

jaffathecake, to random
@jaffathecake@mastodon.social avatar

We use self-closing syntax in HTML where it doesn't do anything. People see it and assume it does something.

Why do we keep doing this to ourselves?

https://www.reddit.com/r/webdev/comments/1cceb03/i_thought_i_knew_html_until_i_saw_this/

tomw,
@tomw@mastodon.social avatar

@jaffathecake I'll never stop writing <br />

coldclimate, to random
@coldclimate@hachyderm.io avatar

Day 2 in an open plan office and I've no idea how people get anything done.

tomw,
@tomw@mastodon.social avatar

@coldclimate Find a hideout in some other, less-used part of the building, unloved meeting room, etc. (May not work in all cases.)

mogwai_poet, to random
@mogwai_poet@mastodon.social avatar

You may have seen the Balatro Discourse, which consists of people looking at a screenshot of code that it straightforward and getting angry that it's not more complicated.

I'd just like to posit here that a straightforward solution is an excellent default and you should have a really solid argument for the advantages of a complicated solution before you choose it.

tomw,
@tomw@mastodon.social avatar

@foone @mogwai_poet Video game code is very much not the place for some fancy class inheritance pattern or whatever. If/then all the way

tomw, to random
@tomw@mastodon.social avatar

Pop quiz: can you spot the problem in this PHP snippet? I just got tripped up by it and it was very Not Fun. (This is rewritten to be a minimal example.)

if ( $coolness > 10 ) {
define('COOL_MODE', true);
}

if ( COOL_MODE == true) {
echo 'You are cool.';
}

18+ tomw,
@tomw@mastodon.social avatar

@abucci Yes, that's pretty much it!

The PHP7 behaviour is that if the constant COOL_MODE is undefined, then it returns the string "COOL_MODE". This in turn evaluates to true or 1, triggering code paths you didn't expect.

PHP8 has the more 'correct' but also breaking behaviour that I ran into: if you try to make any comparison with an undefined constant, then instead of returning false it returns an error. And if you do not catch it then it is a fatal error, your page returns a 500.

tomw,
@tomw@mastodon.social avatar

@abucci Yeah, they're trying to fix a historical mistake but making a bit of a mess in the process...

tomw,
@tomw@mastodon.social avatar

@datarama @abucci In general – and hardly anyone agrees with this – I preferred old-PHP's "render something, even possibly completely the wrong thing if you have a weird logic bug" approach to new-PHP dropping fatal errors and hard stops all over the place

tomw,
@tomw@mastodon.social avatar

@Geoff @datarama @abucci I think it's more that they want to focus on an audience that's building "apps" instead of pages.

When you're just adding some widget to a page, you want it to just error out and the rest of the page to still continue. You don't want execution to 'correctly' stop on error.

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