Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
javcasas
searching PlanetScale…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
28 ms
·
391.
▲
by
javcasas
4y ago
JSON schema doesn't deal with how your language treats the underlying data - and shouldn't do it. Use custom deserializers for that.
392.
▲
by
javcasas
4y ago
CRUD on database rows via HTTP verbs is solved. See Postgrest/postgraphile. Most backend programmers are obsessed with constructing lousy versions of those two programs. With this said, I know I just made a few extra enemies.
393.
▲
by
javcasas
4y ago
Every time that I tried to implement something like this (logic/validation in DB via constraints/fks, postgraphile/postgrest in the backend, react admin/react-json-schema-forms in the frontend) all I got was new enemies.
394.
▲
by
javcasas
4y ago
Text files are a meh proxy for ASTs, which is what we actually write when writing programs. I want a programming language in which I can edit ASTs.
395.
▲
by
javcasas
4y ago
Avoiding side effects is great, it allows you to construct big programs by reasoning about the parts that make them. FP also taught me a lot about types, which allow me to define even better the parts that construct big programs.
396.
▲
by
javcasas
4y ago
Maybe with some examples: https://wiki.haskell.org/Zipper https://en.m.wikipedia.org/wiki/Zipper_(data_structure) To give you an example: the zipper of a list is two lists - one for the elements after
397.
▲
by
javcasas
4y ago
Furthermore, this enables creating sub-contexts (like run this operation but with this different configuration) which is something almost impossible to do with DI frameworks.
398.
▲
by
javcasas
4y ago
Query builder or SQL.
399.
▲
by
javcasas
4y ago
Learning the ORM is easy. On the other hand, learning the ORM bugs...
400.
▲
by
javcasas
4y ago
Congratulations on your code! You created apiCall, effectively your own library for doing requests. The very same thing that you ought to banish. Once you have setup that library (or hook) yes, using it it's indeed 4 lines of code. Tha
401.
▲
by
javcasas
4y ago
I just spent most of the afternoon trying to make a government java program work. It won't apply electronic signatures. I know because it throws 47-line exception tracebacks and does nothing on the UI. Its documentation is for windows
402.
▲
by
javcasas
4y ago
> This only really happens when you have race conditions Or when the network is unpredictable, you retry because it's taking too long, then the second request succeeds, then somehow the first request succeeds. > This only happens
403.
▲
by
javcasas
4y ago
> When did something that was originally worth 5 LOCs turn into 20 LOCs When you want it to work properly in all the cases. That includes when new data is being fetched and you don't want to show the old data. Or when you want to no
404.
▲
by
javcasas
4y ago
Well, Microsoft has always been about "our stuff is first class citizen, everything else is second class citizen". You could see that in the 2000s when Microsoft claimed Windows 2003 to be multiplatform because it could run binari
405.
▲
by
javcasas
4y ago
Sure, after you name an example of a programming language where neither you nor someone else has to compile the dependencies for a given program.
406.
▲
by
javcasas
4y ago
Let it crash does't solve these problems. Let it crash solves random disconnections, machines dying and being replaced by others, unexpected network partitions and processes being killed because OOM. I would be surprised if you write u
407.
▲
by
javcasas
4y ago
Nothing short of linear types prevent you from saving the open file descriptor to a variable, closing the file, then using the open file descriptor variable again.
408.
▲
by
javcasas
4y ago
10 billion years is more than the age of the Earth. It's beyond arrogant to plan that anything that we do now will be relevant by then. After all, for more than half the last 10 billion years the Earth didn't exist yet.
409.
▲
by
javcasas
4y ago
Yeah, a distributed system with proofs of it working under some specific assumptions. This is the future. It's a future hard and complicated because the tools and the expertise are not here yet, but definitely the future.
410.
▲
by
javcasas
4y ago
Martin Kleppmann verifying distributed systems? That's as good as it can get.
411.
▲
by
javcasas
4y ago
Can I have the opposite? I want to be able to run webassembly-based extensions in postgresql. I don't like writing C, and most postgresql languages offer too much (no sandboxing, need slow interpreters and shit). But a WASM based sandb
412.
▲
by
javcasas
4y ago
> Bad code is written every day in every language. The root causes for bad code do not include the chosen programming language. If language was a root cause, every codebase using language <x> would have problem. Clearly that isn&#x
413.
▲
by
javcasas
4y ago
> If written correctly Therefore, there are ways to write bad code. Do you think it's reasonable there may be better tools that prevent writing some cases of bad code? I mean, I think we all can agree that, in general, a codebase wi
414.
▲
by
javcasas
4y ago
That's fair. Why write html in javascript, when you can write shitty javascript in the templates (via ng-if and ng-for)?
415.
▲
by
javcasas
4y ago
This is a very good book that will teach you the basics of manipulating code in a correct way (correct as in mathematically correct, not in some nebulously ill-defined level of correctness). if-nest-a FTW!
416.
▲
by
javcasas
4y ago
I'm from the south too. Our engineers are all over the north, proving to everyone that we have the brainpower to build some of the best systems in the world. There are pending issues related to management, but also north-enforced marke
417.
▲
by
javcasas
4y ago
Can you pattern match deeply? Can you make a case for ADD where the first param is a MULT with the second param of the MULT being INT(5)?
418.
▲
by
javcasas
4y ago
When I see people complaining about "experimental", "new bleedy unstable" I always picture some weak developer complaining about the language not being Java 1.4 and having to learn other stuff that is different from ente
419.
▲
by
javcasas
4y ago
You can tell that to all the countries in Africa that are interdependently connected to Ukraine's grain.
420.
▲
by
javcasas
4y ago
You can separate concerns without microservices too! People in the past were able to do it, they even invented programming language keywords for it, like https://www.tutlane.com/tutorial/csharp/csharp-access-modif
More ›