[css-only] I made a thing
Feel free to tweak the two custom properties in the css pane to explore the different mosaic patterns that are generated.
Feel free to tweak the two custom properties in the css pane to explore the different mosaic patterns that are generated.
Single HTML element + CSS only
And repeat
Inspired by: https://quietkit.com/box-breathing/
Note: The current Safari version has a bugged linear() implementation that has been fixed in the upcoming version.
Shows a great example of JS' new using keyword (similar to defer in D, Go, Swift, etc...)
https://devblogs.microsoft.com/typescript/announcing-typescript-5-2-beta/Open linkView original on programming.devComments should provide context, not repeat what the code already says. The Redis codebase has 9 distinct types of comments (Function, Design, Why, Teacher, Checklist, Guide, Trivial, Debt, Backup), each with a specific goal in mind.
Answer: create a new object with the properties of the two original objects using the spread operator.
The order you insert the objects into the new merged object determines which object's properties take priority over the other.
Linked example:
const obj1 = { foo: "bar", x: 42 };
const obj2 = { foo: "baz", y: 13 };
const clonedObj = { ...obj1 };
// { foo: "bar", x: 42 }
const mergedObj = { ...obj1, ...obj2 };
// { foo: "baz", x: 42, y: 13 }
You can find more discussion here: https://stackoverflow.com/questions/171251/how-can-i-merge-properties-of-two-javascript-objects-dynamically
https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Operators/Spread_syntax#spread_in_object_literalsOpen linkView original on programming.devThe mistake most devs make when trying to document their project is that they only make one (maybe two) types of documentation based on a readme template and/or what their mental model of a newcomer needs.
Devs need to be actively taught that:
If you don't have all four types of documentation, you have bad documentation.