Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
dharmaturtle
searching PlanetScale…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
13 ms
·
91.
▲
by
dharmaturtle
5y ago
> So I can program in F# and run it in Python? Yes. > What are the limitations? It's in alpha. > Also, is the resulting code readable? I think so, at least in this screenshot: https://user-images.githubusercontent.c
92.
▲
by
dharmaturtle
5y ago
Kinda the other way around honestly. FP predates OO by decades. If you think of "traditional OOP" as C-style syntax, then you could conceivably think of C-style syntax as an attempt to make FP more readable. Personally, I prefer F
93.
▲
by
dharmaturtle
5y ago
Also a programmer here. 4k 39" TV with zero scaling is my main setup. It's lovely - I highly recommend it. With a tiling window manager, I can see lots of code, run my tests, keep an eye on the command line, have API docs open, al
94.
▲
by
dharmaturtle
5y ago
I can't touch type symbols. (!@#$%^&*) I can feel my brain stutter every time I need to type an esoteric operator. ...okay I know what I'm doing this weekend.
95.
▲
by
dharmaturtle
5y ago
Linking your demo of VS Code Notebooks cause it was great: https://youtu.be/_QnbV6CAWXc?t=1298
96.
▲
by
dharmaturtle
5y ago
Fair. I was mildly triggered when scanning this thread, so thought I'd make the metric clear to anyone else. Back on topic, if you sort by Leasure/Travel or Economy/Labor, it is pretty clear that red states have the lead.
97.
▲
by
dharmaturtle
5y ago
To be clear: this site defines "recovery" by combining COVID and economic factors - equally weighted. If we look solely at COVID transmission rate, that's a somewhat different picture: https://covid.cdc.gov/
98.
▲
by
dharmaturtle
5y ago
If you use chrome, this exists: https://chrome.google.com/webstore/detail/amazon-smile-redir...
99.
▲
by
dharmaturtle
5y ago
> one of the missing pieces is situations where some parts of the object graph should not be visible or editable by certain users. That sort of thing comes up the whole time and can be pretty complex yet is often just handwaved away. I d
100.
▲
by
dharmaturtle
5y ago
Seems like you're describing event sourcing. I'm building an offline-first app and doing pretty much what you're describing. > I always end up duplicating almost all of the backend logic into the clients as well Yep, this
101.
▲
by
dharmaturtle
5y ago
What RSS service you're using? I'm in the market.
102.
▲
by
dharmaturtle
5y ago
re: navigation: VS Code can render PNGs, so you can hit the period key on GitHub and just navigate the repo's PNG folders.
103.
▲
by
dharmaturtle
5y ago
I recently read The Case Against Education. It's very interesting, even if you don't buy the conclusion. From the book: > The Good Student, by definition, fits the profile of a typical B.A. who did not continue on to graduate o
104.
▲
by
dharmaturtle
5y ago
> So you pull that tube over yourself and then cover the top with the sleeping bag? Yep. Ghetto AF. That's why the chair is there to elevate the sleeping bag - otherwise I wouldn't be able to reach the sleeping bag from inside
105.
▲
by
dharmaturtle
5y ago
I built a super cheap "traditional" dry sauna. It's basically an electric burner, a pot to increase surface area and humidity, a 25 foot roll of thermal foil, and a sleeping bag as the ceiling. I disassembled the burner, remo
106.
▲
by
dharmaturtle
5y ago
I've been using VS Code Notebooks with F# - it's fantastic. Basically Jupyter Notebooks for VS Code. Demo: https://youtu.be/_QnbV6CAWXc?t=1298
107.
▲
by
dharmaturtle
5y ago
Scala experimented with type providers, but it looks abandoned: https://docs.scala-lang.org/overviews/macros/typeproviders.h... Idris has them (but it's Idris) https://docs.idris-lang.org/en&#
108.
▲
by
dharmaturtle
5y ago
To add to the other comment, how about Fabulous? https://github.com/fsprojects/Fabulous
109.
▲
by
dharmaturtle
5y ago
Depends on what OP is familiar with. If they know/like functional programming, I'd recommend F# highly. If not... Yeah go with C#. Then later learn F# because it's absolutely kick ass :)
110.
▲
by
dharmaturtle
5y ago
> The fundamental problem, IMHO, with error-handling is the call/return nature of most of our programming languages I actually consider this a benefit, not a problem. The alternative, as I see it, is to side effect ... which 99% of
111.
▲
by
dharmaturtle
5y ago
I'm a big fan of "Railway Oriented Programming" [1]. Basically your code has two paths - the "Ok" route and the "Error" route. Your code won't compile unless you handle the Error case. However, it r
112.
▲
by
dharmaturtle
5y ago
Interesting... just to be clear, an _individual stream of user events_ is an aggregate. E.g. a user Bob Smith's events are independent of another user like Jane Doe. It isn't the case that the entire "User Table" is a si
113.
▲
by
dharmaturtle
5y ago
I guess gaslighting is what they do now. > We, who consider ourselves absolutely leading on privacy, see what we are doing here as an advancement of the state of the art in privacy, as enabling a more private world. https://ar
114.
▲
by
dharmaturtle
5y ago
> it means that there is only one instance that processes commands Not necessarily. Depends on how you shard the aggregate/streams. Since aggregates _by definition_ maintain their invariants, you can have literally a shard for every
115.
▲
by
dharmaturtle
5y ago
If a command is successfully converted/persisted into an event, that event should contain the command's ID. When the command is replayed, the domain aggregate/event stream will contain that command ID, and will therefore reje
116.
▲
by
dharmaturtle
5y ago
They have a channel in this slack that's pretty good for getting answers to questions: https://github.com/ddd-cqrs-es/slack-community
117.
▲
by
dharmaturtle
5y ago
What's wrong with EventStore? https://www.eventstore.com/
118.
▲
by
dharmaturtle
5y ago
Event sourcing is really good for building occasionally connected applications (e.g. phone app). Makes conflict resolution so much easier than, say two relational databases. Basically it follows the git model - distributed systems are each
119.
▲
by
dharmaturtle
5y ago
I would argue that there is no such thing as " the business model". There may be a projected rolled up summary state... but that's only one possible view out of infinitely many. For example, one possible "business model
120.
▲
by
dharmaturtle
5y ago
> Once in orbit, a selfie-stick attached to the side of the CubeSat will film the display screen. This footage will be livestreamed on YouTube or Twitch so anyone can tune in to watch the satellite's screen, Reid said. https:/
More ›