@jnv@mastodon.social avatar

jnv

@jnv@mastodon.social

I work with computers.

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

jnv, to til
@jnv@mastodon.social avatar

#TIL There's a draft of RFC for transclusion via HTTP Prefer header: https://inadarei.github.io/draft-prefer-transclude/
#HTTP #hypertext #transclusion

wilfredh, to random
@wilfredh@mastodon.social avatar

Which languages do you consider to have the biggest/smallest standard libraries?

JS and Rust have a reputation for being pretty small. C has fewer data structures, but a bunch of system APIs.

Python feels more like a kitchen sink.

Where are other languages on this spectrum?

jnv,
@jnv@mastodon.social avatar

@wilfredh I'd say Ruby's standard library is on par or even more featured in some ways than Python's. For example, it comes with YAML and RSS support out of the box.

baldur, to random
@baldur@toot.cafe avatar

Had to open twitter for the first time in a while to handle a DM (wish I could set up an auto-reply telling people to just email me instead) and one of the first things I see, other than the endless AI hype, is a thread where a bunch of web devs with decades of experience are all agreeing with each other that all HTTP verbs other than GET and POST are useless.

And I'm just🤦‍♂️

How did we get to this point? These are the people who are supposed to be senior developers in the industry.

jnv,
@jnv@mastodon.social avatar

@baldur I can emphatize with both sides. The exCTO of the company I currently work for was a big proponent of this obscure “JSON-Pure” approach to API design which ditches even GET: https://mmikowski.github.io/json-pure/
As I understand his reasoning, fitting your API to HTTP constraints results in arbitrary decisions and fighting the limitations of the protocol (eg. query string size for GET requests), so why not make stuff simple for yourself (and API consumers).
My goal is to challenge this, obviously. 😉

Edent, (edited ) to random
@Edent@mastodon.social avatar

Well, I've farted around enough with my blog's layout and theme, I'd better get to writing.

But before I do. Should I add an optional "Dark Mode" CSS?

jnv,
@jnv@mastodon.social avatar

