JavaScript Is Going Places
javascript is going places and i'm all in function Bookmark({ slug }) { return ( <button formAction={async () => { "use shell"; await exec `touch bookmarks/${slug}`; }} > <BookmarkIcon /> </button> ); }
A screenshot of a social media post shows a JavaScript/React bookmark button whose server action runs a shell command to create a file named after the bookmark slug. The joke is that modern JavaScript is being enthusiastically used for an unnecessarily direct shell operation, humorously suggesting the language is going places while embracing questionable code practices. EN: A screenshot of a social media post shows a JavaScript/React bookmark button whose server action runs a shell command to create a file named after the bookmark slug. The joke is that modern JavaScript is being enthusiastically used for an unnecessarily direct shell operation, humorously suggesting the language is going places while embracing questionable code practices.
- @gentoomemes / 6992 2023-10-27
- Type
- image
- Size
- 800×626 · 48.5 KiB
- Mood
- sarcastic
- Language
- en
- Added