Better HN
topnewbestaskshowjobs
Log inSign up

reader_mode

2,387 karma · joined Sep 6, 2020 (6y ago) · 638 submissions

Submissions

comment 5y ago · link · parent

I think F# in the context of C# replacement (as a superior language) is not worth it.

If you have a team looking for a functional language on .NET it's amazing - so I don't dismiss it - it's just a very niche thing on .NET platform.

comment 5y ago · link · parent

I haven't been in .NET for a couple of years but I've worked on quite a few .NET projects over the years. I've seen F# being added to 3 (as far as I can remember), in completely different companies/teams/contexts - and it always ended up being the same - some enthusiastic guy (or a few of them) tries to sneak in F# as a part of the system. They don't really gain traction with the rest of the team because people have shit to do and no time to study a new language at work, so it becomes "their own thing". Regularly the tooling breaks (eg. visual studio intellisense stops working on C# projects if you don't disable F# projects, builds randomly start to fail, etc.) The person who introduced it becomes the go to guy for these problems, coupled with no traction for his pet project and being a motivated developer - they leave and now the project has this magic F# part that nobody really knows how it works but everyone knows how to work around.

IMO C# is picking up a lot of small things that make it incrementally better than it was before, and at some point it's not worth the hassle to go to F#. F# features are gradually added to C# so C# developers have time to pick them up as well.

I've heard of F# only projects doing great, but I think you need to have a team committed to doing F#. Back when I was into Clojure they had this mantra of "add Clojure to your work projects as a library and pretend it's just this small thing you used to solve some problem because it's all on JVM and Java compatible and then keep expanding on it" - I think this turns out terrible in practice.

comment 5y ago · link · parent

Let's say Germany has a decent hydrogen infrastructure. You go on vacation in say Croatia or Spain, you suddenly can't use your car. Every country has electric sockets everywhere so you can charge over night and building fast chargers is trivial compared to storing hydrogen.

Hydrogen sounds useful for commercial vehicles where you can plan routes and stay close to pumps (eg. delivery, bus, etc.) Sounds horrible for personal vehicles.

I can see Japan investing in it - you are unlikely to travel out of country with your car.

comment 5y ago · link · parent

>It's odd that it would be 1 out of 6 or 7, because when high elo streamers like Hikaru or Chessbrah are doing speed runs, they very often go on a 100 win streak, which sounds exceedingly unlikely if the odds of facing an engine user would be 1 out of 6/7.

I would guess that even with the engine you would take some games to rank up to that high so if chess.com is good at banning cheaters most of them would probably get caught sooner.

comment 5y ago · link · parent

How do you process cards with hand cranks ?

Also these days I think you're legally required to use some sort of government fiscalisation service where each receipt is uploaded as issued or something like that.

comment 5y ago · link · parent

If I am up to date TypeScript doesn't actually provide LSP and the 3rd party implementation is a wrapper around TS language server custom protocol and is worse in comparison. (They have/had plans to change this but it's been years since I saw the issue raised and not much progress from what I saw, haven't checked in last couple of months since I'm no longer in TS space)

IMO TypeScript is VSCode strongest use case - I would use VS code over VisualStudio for example on C# projects when I had to edit fronted parts - it was so much better. IntelliJ TS stuff is the only thing that comes close/is on par maybe and I'm a happy camper in that ecosystem for the last few years.

None of the LSP plugins I've tried with neovim worked nearly as well as they do in VSCode (the few times I tried to spin it up for old times sake).

comment 5y ago · link · parent

I would say ORM is tough with code gen or with metaprogramming because it maps two mismatched paradigms (OOP and relational) and tries to paper over the differences.

I do agree on the debugging aspect - especially in dynamic languages - metaprogramming stack traces can be really hard to follow.

comment 5y ago · link · parent

Even there I feel like code generators are just a band aid around the fact that metaprogramming facilities suck. If you would never modify the generated code why generate in the first place. You could argue that stack traces are easier to follow but TBH generated code is rarely pretty in that regard as well.

