Better HN
topnewbestaskshowjobs
Log inSign up

oweqruiowe

32 karma · joined Feb 11, 2019 (7y ago) · 27 submissions

Submissions

comment 5y ago · link · parent

> Making porn legal and accepted

Just to add another perspective, Scott Santens had an interesting reply[0] to a tweet AOC had about legalizing sex work

> Sex work is work, but as long as poverty exists it's impossible to tell who is doing it voluntarily and who is doing it because they feel they have no other choice in order to make a living. It's another reason unconditional basic income is so important.

[0]:https://twitter.com/scottsantens/status/1339053954144014338?...

comment 6y ago · link · parent

Just tried the guided youtube video since I'm not familiar with the technique, immediately triggered a panic attack, anyone ever pass out?

comment 6y ago · link · parent

Which mail in vitamin D test did you use? Was just looking for something like that.

comment 6y ago · link · parent

Not sure if others have opinions, but I remember when Andrew Yang was campaigning he talked about going after individual's wealth as the incorrect strategy since their wealth lies in their companies e.g. Amazon... and that a better strategy would be to implement a 20% VAT tax so we're gaining value from every transaction of their businesses that's hard to game and quite effective.

A VAT has the advantage of being simple to administer, and it's capturing the gains made via automation at every step of the chain.

Sounds good if true, and I believe most other countries have figured this out and implemented one. We don't talk about it here though.

comment 6y ago · link · parent

Oh nice, mine are getting delivered tomorrow!

comment 6y ago · link · parent

If anyone hasn't tried Clojurescript's browser REPL, it's super easy to use now when using Shadow-CLJS for your project.

When you boot shadow up it'll create an nrepl server for you, you can just connect to it and invoke `(shadow/nrepl-select :app)` and it'll latch on to the running application `localhost:3000`. And it works really well, very awesome.

comment 6y ago · link · parent

Yes luminus is great, and they have a book that walks you through the stack / decisions which is also great.

comment 6y ago · link · parent

I'm guilty of this :/

comment 6y ago · link · parent

yea I'm an idiot and need to get my hands dirty with response types so I'm often just building up lots of top level `(def body ..)` variables that will eventually be moved into a single function.

But just messing around in my editor connected to a repl lets me really breakdown a task while I'm figuring it out.

comment 6y ago · link · parent

Clojure user here, and I often don't know the details behind this, can you explain? When trying to explain the repl it's. easy for folks to say "okay, don't I have that too?" but yea, really the updating of values from your editor into this running application 'universe' seems like it should just work for every language, so what is special about lisp that enables it?

comment 6y ago · link · parent

This has been my camera since 2017 https://www.amazon.com/gp/product/B016LMB770/ref=ppx_yo_dt_b...

And I got this cool lens-cap for it https://www.amazon.com/gp/product/B00I1CP2MU/ref=ppx_yo_dt_b... that has an automatic opening when you turn the camera on, great for traveling.

Before that I had the E-P2 https://www.amazon.com/Olympus-Interchangeable-Digital-Elect...

I'm still using the telephoto lens that I got from the E-P2, it wasn't very expensive, I think it's this one https://www.amazon.com/Olympus-40-150mm-F4-0-5-6-Panasonic-C...

comment 6y ago · link · parent

Excuse my ignorance, correct, it is mirrorless :D

comment 6y ago · link · parent

Shocker! I have owned two of their micro 4/3 digital cameras and loved them. Great rangefinder style in the $600 range with quality lenses in the box. I remember the first time I took the camera out with the telephoto lens and being shocked by the quality of the photos. Learned then that quality of camera + lens really makes a difference in nice looking photos.

Edit - replaced 'DSLR' with digital

comment 6y ago · link · parent

To expand, I love this document even from the standpoint of how to structure client-side code http://day8.github.io/re-frame/application-state

It applies to React/Redux folks as well.

> There are benefits to having data in the one place:

> Here's the big one: because there is a single source of truth, we write no code to synchronise state between many different stateful components. I cannot stress enough how significant this is. You end up writing less code and an entire class of bugs is eliminated. (This mindset is very different to OO which involves distributing state across objects, and then ensuring that state is synchronised, all the while trying to hide it, which is, when you think about it, quite crazy ... and I did it for years).

