• hawksworx
  • blog
  • speaking
  • about
  • search

Notes - page 91

  • Newest
  • Previous
  • Next
  • Oldest

The archive of what I posted on Twitter, which I now self host due to a lack of trust in Twitter and some other reasons.

I'll soon begin refelcting all my Mastodon posts here too. I'm happier self-hosting or maintaining an archive of my content on URLs that I can own.

There are tools to help you do this too. Such as this one from the makers of Eleventy.

A photo of Phil Hawksworth's face
Phil Hawksworth @philhawksworth • August 24th 2021
I'll be chuckling at this on repeat all day today if you need me. https://twitter.com/cassidoo/status/1429862620555878404
  • Permalink
  • |
  • Twitter
A photo of Phil Hawksworth's face
Phil Hawksworth @philhawksworth • August 23rd 2021 replying to this from @bencodezen
@bencodezen Hoping you get plenty of headspace and decompression time, Ben!
  • Permalink
  • |
  • Twitter
A photo of Phil Hawksworth's face
Phil Hawksworth @philhawksworth • August 23rd 2021 replying to this from @iChris
@iChris And I rarely get a seat.
  • Permalink
  • |
  • Twitter
A photo of Phil Hawksworth's face
Phil Hawksworth @philhawksworth • August 23rd 2021 replying to this from @iChris
@iChris It’s that route home from work which makes the days so lengthy.
  • Permalink
  • |
  • Twitter
A photo of Phil Hawksworth's face
Phil Hawksworth @philhawksworth • August 23rd 2021
Since Jamstack can be such a force multiplier, there are many agencies capitalizing on it to do great work.

And you can still nominate your Jamstack Agency Of The Year.

...if you're quick.

https://jamstackconf.com/jammies/ https://twitter.com/Netlify/status/1429794212422340610
  • Permalink
  • |
  • Twitter
A photo of Phil Hawksworth's face
Phil Hawksworth @philhawksworth • August 23rd 2021 replying to this from @jaffathecake
@jaffathecake We use ours to prop the doors open
  • Permalink
  • |
  • Twitter
A photo of Phil Hawksworth's face
Phil Hawksworth @philhawksworth • August 23rd 2021
This is going to be ruddy great! https://twitter.com/JamstackLondon/status/1429755880472514561
  • Permalink
  • |
  • Twitter
A photo of Phil Hawksworth's face
Phil Hawksworth @philhawksworth • August 21st 2021 replying to this from @csswizardry
@csswizardry @sarah_edo Same, friend. x
  • Permalink
  • |
  • Twitter
A photo of Phil Hawksworth's face
Phil Hawksworth @philhawksworth • August 21st 2021 replying to this from @cassiecodes
@cassiecodes @csswizardry @sarah_edo DAMN YOU, NEW SCIENTIST!
  • Permalink
  • |
  • Twitter
A photo of Phil Hawksworth's face
Phil Hawksworth @philhawksworth • August 21st 2021 replying to this from @cassiecodes
@cassiecodes @csswizardry @sarah_edo I think just dense.
  • Permalink
  • |
  • Twitter
A photo of Phil Hawksworth's face
Phil Hawksworth @philhawksworth • August 21st 2021 replying to this from @csswizardry
@csswizardry @sarah_edo This is the ultimate praise and shade in a single statement.

And not something I can argue with.
  • Permalink
  • |
  • Twitter
A photo of Phil Hawksworth's face
Phil Hawksworth @philhawksworth • August 20th 2021 replying to this from @dizzyd
@dizzyd I'm so pleased to hear that you've had some good news. A valuable foothold on a tough climb.

I say hooray.
Hugs all around.
😘
  • Permalink
  • |
  • Twitter
A photo of Phil Hawksworth's face
Phil Hawksworth @philhawksworth • August 20th 2021
#TweetsRefactoredByMyLegalTeam

In my personal experience, which may differ to yours, "product" and "products" are examples of visually similar and easy to confuse variable names.

Finding a collective noun or compound word instead of "products" seems to save me some mistakes. https://twitter.com/philhawksworth/status/1428656544963497984
  • Permalink
  • |
  • Twitter
A photo of Phil Hawksworth's face
Phil Hawksworth @philhawksworth • August 20th 2021 replying to this from @piccalilli_
@piccalilli_ @bencodezen Got it.
Puppies and kittens only (in exactly even quantities) from here on in.

