37,790 karma · joined Sep 7, 2019 (7y ago) · 9,208 submissions
comment 6y ago · link · parent
Started playing around with Arcadia which is Clojure-CLR + Unity3D tooling/library. Basically used for make some interactions with the Unity3D framework easier.
While most of the code is using interop, having the repl flow is something that for me, after using Clojure professionally for a while, is really really hard to give up. I've tried getting into game development before, but the slow iteration cycles on "make change -> save -> do thing to test" just sucks all the fun out of it.
If I were to use Three.js in a project, I'd approach it the same way. As I try to stay far away from any other languages, I'd write a small layer between my CLJS code and the Three.js API, the smaller the better, and then use that.
Because giving up on being able to eval whatever and having access to a repl is not worth it in the projects I work with.
Basically, any hurdle (like basing my project around a non-CLJS library) is easier to overcome than having to deal with something like TypeScript again.
comment 6y ago · link · parent
In my experience, it's more about the particular individual of animal rather than broadly "all eels can see screens", at least that's what I experience with my dogs. One of them ignore screens and seemingly can't see / don't want to see what's on the screen, even if prompted to look at it. The other one watches TV with me, as soon as I'm watching something. And if there is something appearing on the screen resembling an animal, she tries to scare them away with barks. Humans on TV is fine, and she follows them, but birds, dogs or any other animal is an enemy according to her. Even animated animals are recognized as animals for her, unless they are too abstract.
Watching BoJack Horseman was an interesting experience, to see where she would react vs not. Seems most animals/humans in that show are fine, unless they are really behaving like animals, then it's not fine.
comment 6y ago · link · parent
I always find it more interesting what's _not_ in the single microservices, the stuff you do see. When you make a diagram with boxes and arrows, the interesting stuff would be the arrows, not the boxes themselves.
comment 6y ago · link · parent
Same as the restaurant bill is not equal+margin to what they spend on food, it's also everything else like rent, salaries + margin.
comment 6y ago · link · parent
Maybe a side-effect of the poor equality we have in JS-land.
comment 6y ago · link · parent
comment 6y ago · link · parent
So with that in mind, you can use React as both. If you ever call `ReactDOM.render()` just once and then live in React land, with all the lifecycle hooks and whatnot, you're essentially treating React as a framework, as React calls everything after the first initialize.
If you call `ReactDOM.render` in multiple places or have something around that handles that for you, then you're using React as a library.
comment 6y ago · link · parent
While not required, most people use JSX + bundler, at least for anything that resembles a serious application.
8442.
Fizz Buzz: An Interview Question(learningclojure.com ↗)
2 points · by capableweb · 6y ago · discuss
comment 6y ago · link · parent
Tweet reportedly said:
> There is currently no evidence that people who have recovered from #COVID19 and have antibodies are protected from a second infection.
How can they then write that the tweet is misleading? Bloomberg News et al that reported "WHO Warns You May Catch Coronavirus More Than Once" and similar should be the ones shamed for misinformation here, not WHO.
comment 6y ago · link · parent
So if you do `date`, it'll end up in the history file but if you do ` date` (one space prefixed), it won't. One `clear` later and it's like the command was never run.
comment 6y ago · link · parent
function n() {
export NVM_DIR="$HOME/.nvm"
[ -s "$NVM_DIR/nvm.sh" ] && \. "$NVM_DIR/nvm.sh"
[ -s "$NVM_DIR/bash_completion" ] && \. "$NVM_DIR/bash_completion"
}
Found it to be a ok workaround for the issue. Otherwise I'm just on nvm just because it continues to work and hasn't gotten in my way, since like 2013 or something. If someone is in the same boat but wanna fix the "slow new shell" thing, this is a quick fix for it.Would love to hear what the "shell config shenanigans" wayneftw talked about, haven't hit that myself.
comment 6y ago · link · parent
That's not only true for Shadow CLJS but ClojureScript in general have allowed you to use npm packages for many years as well, although it was a bit clunky. Shadow CLJS did improve the developer experience though.
comment 6y ago · link · parent
Sure, but some people just want to have their problem fixed and they only have a sledgehammer in front of them. If it works, is it really that bad?
> a browser wrapped in a cryptocurrency promotional wallet thing
I think you have it the wrong way around. It's a browser containing an integration with a cryptocurrency wallet, not the other way around. You'd still be able to use it as a normal browser if you ignore the cryptocurrency stuff.
comment 6y ago · link · parent
Most likely because people found it interesting. Not everyone finds the same things interesting.
> which is biased understatement
Funny thing regarding biases in political leaning is that it's all based around context. The US, being very right-leaning, would describe one person as left-leaning while in many European countries that same person would be center or even slightly right. So it all depends. It's useful to outline where you're coming from before laying out your perspective, as it's also biased (just like mine).
comment 6y ago · link · parent
comment 6y ago · link · parent
1) Synaptic package manager which is a GUI for searching and installing .debs. My first exposure to a package manager when I first installed Ubuntu some 12 years ago.
2) Simply double-clicking on the file, opening the Gdebi (I think?) UI for installing that specific .deb file.
comment 6y ago · link · parent
If it quacks like a duck, looks like a duck, it's a duck. If it doesn't quack and doesn't look like a duck, it's not a duck. So in your example, if npm just provides text editing, I'd call it a text editor, not package manager. If it manages packages, I'd call it a package manager. So this is judging things based on their functionality, rather than what they want to use it for.
Don't think the intended purpose matters too much in what something is. It is what it is, it is not what it was aimed to be but what the current state of it is.
And AFAIK, people _mostly_ use npm for managing packages, other use cases are not nearly as popular (like distributing assets).
comment 6y ago · link · parent
It's probably a result of going with pull-streams and basically architecture all scuttlebot tools/libs around pull-streams, so you want something that works over streams.
And yeah, Scuttlebot is not built with SQL as it's query language, but you could probably easily write something that understands both SQL queries and the file format scuttlebot stores the messages in. Thing is, you don't want to send these queries to other peers (they are all local), because the system is setup to be offline-first and only reach out to the network when it has to, not just for listing latest messages.
In general, you want all the action of fetching/syncing of data to happen exactly when you want it to happen, and then when you're done it doesn't continue until next "sync". So everything you do is local.
But then, if "query the feeds the way I want to" is the reason you don't like it, then so be it. But if it's just that you don't understand it, then reading through and digging into the different repositories will give you a better viewpoint. Start at the ssb-query and look what's using it and what it's using.
comment 6y ago · link · parent
npm is a package manager, it manages packages for you. Hard to escape that fact. It's a bit rubbish, but it doesn't make it _not_ a package manager.
Same with the USA, might be a shitty country, doesn't mean it's barely a country