For example I think F# idea of type providers > code generators.

comment 5y ago · link · parent

>2/ The boilerplate is what bothers me the most (as someone who believes in the declarative approach to software engineering). The future for programming and programming languages should be an attempt to step up to a higher level of abstraction, that has been historically the way we step up to higher levels of productivity. As applications get larger and code-bases grow significantly we need abstraction, not more boilerplate.

Just the other day someone on copilot threads was arguing that this kind of boilerplate optimizes for readability... It's like Java Stockholm syndrome and the old myth of easy to approach = easy to read (how long it took them to introduce var).

I've always viewed code generators as a symptom of language limitations (which is why they were so popular in Java land) that lead to unmaintainable code, this seems like a fancier version of that - with all the same drawbacks.

comment 5y ago · link · parent

>But implementing a particular kind of dictionary that takes advantage of assumptions that are true for your use case (but not true in general) and is custom tailored to your environment is extremely valuable

This requires way more knowledge than I got from my undergrad classes and in comparison learning that part is trivial forward to the hard part that you can pick up in "refresher" part of a book/article on the topic.

I doubt your average undergrad could do it so I disagree with the extremely easy part as well (heck I doubt they could write a bug free version in the first place, even less a better performing one) that a correctly selected std lib container. Well at least not without researching and testing a bunch at which point the background knowledge is trivial in comparison.

comment 5y ago · link · parent

So when should you use linked lists ?

My undergrad course didn't say shit about losing cache locality + indirection overhead, allocation cost per entry, etc. You will almost always be better off using whatever the default List implementation is in your standard library, and if performance really matters you will be better off using some optimized tree or whatever fits your use case and measure. Languages these days are not C, you are provided with really good defaults, reading the usage docs and ignoring the internals will yield better results than basic theory without testing your assumptions. You really need to know what you are doing to beat the standard library offerings - and knowing what is available > having a grasp of the underpinnings.

Knowing about algorithms can be useful, recognizing your data structure is a cyclical graph or a DAG, implications of it, knowing how topological sort works, etc. is useful - but even there - if you are good with search you can find the solution to your problem, you will just take more time.

comment 5y ago · link · parent

>But in terms of conveying context there's always a tradeoff of explicit vs implicit

Exactly - if a tool let's you write it explicitly too easily you're making that the default, and it ignores the readability/maintainability side of the tradeoff.

Maybe it gets good enough to recognise when things can be factored out for better readability as well. But in my experience code generators rarely result in maintainable code.

comment 5y ago · link · parent

>Boilerplate optimizes for the right things - code that's easier to read and analyze, but takes longer to write.

This is wrong and the same retarded logic Java used to defend not introducing var and similar features for ages. Boilerplate is usually noise around the actual logic - it's a result of limited abstractions. When you're repeating same code over and over you raise that segment to a separate concept, that's how abstraction and high level programming works - it increases readability and maintainability. Being easier to type has nothing to do with it.

comment 5y ago · link · parent

>Once the radioactive material is released from a safe container, the cleanup effort to discover and contain it is immense

Larger than dealing with an oil tanker spil or gas line explosion ?

The main problem with nuclear is potentially global consequences of an accident - small reactors don't have that and people are used to dealing with localised risks.

comment 5y ago · link · parent

That's not what I'm getting at. You can accumulate >1M net worth just by being an engineer/contractor - no need to get into upper management or socialise with rich people.

Working on acquiring experience early on in your career will accelerate the point where you're making decent money where you're able to save/invest a decent portion of your income.

Your path doesn't sound widely reproducible.

comment 5y ago · link · parent

>If you tell people that if they work 12+ hours a day in their 20s that they would be millionaires

In software development this is a realistic goal if you play your cards right. Plenty of other careers too.

I think there's also statistical data to support this as well (hours worked early on increasing your income and net worth down the line).