:)
  • Permalink
  • |
  • Twitter
A photo of Phil Hawksworth's face
Phil Hawksworth @philhawksworth • August 20th 2021 replying to this from @jaffathecake
@jaffathecake @heydonworks @bencodezen Agreed.
But please don't stop my fun of adopting the following (self-explanatory) variable names:

¯\_(ツ)_/¯
(╯°□°)╯︵ ┻━┻
┬─┬ノ( º _ ºノ)
ノ•ᴥ•ʔノ ︵ ┻━┻
(┛◉Д◉) ┛彡┻━┻
(ノಠ益ಠ)ノ彡
  • Permalink
  • |
  • Twitter
A photo of Phil Hawksworth's face
Phil Hawksworth @philhawksworth • August 20th 2021 replying to this from @jaffathecake
@jaffathecake @heydonworks @bencodezen Does it make the need for thoughtfully naming your variables go away? If so, I'm ready for some fun.
  • Permalink
  • |
  • Twitter
A photo of Phil Hawksworth's face
Phil Hawksworth @philhawksworth • August 20th 2021
Regardless of the other characteristics of the programming language, if it had a troupe data type, I'd embrace it like a long lost sibling. https://twitter.com/tjcrowder/status/1428665429929644032
  • Permalink
  • |
  • Twitter
A photo of Phil Hawksworth's face
Phil Hawksworth @philhawksworth • August 20th 2021 replying to this from @rem
@rem @bencodezen SHIP IT
  • Permalink
  • |
  • Twitter
A photo of Phil Hawksworth's face
Phil Hawksworth @philhawksworth • August 20th 2021 replying to this from @piccalilli_
@piccalilli_ @bencodezen Note to self:
If you use pseudocode to illustrate a point, make it far more pseudo than you were planning. Or better still, make the point without it.

And perhaps I'll park my tweet about embracing CSS in JS in order to polyfill for "colour" for another day.
  • Permalink
  • |
  • Twitter
A photo of Phil Hawksworth's face
Phil Hawksworth @philhawksworth • August 20th 2021 replying to this from @heydonworks
@heydonworks @jaffathecake @bencodezen Fair... the nub of the advice here was just to try to avoid simply pluralizing a noun.

Within that, sure, there are likely some good conventions/preferences to also imply things more deeply about the data type.
  • Permalink
  • |
  • Twitter
A photo of Phil Hawksworth's face
Phil Hawksworth @philhawksworth • August 20th 2021 replying to this from @jaffathecake
@jaffathecake @bencodezen Yeah... I thought that after posting too.. but I think that the general point about not simply plauralizing nouns remains.
  • Permalink
  • |
  • Twitter
A photo of Phil Hawksworth's face
Phil Hawksworth @philhawksworth • August 20th 2021 replying to this from @Hicksyfern
@Hicksyfern @_phzn @bencodezen That's true.

My code comments are entirely English vernacular here and not intended to have deeper CS meaning. But I think the principle stands regardless if it were a set, list, array, collection, bunch, clutch, gaggle, herd, or troupe. :)
  • Permalink
  • |
  • Twitter
A photo of Phil Hawksworth's face
Phil Hawksworth @philhawksworth • August 20th 2021 replying to this from @dutchcelt
@dutchcelt @bencodezen Yeah. It has always felt obvious to me to just pluralize nouns for collections of that noun. And that reads wonderfully. But spotting a missing or a superfluous "s" is so easy to botch, even (especially?!) after staring at the code for a while!
  • Permalink
  • |
  • Twitter
A photo of Phil Hawksworth's face
Phil Hawksworth @philhawksworth • August 20th 2021 replying to this from @rem
@rem @contentful I've always used the latter. And that's what I hear used by the folks I know who work there.
  • Permalink
  • |
  • Twitter
A photo of Phil Hawksworth's face
Phil Hawksworth @philhawksworth • August 20th 2021
The amount of time I spend debugging a common mistake dropped considerably after @bencodezen advised me to rethink my naming conventions for collections of things.

Bye-bye "products".
Hello "productList".
  • Permalink
  • |
  • Twitter
  • Newest
  • Previous
  • Next
  • Oldest

The source code of this site is available on GitHub and is hosted and updated by Netlify automatically after each code commit

Other than where specified, the content on this site is published under a Creative Commons Attribution 3.0 licence.

Subscribe to a feed of blog posts on this site.