nintendo, to webdev
invicticide, to webdev
@invicticide@mastodon.gamedev.place avatar

My personal website has been using for years, but I update it very infrequently, and every time I need to, some jekyll/ruby dependency or another has somehow broken or gotten out of date, and I have to dig around in docs to remember how to fix it.

It's getting real old.

Is there a better, simpler, lighter weight solution for based static sites these days?

thomasreggi, to webdev

HTMX is trending again on hacker news, it's making me think more and more about the deno / typescript library I created "HTMX Components" and perhaps revisiting it with fresh eyes. I'd love feedback on the approaches in there. I think @deno_land has the potential to be the first-class server to utilize HTMX. It just makes sense to use JSX...

🧑‍💻 https://github.com/reggi/htmx-components

📝 https://news.ycombinator.com/item?id=35829733

bgawalt, to programming

Question for people who make websites, especially hobby websites, that use cookies:

what do you put in those cookies? They're allowed to be up to like 4KB for your whole domain, right?

That both seems like too much for "just" a user/session ID, while also being too little to hold actual state (like, game history & stats) for a website with a dozen toys on it.

michael,
@michael@thms.uk avatar

@bgawalt incidentally I once worked at a company where I was assigned a weird bug: if you added too many items to their shopping cart, it would eventually push the oldest item out, every time you added a new item.

Turns out they stored the entire shopping cart (sku, quantity, price for each individual item) in the cookie. (Thankfully they did at least do server side validation upon submission of order)

I genuinely couldn’t believe it 😁

nmronline, to science
@nmronline@mstdn.science avatar
danjac, to programming
@danjac@masto.ai avatar
michael, to programming
@michael@thms.uk avatar

The other day I discovered a shortcoming of WCAG 2 contrast ratings:

It appears that sometimes text with a lower contrast can actually be easier to read:

https://blog.thms.uk/2023/05/colour-contrast-and-accessibility?utm_source=mastodon

thomasreggi, to programming

I'm bothered that https://www.webcomponents.org/publish uses NPM packages as the main way to publish a web component. I want a better web-component "package manager", something that's simple, uses module imports, can use Tailwind and TypeScript, and just plops out a URL like Deno packages do. It would support LIT and webc. I'd want a storybook-like UI and sample code.

SteveFaulkner, to programming
@SteveFaulkner@mastodon.social avatar
asahi95, to linux

Time for another ANOTHER :verifiedbi:

I'm Asahi 95, the 95 in my name refers to 95 :windows:, cause I love the retro aesthetics of old Windows :ms_heart_eyes:

I'm a person who is a tech enthusiast :ms_computer: and loves and , although I still use some from time to time :linux: :opensource:

I'm currently learning how to do stuff such as , , and maybe even so i could maybe become a web dev in the future!

I joined the :fediverse: mainly because I wanted to get away from centralised services 🔒 and also want to interact with an open and diverse community that respects one another :blobcathug:

I'm a person who is and is an avid supporter of the + :philly_pride:

I hope I can interact with everybody on the Fediverse and beyond! :blobcat:

parcifal, to webdev
@parcifal@hachyderm.io avatar

I am giving a small tech talk on May 10th about using as a wrapper around the permissions framework and I am terrified 🙃

On a side note, do any web/backend want to do some sanity checks on my code at some point? Let me know! I'm open to ..friendly.. feedback! :heart_cyber:

daz, to programming

How long do you keep renewing the domain name registration for the side project you never finished?

anatudor, to programming
itsjoshbruce, to php
@itsjoshbruce@phpc.social avatar

I'm always torn between "don't repeat yourself" and localizing everything, so I don't need to hunt through 50 files to find things.

Does anyone have some guidelines and guardrails around making those choices and trade-offs that you find helpful?

I'm experimenting with namespacing functions and starting to draw some concepts, but I'd also like to see what's out there.

Comments, links, and boosts would be appreciated.

thomasreggi, to programming

Who is someone you follow on mastodon that is a programmer and posts regularly about new technologies? Looking for people to follow.

rauschma, to webdev
@rauschma@fosstodon.org avatar

nostalgia: I just clicked “surprise me” several times on wiby (a search engine for sites that have no JavaScript at all) and it’s a lot of fun.
https://www.wiby.org/

dotproto, to programming
@dotproto@toot.cafe avatar

Questionable podcast idea!

Title: Speaking of extensions…

Premise: I spend an hour talking with someone I know/admire about a mutual interest (, , , etc), then inevitably end up talking about

It's like hanging out with a friend, but probably more awkward!

fell, to programming
@fell@ma.fellr.net avatar

Hey , , , and other people, what's the most clear/sharp on a regular ?

The family is pretty good, but are there others?

michael, to programming
@michael@thms.uk avatar

Just came across this article on colour contrast, which I found interesting because of my quest yesterday, of trying to understand why a button with more apparent contrast, actually had a lower (and failing) score by WCAG standards:

https://pimpmytype.com/color-contrast/

Overall very much worth a ready!

SteveFaulkner, to programming
@SteveFaulkner@mastodon.social avatar

😑 Looked at https://build.mmm.page/
fixed their headline in a jiffy

michael, to programming
@michael@thms.uk avatar

Just came across this post from @eric who makes some really good points about custom scroll bars:

https://ericwbailey.website/published/dont-use-custom-css-scrollbars/

I had this discussion with someone recently, who was adamant they wanted custom scroll bars. Just because you can, doesn't mean you should...

kaiserkiwi, (edited ) to programming German
@kaiserkiwi@corteximplant.com avatar

: All of the major browsers include $() and $$() convenience methods. (Like in jQuery back in the days)

$() replaces document.querySelector()
$$() replaces* document.querySelectorAll()

And it has pretty robust browser support:
https://caniuse.com/dom-manip-convenience
If you don’t care about IE or Opera Mini you should be fine. And in nearly no project anyone cares about these two anymore. (But for Opera Mini you should definitely check your target audience!)

  • The $$() method returns an array (not a NodeList like the Element.querySelectorAll() method) of matching items.
kaiserkiwi,
@kaiserkiwi@corteximplant.com avatar

Follow up because I never researched this topic but was always just confused about NodeLists 😅

NodeLists vs. Arrays
https://gomakethings.com/nodelists-vs-arrays/

In Short, aren't a Feature it's an language agnostic Browser API. 🤯 querySelectorAll() and getElementsByTagName() aren’t JavaScript methods either. 🤪

I love how I use JavaScript for about 17 years now and still learn new/old things about it. ^^"

kaiserkiwi,
@kaiserkiwi@corteximplant.com avatar

My whole coding life has been a lie!

» does not have a timer or network feature«

So many things I always thought that are JavaScript. 😅
Does it change my daily coding life? Absolutely not. Is it good to know? Hell yes!

In some situations, this knowledge would definitely have helped me.

https://dillionmegida.com/p/browser-apis-and-javascript/

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