@Edent Well, if server-side rendering is an option, you could use a good old form to set a cookie and send an appropriate CSS based on that… (There's also a client hint header to ask for the default: https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Sec-CH-Prefers-Color-Scheme – sadly Chromium-only).

jnv, to random
@jnv@mastodon.social avatar

Are you ready to pay for the privilege of posting to Xitter? https://www.theverge.com/2023/10/17/23921752/x-not-a-bot-charge-new-users-elon-musk

jnv, to golang
@jnv@mastodon.social avatar

#TIL that dependency graph spam is a thing.

Screenshot of Go source code from project TotallyMaliciousCryptoBro with dependencies listing various non-Go repositories, like awesome-nodejs or NodeBB.

jnv, to random
@jnv@mastodon.social avatar

I just learned that #hacktoberfest doesn't include any t-shirts or stickers as rewards this year. Nice!

jnv, to random
@jnv@mastodon.social avatar

Everytime someone mentions “Cell-based architecture” I imagine Conway's Game of Life.

jnv,
@jnv@mastodon.social avatar

#Smalltalk is the OG cell-based architecture.

evan, to webdev
@evan@cosocial.ca avatar

What's the best place to host a single page client-side app in 2023 on one's own domain with SSL?

Is the answer still “GitHub Pages”, or is there something better?

#FrontEnd #Hosting #Code #HTML #SinglePage

jnv,
@jnv@mastodon.social avatar

@evan Not sure if the best but Cloudflare Pages are also a free option with HTTPS baked-in.
…buut if you'd prefer something less big tech-y, both Codeberg and sr.ht provide pages hosting (see: https://docs.codeberg.org/codeberg-pages/ & https://srht.site/ )

smallcircles, to Skydiving
@smallcircles@social.coop avatar

The kinds of horrible some ostensibly respectable website have in their dialog gives me a very strong urge to never visit these sites under any circumstances.

I'd need a for those as web extension, but one that signals these sites upon encountering their URL by hitting that URL 100 times with a "CookieHell" added to the URL's, so that it 404's.

Want an example of such a hell site. Check out Futurism.com that sends your data to 1,000's of vendors.

jnv,
@jnv@mastodon.social avatar

@smallcircles You could also practice with this game about cookie consent https://cookieconsentspeed.run/

(Seriously though, uBlock Origin with right block filters usually does it for me.)

nurkiewicz, to vscode
@nurkiewicz@fosstodon.org avatar

Command palette is a game changer in complex #GUI apps. Don't remember where a particular feature is located? Just search for it!

Cmd + Shift + P: #VScode
Cmd + Shift + A: #Jetbrains IDEs, like #IntelliJidea, #WebStorm
Cmd + Shift + K: @elk #Mastodon client
/: @GIMP
Cmd + P: #Warp terminal, @obsidian

Do not confuse command pallete with search everywhere (typically Cmd+K) in #DataDog, #Slack, #Spotify, #Monday. It searches through your documents/files, but not through commands and options.

jnv,
@jnv@mastodon.social avatar

@voxpelli @nurkiewicz Unity [the discontinued desktop environment by Canonical] provided this for any global menu-compatible app by pressing Ctrl.
I miss Unity so much…

jnv, to random
@jnv@mastodon.social avatar

ffs

jnv, (edited ) to til
@jnv@mastodon.social avatar

#TIL that the (in)famous “418 I'm a teapot” status code was never intended for HTTP, but only for Hyper Text Coffee Pot Control Protocol (which aimed to humorously illustrate how HTTP is being abused). So the majority of libraries include this status code by mistake and getting rid of it would be a breaking change… https://www.rfc-editor.org/rfc/rfc9110.html#name-418-unused
#HTTP #HTCPCP #HTTP418 #RFC2324

jnv, to random
@jnv@mastodon.social avatar

Are we in that stage of the web?
“Chromium announces 15% faster dispatches in Redux”
“Next version of Safari boasts 2× speedup in DOM diffing for Angular.”
https://hacks.mozilla.org/2023/09/faster-vue-js-execution-in-firefox/

MissingThePt, to random
@MissingThePt@mastodon.social avatar

Me at Tesla showroom: “Can we get a cybertruck?”
Spouse: “We’ve got a cybertruck at home.”
Cybertruck at home:

jnv,
@jnv@mastodon.social avatar

@MissingThePt Nailed it.

jakub, to twitter Czech
@jakub@jirutka.cz avatar

/X is really dead. Already in recent months I’ve observed a significant drop in real engagement on my tweets and increase of bots.
In last day I posted one tech and one non-tech post on X and . X: 0 reactions, Mastodon (with 1/20 fellowers): 14 likes, 3 RT, 1 reply.

jnv, (edited )
@jnv@mastodon.social avatar

@jakub As far as I know, having a personal server has mainly two disadvantages:

  1. You don't have any peers on a Local timeline (but you're still visible in Federated timeline on other servers with your followers).
  2. More importantly, you see only replies to other posts by people you follow, so you need to open the original post on its server. (On larger server there's bigger chance someone else follows someone who replied, so you get bigger picture.)
jnv,
@jnv@mastodon.social avatar

@jakub Oh also hashtags search is severely limited since you only search through posts your server “sees” (ie. by people you follow or what they boost). There isn't any sort of “global hashtag index”.

TodayInTwitter, to random
@TodayInTwitter@mastodon.social avatar

Elon Musk, owner of X, the platform formerly known as Twitter, tells people on X, the platform formerly known as Twitter, to stop calling X, the platform formerly known as Twitter, “X, the platform formerly known as Twitter”

jnv,
@jnv@mastodon.social avatar

@rysiek @TodayInTwitter Make sure to pronounce Xitter as :[shitter]: (similar to Xi Jinping)

airadam, to random
@airadam@mastodon.me.uk avatar

So, the API tool Postman is discontinuing support for local-only operation next month, requiring users to migrate to cloud-based "workspaces" instead. I use it for a few personal projects and accounts and don't particularly feel thrilled about having to upload keys/secrets/etc to carry on using it. Is there an alternative to Postman which people think is better?

#softwareDevelopment #BlackMastodon #BlackFedi #postman

jnv,
@jnv@mastodon.social avatar

@airadam My favorite is https://hoppscotch.io/ - though it's browser-based, it's local-first (account is optional), open-source and self-hostable. Needs browser extension to bypass CORS/avoid proxy.
Some which I didn't try but look nice:
https://github.com/flawiddsouza/Restfox
https://pororoca.io/

jakub, to twitter
@jakub@jirutka.cz avatar

Elon is slowly but surely killing , so I’ve decided to make a gradual exodus. I’ve deployed my personal instance on https://social.jirutka.cz. I’m planning to set up a bridge to sync tweets/tooths back and forth.

jnv,
@jnv@mastodon.social avatar

@jakub Oh, okay. I assumed it was a deliberate choice but you seem to be rather oblivious.

This Firefish: https://joinfirefish.org/ - fka Calckey, originally fork of Misskey.

jnv,
@jnv@mastodon.social avatar
jnv,
@jnv@mastodon.social avatar

@jakub And by the way, it's all the same network (ActivityPub), just different server software. :catjam:

jnv,
@jnv@mastodon.social avatar

@jakub I've tried Firefish a bit and liked it so far, still need to try it on mobile. It's more playful and feature-packed compared to Mastodon's Twitter-like experience. On the other hand, there are more high-quality native mobile apps for Mastodon, especially on iOS, so YMMV.

All those servers speak ActivityPub and Mastodon is sort of minimal subset everyone supports, it'll just miss some fun stuff like animated text: https://firefish.social/notes/9eqm90uxjg

jnv, to random
@jnv@mastodon.social avatar

HATEOAS

🤔

Hate OAS?

#openapi #hateoas

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