> Because all app state is coalesced into one atom, it can be updated with a single reset!, which acts like a transactional commit. There is an instant in which the app goes from one state to the next, never a series of incremental steps which can leave the app in a temporarily inconsistent, intermediate state. Again, this simplicity causes a certain class of bugs or design problems to evaporate.

comment 6y ago · link · parent

How do they connect child components to parts of the application state in PureScript? I'm looking for a mechanism like react-redux's `connect` function. Something that eliminates the need to pass state through the root component down to everything else.

comment 6y ago · link · parent

I use Clojurescript professionally and it has the best state management story with re-frame over JS and any transpile-to-js language. It's so lovely.

comment 6y ago · link · parent

Nice to also read this sentiment, I just go all in on client-side code (react-redux, redux-forms, css-in-js, next.js) and once it's set up and working you can really iterate quickly and it all scales.

I find myself annoyed by how trendy it is to crap on all of the progress that has been made on the client-side stack... basically it seems like a lot of the lessons we have learned over the years are being forgotten. "Embrace the C in CSS!" Like, no! That C is what lead to the most painful CSS refactor and cost 6 months of my life. "Seperation of concerns!" It sounds good to say HTML and CSS should be separate, but we found how powerful it is to co-locate a component's styling with the component. People underestimate how much styling is just inline styles. "Wait, what do I name this class that is just applying margin-top?" If you have a global bin of css utilities and theme variables, everything else is just inline on the component.

comment 6y ago · link · parent

I think the best we have is still using GraphQL on the Server, with a client side library like Apollo or Artemis (Clojurescript)

comment 6y ago · link · parent

I had a doctor tell me he sees women in burkas with higher levels of vitamin D than me. IIRC it was like 5. Have taken 5000iu daily since :(

comment 6y ago · link · parent

Ok, so .NET just works on a Mac now, very cool. Feel like Microsoft is heading toward a glow-up moment in the near future. Keep up the good work.

comment 6y ago · link · parent

+1 Clojurescript/shadow-cljs user here as well.

comment 6y ago · link · parent

Holy, this is the first time I've heard of it, but it sounds really great.

> Instead of using cascading parameters and other ridiculously complex ways of passing state around

So much this! There are too many folks stuck in the 'container' component pattern when really you should never pass a prop that can be queried from state. Working like this results in a sustainable application that's flexible, like you _state_ xD

I'm going to give this a really close look, thank you.

comment 6y ago · link · parent

I agree, but do want to say that server-side rendering is a lot more complicated than just "be able to render my app on the server as well". We went down that road with a large app and the team was stoked and promising how awesome it would be, but it turns out it just slowed down the experience and users hated it.

I'm a lot more hesitant about SSR now. Users don't mind spinning wheels as long as they can see something happening.

comment 6y ago · link · parent

Not imaginative enough IMO, I'm assuming since it's a new language you can design it without the limitations we've had to design around in JS.

The magic sauce for me is a global state data structure where all my app state goes into. And it should just be data. I don't need to wrap it in 'semantic' constructs.

And then I need an easy way to query that, something more expressive than `get-ins` like `state.path1.path2.value`.

However the state is accessed the component should just update. I don't want to provide or connect.

comment 7y ago · link · parent

I'd think a Universal Basic Income could help value work like this, work that the market traditionally does not reward, much like caregivers. Doesn't solve the problem of course, but could go a long way.

comment 7y ago · link · parent

It recently dawned on me, in light of the Elastic / AWS battle, that Elastic's business model is kind of like GGG's 'free to play' game Path of Exile. Where the base game is free, but as you get more serious you end up spending money on quality of life things, stash tab upgrades and what not. That business model has proven to be very successful (in gaming), versus the buy once model with games like Diablo. Hopefully, by sharing that here doesn't result in a 'gray-at-the-bottom-comment'.

comment 7y ago · link · parent

Yea I played pop warner for 3 seasons from 10-12, started getting anxiety at 19, dealt with depression ever since. Thinking about CTE gives me much anxiety haha, it was hard to even read the comment section here. Very scary.