`@okikio/undent` preserves newlines, handles interpolations, and avoids the usual formatting bugs. Zero dependencies + works in Node, Deno, and Bun.
github: github.com/okikio/undent
npm: npmjs.com/@okikio/undent
jsr: jsr.io/@okikio/undent
`@okikio/undent` preserves newlines, handles interpolations, and avoids the usual formatting bugs. Zero dependencies + works in Node, Deno, and Bun.
github: github.com/okikio/undent
npm: npmjs.com/@okikio/undent
jsr: jsr.io/@okikio/undent
Got annoyed by weird indentation issues with multiline strings, so I made `@okikio/undent` a tiny dedent utility for template literals.
Strips leading spaces from multiline strings fixing the formatting...it's designed to be versatile and flexible.
github: github.com/okikio/undent
/1
you'll likely also want to ask it to cross reference your codebase to find reasoning/behaviour questions for you to clarify...
AI's are good at logic but gosh dang awful at reasoning... and in the age of AI reasoning might as well be gold...reasoning is true understanding...
/2
neat trick: literally just ask it to ask YOU questions, specifically questions on reasoning, architecture decisions and behaviour decisions.
it makes explicit the number of decisions you make during development, and also ensures that you are always kept in the loop...
/1
this straight up gives me anxiety
Hey yall!
hi all! i made a form about #comic tracking and collection habits. itβs short, anonymous, and mostly multiple choice. if you read or collect comics in any capacity, iβd love for you to fill it out. #comicbooks
x.com/jaydders/sta...
The 3 rules of life: *death*, *taxes* and *technical difficulties*
TIL, `document.implementation.createHTMLDocument(...)` is a thing developer.mozilla.org/en-US/docs/W...
it's really kinda dumb how there is no `hover` event in js that's tied into the `:hover` css selector, it's really freaking difficult to debug `mouseover`
AIs being unable to work with Tailwind V4 is the bane of my existence...honestly open source peeps should just like make paid MCPs so the latest info. is available to AIs making it OSS sustainable and avoiding the footguns that are version changes
Something I'm starting to realize is that in both power and respect, they are given not taken...the philosophical difference between giving and taking is the difference between a great leader and a bad one.
Ensuring the actual words are clear and understandable to all readers.
Imo the only design pattern book the soft. dev. industry needs is how to write code others can understand, and how to make clear the intentions and reasoning behind choices.
/4
I should be clear I don't mean the method of communication, one can argue Slack, Teams, and Discord have solved that, I mean the actual communication itself the actual words, intentions, background, problems, edge cases, solution, reasoning/logic, process, errors, unusual behaviour, etc...
/3
I've not yet seen anyone build AI tools to enhance communication, ensuring teams can works like finely tuned machines...it really is such a missed opportunity imo a multi-billion dollar industry.
/2
I strongly believe 99.99999% of errors, failures, and more... are all due to communication mishaps, whether misunderstanding requirements, poor understanding of user needs/wants, and/or poor communication of code and tooling, it all lands at poor communication...
/1
Honestly TENET deserves more love, covid and 2020 were the only reasons why we didn't see it
Your use of AI, and what you can get out of AI says more about your capabilities, your understanding, and you perspective of the world which are reflected in how you ask the question, than it does speak to the capabilities of the AI.
/4
Basically to use AI effectively you need to be able to introspect, aim to be a better communicator, aim to better understand the idea space you live in, really understand you tendencies, work on clearly identifying your intentions, etc...
/3...
Asking AI question can help identify that there is a potential unknown unknown, but its rarely enough to know what what unknown unknown is, it's generally something you have to actively seek out manually and it can be hard.
/2...
What AI has basically taught me is that I don't know stuff. To use AI effectively you need to know stuff. Thus, you first need to identify known knowns, known unknowns, and most importantly of all unknown unknowns.
/1...
Top tier fact: Perception is reality, until reality hits
I've found if you want to communicate anything especially with AI, you kinda wanna format it so it cover Intent, Impact, Logic, Rationale, Practical Examples, Edge cases, and Unconventional Behaviour.
^ it's waaayyyyy easier to understand if you're able to touch on all these
This is so random! and muuuuch needed
A new Random namespace with 22 methods for working with randomness in JavaScript.
proposal just hit Stage 1
Top-tier tip, always question your assumptions, you know less than you think but more than you realize.
Final Destination confirms that we absolutely world wide should just get rid of pennies...they are too dangerous...lol
TIL, using eval can actually cause js to be faster...
Source: romgrk.com/posts/optimi...
i'm starting to realize the fastest any non-runtime optimized js code can get is `Β΅s` (microseconds), optimized runtime code can get as fast as `ns` (nanoseconds).
1Β΅s = 1000ns
First look at a new Snipping Tool feature coming soon to Windows 11: the ability to quickly create GIFs from screen recordings!
You'll get options to export/copy the GIF, with a choice between low and high quality. This menu can also be accessed with a keyboard shortcut, Ctrl+G.
Why do this Mozilla? Why not shut down Firefox instead?
This month, JavaScript turns 30 π
Here are key moments showing how JavaScript evolved from a little scripting language to one of the world's most popular π
deno.com/blog/history...