@Lady noted, thank you
I hand-coded a deep copy algorithm in JavaScript! It doesn't ever blow up the call stack and it copies property descriptors!
Everyone look at https://github.com/calebmsword/parsec/blob/main/example/example-utils/clone-deep.js
and tell me how cool I am!!!!!!!!!
@alyssa I must know, what is the worst fruit and worst vegetable
re: programming question
@alyssa Oh sorry I forgot about this. I haven't used it myself, but there is a Python library called Eel that opens a browser in application mode. It lets you write HTML/CSS/JavaScript for simple desktop UIs and also magically allows JavaScript to interface with Python code.
It's mainly used by Python developers with web dev experience who want to make simple UIs for the dev team. But you can also use it as a lightweight alternative to electron.
re: programming question
@alyssa how simple is the gui in question?
javascript crimes
The following causes a runtime error:
function factory(callback) {
callback();
return () => console.log(
"crime performed");
}
const func = factory(() => {
func();
});
// TypeError: func is not a function
But the following works:
function factory(callback) {
callback();
return () => console.log(
"crime performed");
}
const func = factory(() => {
setTimeout(() => func(), 0);
});
// "crime performed"
the clodvestigator
videogame enjoyer. mathematics hobbyist and recovering physicist. software engineer. professional wonk. certified weird movie liker. top-ranked c++ hater. prophet of The Truth. space dandy and kill la kill propagandist. the walking embodiment of "not diagnosed, but somethings wrong". i like animals that wear cowboy hats.
I am not picky about names. Most people here call me catwin, clodboy, clodsire, or Caleb.
header is by @vaporeon_
"i regret ever allowing him here" ~aescling
he/him