Working hard early on in your career does pay off.

comment 5y ago · link · parent

There are agencies who do nothing else but deal with bureaucracy of applying for these funds and they are a justifiable expense when looking for funds... Next level job creation right there

comment 5y ago · link · parent

55% market share in the US, and the app store has like 70% mobile revenue is enough for US antitrust action.

comment 5y ago · link · parent

I haven't used teams in 3 years (I use what clients use, mostly it's slack) back then I really liked wiki + channel combo, it was super simple to keep channel specific notes in one place and everyone used it since it was right there, fast to update and search - way better than pinned messages which I find almost useless

comment 5y ago · link · parent

Compared to USSR which had people resorting to cannibalism due to starvation ?

comment 5y ago · link · parent

Telegram works better as a chat app for my use case which is why I prefer it.

I use an iPhone for iOS development and as a backup phone, I use Android as a daily driver - WhatsApp couldn't sync history when I broke my phone twice in a year and had to switch to iPhone. And I prefer using a desktop app over mobile one, if my phone dies I can still use telegram desktop (this was useful a few times I left my phone in the car and wife drove off with it, I could keep using telegram to message her, my only other option would be messenger at that point).

I don't mind privacy implications of my random chats being read by telegram.

comment 5y ago · link · parent

Do you use a high DPI screen ?

comment 5y ago · link · parent

But the end result would have been the same - he wouldn't finish his tasks ahead of time, he wouldn't have spare capacity on Friday - management notices this and thinks he's underperforming

comment 5y ago · link · parent

I've seen something similar backfire for a guy I worked with. He had this idea that he would get his shit done Monday-Thursday and have an easy WFH Friday.

People ended up doing most work towards end of sprint and Friday would usually be really busy - basically he always had to be present and management would offload priority stuff to him since he was done. So he'd end up busting his ass all week. Eventually he got tired and reverted to standard schedule - but this meant his relative performance dropped - I saw him get singled out in a review for performance drop (and not a lot of people noticed when he was going above the norm).

comment 5y ago · link · parent

I don't think Google or Microsoft have the culture to compete with Apple in consumer space. Microsoft is all about milking enterprises and Google seems to be geared towards launching random projects and then getting them stuck in limbo or killed off.

This is sad for me because I hate how locked down Apple ecosystem is, I constantly get rubbed by their store policy that I stick with Android, but life is much simpler in the Apple ecosystem and none of their competitors look like they have what it takes to compete (eg. Samsung software is a joke even when the hardware is competitive).

comment 5y ago · link · parent

Qualcomm already has that Microsoft Surface X1 chip and it's terrible. They acquired a player in this space recently but from what I saw that's two years away from launching.

I'd have higher hopes Samsung pulls something off with their fab but still skeptical. Apple seems to be generations ahead in this space.

comment 5y ago · link · parent

What ARM device outside of M1 is competitive for desktop ?

comment 5y ago · link · parent

If anything I suspect they will double down on adding internet services to the OS and double down on the app store.

comment 5y ago · link · parent

I built a Windows PC after 3 years of using my 15 inch 2018 MBP (which is by far the worst machine I have owned considering the price).

Windows has gone to shit, I have visual glitches in the UI using dark mode (even the search box on bottom left doesn't render correctly in dark mode until I hover it). They preinstall some shitty "news" bar right there on the task bar and hide disabling it behind a submenu of a right click on taskbar. Start menu search goes online by default and misdirects me because of it (I disabled it quickly).

Using a 5k monitor and display scaling is very iffy as well compared to MacOS.

I'm waiting on next get M1 and then I'm using the Windows box as a docker server I'll SSH into and maybe play some games. But using it as a daily driver is really underwhelming. I would use Linux desktop but from what I've heard HDPI scaling is even worse.

comment 5y ago · link · parent

How long would you have to run JavaScript on your desktop to leak sensitive information and has there been any known exploits in the wild ?
12345
22