Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
aszen
searching PlanetScale…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
19 ms
·
181.
▲
by
aszen
6y ago
My experience with f sharp and recently with the new Haskell langauge server has been that not having written type annotations is a no issue because the language tooling still shows them above the function definition and better yet can auto
182.
▲
by
aszen
6y ago
Well think about writing functions inside a repl or interactive environments like jupyter notebooks or just plain scripting. Enforcing type annotations add little value in those cases and end up making the language ill suited for such use c
183.
▲
by
aszen
6y ago
I actually like the option to have both inferred parameter and return types, primarily because they help in writing code while prototyping quickly with several types. Once the code is well defined I then start adding the type annotations ,
184.
▲
by
aszen
6y ago
Will hasura also help with the indexes, the most efficient SQL is usually the one which utilizes the indexes properly which still need to be setup to accomodate for each and every client side queries. Besides hasura would have been great as
185.
▲
by
aszen
6y ago
I think this is considered normal for real world Haskell usage. Most libraries and even frameworks like ihp that try to be favor ease of use rely on these language extensions. You can ofcourse place these directives once in the cabal file,
186.
▲
by
aszen
6y ago
In my brief experience of going through the Haskell examples, I am awestruck by the power that Haskell enables yet scared by the huge type level complexity underlying the libraries that enable it. Just to query a database the example used h
187.
▲
by
aszen
6y ago
The problem with removing ball of mud code is that you don't know much of that mud is entangled with useful code. I do think oop design patterns bring a lot of indirection sometimes but atleast we can use small well thought out functi
188.
▲
by
aszen
6y ago
How closely is org syntax tied to emacs, I would love to try it but I can't just switch my text editor just to learn a markup language.
189.
▲
by
aszen
6y ago
One of the underappreciated pros of php for web development is its execution model, it's fault tolerant by default and shares little memory across requests. This kind of makes sloppy programming far more tolerable in php than in other
190.
▲
by
aszen
6y ago
I was confused by rusts module system too, after having used es6 modules in js and python but then I realised the module systems couldn't be compared. In dynamic langauges like python or js u can individually use modules but in rust ev
191.
▲
by
aszen
6y ago
I agree we could have done it a lot differently and safely, I especially like the last point you mentioned that is what would have been the correct way to do it. But this happened as described, a local only script that generated a list of c
192.
▲
by
aszen
6y ago
I did see some values and found them reasonable, problem of the whole thing was there were atleast 200 or so tables with dozens of columns each and only two or so tables were excluded from being dumped locally. So yes I could have noticed t
193.
▲
by
aszen
6y ago
I had a narrow escape once doing something fancy with migrations. We had several MySQL string columns as long text type in our database but they should have been varchar(255) or so. So I was assigned to convert these columns to their approp
194.
▲
by
aszen
6y ago
It's always enlightening to see how others users experience are different about the same products. I think the variability in hardware and configurations is the primary cause of some of these issues. It's a hard problem to tackle
195.
▲
by
aszen
6y ago
I think Windows is moving more and more into a platform where Microsoft will sell you their services. Windows has no other value for Microsoft now after giving away free upgrades so ultimately these stability issues are not going to be a pr
196.
▲
by
aszen
6y ago
This is one area that Ubuntu can improve on, I think it's being worked on with the zfs based snapshots installation options. Hopefully the next Lts release will allows easy rollback for failed upgrades. If you are particularly concern
197.
▲
by
aszen
6y ago
Windows is ultimately not good for development, yes there is wsl2 but that can't manage your actual operating system. You end up having to do things twice on such setups. So while being more flexible they ultimately mean more maintenan
198.
▲
by
aszen
6y ago
My personal experience has been Ubuntu is not only faster but way less annoying especially with live patch updates. The problem with windows for personal use is that it gets in the way too often with pop ups, notifications and crap ads insi
199.
▲
by
aszen
6y ago
Doesn't seem like a good move, when we moved back to Bitbucket cloud from Bitbucket server we lost many essential features and ultimately decided to move to GitHub. We do still use Jira Cloud but while the UI and search is better the p
200.
▲
by
aszen
6y ago
Been using nix package manager on Ubuntu, so far the experience has been mixed, while the package management and nixpkgs is great but the tooling and documentation around the nix language are lacking. It's one of those tools that are t
201.
▲
by
aszen
6y ago
I have been researching into several testing approaches and so far in my experience yes fakes are better than mocks. But what is even better is not having to fake or mock stuff especially for testing business logic. One of the problems we g
202.
▲
by
aszen
6y ago
I do see your point but let me say a bit about performance, performance matters a whole lot if your software is being used seriously all day long for getting things done in the real world. If your software is going to be someone's day
203.
▲
by
aszen
6y ago
Well that code has already provided its value over 4 long years without bothering anyone, it doesn't hurt if someone has to struggle a bit understanding how it works now.
204.
▲
by
aszen
6y ago
I think the whole point of the article was that code readability is not a scientific phenomenon you can measure by conducting studies. How readable the code is, depends on who's reading, what's their background and what style do t
205.
▲
by
aszen
6y ago
Have you ever encountered code that's easy to change but needs to be changed very often, is that strictly better than code that is hard to change but very unlikely to ever change? A more concrete example, fixing null pointer exceptions
206.
▲
by
aszen
6y ago
Code readability is just one of the goals we aim for while designing software, performance is another, stability is another, flexibility and ability to make changes is yet another. While reading any code I tend to think about these tradeoff
207.
▲
by
aszen
6y ago
See the Elm to JS compiler, it does deep unused code elimination at the function level so you only ship the code you actually use (or the functions u actually use, even inside libraries). The closure js compiler is also pretty good if you p
208.
▲
by
aszen
6y ago
I use the exact same setup. Although I switched to only this year after spending time revisiting my workflow. Its indeed quite a bit faster for doing serious work although when I'm just browsing casually I do use the mouse just to give
209.
▲
by
aszen
6y ago
Sure, let me start with a disclaimer, I have used TS briefly and found it great but I personally prefer Elm's type system. My understanding is TS was designed specifically to statically type existing JS patterns in popular libraries an
210.
▲
by
aszen
6y ago
I agree on type systems being helpful, my point was about immensely flexible type systems like TS which don't force any usual constraints of designing with sound types. I do appreciate a good sound type system that constraints the beha
More ›