Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
shirogane86x
searching PlanetScale…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
9 ms
·
31.
▲
by
shirogane86x
4y ago
On a similar note, there's also sqlx for rust [1] - and I find it extra impressive that they manage to support not only postgres, but sqlite and and mysql too. [1] https://github.com/launchbadge/sqlx
32.
▲
by
shirogane86x
4y ago
if you only limit yourself to the standard library, you would need to unwrap and rewrap the error - although admittedly since Result<T, E> is a type like any other, you could add an extension function (through a trait) so that you can
33.
▲
by
shirogane86x
4y ago
As far as I know, the only available approaches are brands and just wrapping it in a one element object (but that's even worse). But the branding is a lot easier if you just use something like zod [1] for all your types. [1] https:&#x
34.
▲
by
shirogane86x
4y ago
Admittedly you can still transfer pokemon around, just not as freely (and not yet, for scarlet&violet). Pokemon home lets you send pokemon from far back, and I know people who keep pokemon on there that they transferred forwards from th
35.
▲
by
shirogane86x
4y ago
F# is still a lot more functional, has cleaner stuff for functional style coding (like the pipe and reverse pipe operator, function composition and custom operators). Computation expressions are still better than LINQ's comprehension s
36.
▲
by
shirogane86x
4y ago
as someone who did (and still does) a lot of Haskell, and actually loves it, seeing http4s reminded me less of Yesod and more of Servant: really high flexibility, advanced type level magic, and a fairly steep learning curve - especially so
37.
▲
by
shirogane86x
4y ago
Thank you very much for the explanation! I agree with you that this information should be somewhere, especially seeing as I (mistakenly) thought that too, I probably would've had less of a knee-jerk reaction to it if I knew that it
38.
▲
by
shirogane86x
4y ago
I'm still very skeptical of the random templating syntax, of the weird reactivity with gotchas and most of all, of two way databinding. Wasn't two way databinding one of the reasons we got react (and one of the reasons i bought in
39.
▲
by
shirogane86x
4y ago
I started out at the very beginning doing full stack JS, but at some point I started using Haskell for my personal projects, and my first job was in F#, so I think the combination of those two may just have impacted the way I think about pr
40.
▲
by
shirogane86x
4y ago
I have the same thing, but in the opposite direction: I can read recursion, map/filter/reduce/any kind of higher order function (even the wonky haskell ones, like traverse) just fine. But the moment I start seeing mutation, o
41.
▲
by
shirogane86x
4y ago
I am gonna be completely honest, I have never quite been able to understand expression templates properly. is it possible to use them to get hassle-free laziness? is there any example of a library that does this (just to look at it and see
42.
▲
by
shirogane86x
4y ago
Sadly even though what you say is true, I do not know of any languages that get that right. Even those that do care enough to give you a way to make lazy values, they require you to explicitly wrap them and force them all over the place, ma
43.
▲
by
shirogane86x
4y ago
I'm assuming for windows it only works in WSL2? cause last time I checked nix wasn't compatible with native windows development, sadly
44.
▲
by
shirogane86x
4y ago
Keyboard is standard Italian layout but i actually use eurkey because it has a US layout (which i find more comfortable for symbols) + all the accented variants for European languages (using altgr and letters). Pretty optimal for me.
45.
▲
by
shirogane86x
4y ago
Haskell (at least as implemented in GHC) has TemplateHaskell, which is somewhat of an inbetween: at a distance it kinda resembles lisp macros if you squint a bit (it's of the "eval and quote" kind, so to say) but it's ex
46.
▲
by
shirogane86x
4y ago
Apart from all the things at the top that have no sources and that honestly sound like propaganda: > Back before all of this, LGBQT people were happy to just be seen as normal and like everyone else Since when, sorry? When were we *ever*
47.
▲
by
shirogane86x
4y ago
This whole comment section is pretty frustrating. I don't even live in America and I'm scared. An enormous wave of hate is starting to show recently - even in the comparatively few places where queer people are relatively ok. I
48.
▲
by
shirogane86x
4y ago
I think Sigma (FB's spam filtering system) is still written in Haskell, but I may be wrong (basing this around internet rumours since I don't work at Meta).
49.
▲
by
shirogane86x
4y ago
That is 100% fair. I mostly develop on .NET+TS at $dayjob so I never really have experienced particular problems with nuget, and I've had the luck of never having an npm package go down on me either - so I just never really experienced
50.
▲
by
shirogane86x
4y ago
I don't really buy into go (it's not my type of language), but I wanted to ask a genuine question: are there many semi-mainstream languages that don't have modules that _just work_, or an official plugin for VSCode that just
51.
▲
by
shirogane86x
4y ago
This looks really nice! I will definitely try this out when I get the chance, although as it is I can't do much other than playing around with it - I'm stuck with windows :(
52.
▲
by
shirogane86x
4y ago
> Discord is absolutely terrible though compared to what I'm used to What are you used to? Genuine question. I've tried many options and to be honest, discord has been the nicest so far. Yeah, it's far from perfect - but I
53.
▲
by
shirogane86x
4y ago
That sounds super nice! Maybe this will turn out to be a nice way of compiling languages which make heavy use of tail calls to the browser (I'm thinking Haskell, Purescript, Erlang, Ocaml). For purescript specifically this means no Mo
54.
▲
by
shirogane86x
4y ago
Yeah I was about to write this. Thinking that monads are only about sequencing works only for IO, effectively. Option and Either are about short circuiting, and there's others that mess in execution state in hilarious ways (like the TA
55.
▲
by
shirogane86x
4y ago
I've actually been using notion more and more. I tried obsidian at first but really didn't feel like syncing the stuff by myself, and as I only exclusively take notes on my PC and never pen and paper (because of dysgraphia) I foun
56.
▲
by
shirogane86x
4y ago
This looks great! I've actually been experimenting with making a functional language too, in rust - so I'm probably gonna read through the code soon! Also, those error messages look really good - I'm totally gonna try ariadne
57.
▲
by
shirogane86x
4y ago
I actually made pretty extensive use of the redux time travelling debugger at my last job, I found it to be very convenient, especially as the application got bigger and more convoluted - not really because of development issues, but just g
58.
▲
by
shirogane86x
4y ago
As someone who didn't get react at all before hooks, and still doesn't 100% get react with class components (but is quite proficient with hooks) what's the issue with hooks specifically? genuinely curious. I find react with c
59.
▲
by
shirogane86x
4y ago
scala has HKTs and should be able to implement lenses just fine, I think. TS and OCaml can emulate HKTs in a really awkward way, but they can also just implement a less general more restricted subset.
60.
▲
by
shirogane86x
4y ago
I personally haven't had much chance to use docker with Haskell specifically, but I imagine that it would definitely work, it would just take a bit more work to get going, so I just take the option that is less friction (at least for m
More ›