HNHacker News
TopNewBestAskShowJobs

suprfnk

877 karma · joined June 18, 2015

submissionscomments
suprfnk··on Things I Enjoy in Rust: Immutability
That was my first thought as well. If you keep mutable variables function-scoped, I see no difference between:

    // We do this:
    let point = Point { x: 2, y: 4 };
    let point = Point { x: 4, ...point };
and

    let point = Point { x: 2, y: 4 };
    point.x = 4;
And that's generally what the problem is with mutable variables. You either erroneously assume `x == 2`, or have to read all the code between assignment and the point you're trying to change something.

Immutability gives you less thinking and parsing overhead. This kind of defeats that purpose.

suprfnk··on The ups and downs of porting 50k lines of C++ to Go (2015)
Which ML do you mostly use for "general development"? Like simple tools, small web API's, etc? And what's the development/deployment story, compared to Go's (i.e. single .go file, easy (cross)compilation, single binary, pretty fast out of the box)?

I'm currently mainly using Go for these kinds of things, but I'm very interested in trying out an ML for this. I've tried Haskell but it seems very complex in a lot of cases.

suprfnk··on Lithium in drinking water and crimes, suicides related to drug addictions (1990)
> [..] plant-based diet is probably the best way to ensure an optimal Lithium intake.

It looks like a plant-based diet is probably the best way to ensure optimal intake of most micronutrients. Plants and legumes contain a whole lot of micronutrients per calorie, especially compared to calorie-rich 'junk' food.

suprfnk··on Find Files (Ff) – File Search Utility in Rust
> lsd

Tangent, but man is that a bad name for a CLI tool. Had to add a lot of keywords to not get drugs-related pages.

suprfnk··on Linux Desktop Setup
What makes you the gatekeeper of what constitutes a desktop setup?
suprfnk··on Strong and Weak Technologies
I don't agree that "Augmented reality" is the weak form for "Virtual reality". They are two different concepts.

Augmented reality is all about augmenting the real, physical world you live in.

Virtual reality is about stepping into another world that (usually) has nothing to do with your real, physical surroundings.

suprfnk··on The unlikely resurgence of Dungeons and Dragons
> the amount of studies/reports coming out talking about how bad screen time is for people

I haven't heard of this, do you have any links for me?

suprfnk··on Ask HN: Academics who switched to industry, what's your experience been like?
> No, your PhD doesn't give you authority on picking the building blocks for the front-end and devops stacks. Now chill and bugger off, go back to the C++ image processing ML models (1 year of development and no release still).

There is a pretty big gap between a computer science PhD and software engineering in general. I'd rather have someone that did 4 years of software engineering pick the tech stack than someone that did 4 years doing a computer science PhD.

suprfnk··on LG Releases Gram 17 Laptop: An Ultra-Thin Notebook with a 17.3in Display
You missed the point. The point is, both the keyboard and trackpad aren't centered. Now you have two options:

1. Position yourself in the center of the keyboard and type straight -> This forces you to turn your head/eyes to see the middle of the screen.

2. Position yourself in the center of your screen and look straight -> This forces you to put your hands to the left.

Both are very awkward. A keyboard needs to be centered in front of the PC. Numpads screw that up.

suprfnk··on The State of JavaScript 2018
> I really wish other languages communities do a similar survey, Python, PHP, Ruby, Java, Rust etc... It will be interesting to see the trend and big picture.

2018 state of Haskell survey results:

https://taylor.fausak.me/2018/11/18/2018-state-of-haskell-su...

suprfnk··on The State of JavaScript 2018
> Note that from this year on, we will not be making a distinction between Angular and Angular.js.

At the top of: https://2018.stateofjs.com/front-end-frameworks/angular/

suprfnk··on Ask HN: Best Command-Line Applications?
I've been using Spacemacs for a while, what sets Doom Emacs apart?
suprfnk··on The Flask Mega-Tutorial (2012)
Yes, this should have a (2017) tag, not (2012).
suprfnk··on The Flask Mega-Tutorial (2012)
I really dislike video courses. There is, usually, no good way to quickly scan for the important parts.

If there is stuff you already know, skipping forward minutes will keep you wondering whether you have missed something important. With text you can scan through unimportant parts relatively easy, while knowing you didn't miss something important.

suprfnk··on Programming Paradigms for Dummies: What Every Programmer Should Know (2009) [pdf]
For people like me that didn't know: CTM stands for Concepts, Techniques, and Models of Computer Programming.

More info here: https://www.info.ucl.ac.be/~pvr/book.html

Seems like a very interesting read!

suprfnk··on GoCity – Code City metaphor for visualizing Go source code
A note: Doesn't seem to work here, just a blank screen. Linux, Firefox 63.0b14, uBlock Origin. It does work in Chromium.

Firefox console says something about firebase being undefined: https://i.imgur.com/t4xOHGh.png

suprfnk··on Apple Finally Updates MacBook Air with Retina Display, Touch ID
I actually did a small project in .NET core here a few months ago. Pretty cool.

Sadly, older and bigger projects aren't as easily ported over, and do still require new features etc.

suprfnk··on Apple Finally Updates MacBook Air with Retina Display, Touch ID
I'm currently working in a Microsoft shop, and Windows is driving me up the wall.

- Visual Studio (2017) crashes at least once a week without any kind of error reporting. It just closes. Gone.

- PowerShell is absolutely terrible and all terminal emulators are terrible. They are slow, clunky, and never feel 'native' to the OS.

- About a month ago I was in the middle of a problem, walked over to a colleague to discuss, and come back to a forced updating PC. This took upwards of an hour before I could work again.

- I regularly have files or folders that are apparently 'locked' in another process (which one?!), and to do anything with them I have to sign out and sign back in.

- Allowing any application to steal focus is just... The worst UI design decision that was ever made.

I could go on. There's so many annoyances, big to small. This is on a ~2 month old machine with equally fresh install of Windows 10 Pro and Visual Studio Professional. I really like C# and .NET, but Windows is driving me away.

I haven't used Mac OS seriously for about a year or two, so I won't comment on that. My Linux machine is the complete opposite, however. It never does anything that I didn't expect or put there. I always know exactly what is running, what it is doing, and what is isn't doing. I haven't had emacs crash on me yet. I update whenever I feel I have the time, but it's never as intrusive -- even big updates are done in a few minutes. Updates don't require restarts. Again, I could go on.

It's interesting how our experiences can be polar opposite, yet both be valid.

suprfnk··on Advice on how to take a screenshot (1985)
Did you miss the (1985) tag?
suprfnk··on Ask HN: What are some of the best technical talks you've heard?
It's funny that you do go to the trouble of commenting this, which probably takes longer and more effort than clicking the link. I do get your point though.
suprfnk··on How to Get Things Done When You Don't Feel Like It
> Stop caffeine as soon and often as you can.

Why?

suprfnk··on What laptop are you using for your day to day work and why?
> price up by £500 for no reason

The reason is that it's an "extreme" model. It has a better processor and way better graphics card. You can also still get this year's "non-extreme" X1 Carbon, the 6th generation. That's still the same price.

suprfnk··on Log driven programming (2013)
Exactly. I don't see why you would do this in another application. Doing it in another application means you also have to take note of _where_ the piece of your TODO is. That means filename and line number?

While I don't use priorities, I do liberally use "// TODO: <problem statement>" if it's something I need to do that takes me out of the current problem. Then when I'm finishing up a feature or bug fix, I just walk past the list of TODO's.

A recent example would be: On this new project I was on, while implementing a feature, I didn't know how resource files were handled yet -- so I hardcoded some strings with a "// TODO: Put these strings in resource files". Researching the way resource files are handled will pull you out of the current problem, while it's something that can easily be solved later.

suprfnk··on Microsoft open sources parts of Minecraft: Java Edition
Honest question, if you look at this:

https://github.com/Mojang/DataFixerUpper/blob/8b5f82ab78b30f...

Is that understandable to you? And does this really make solving some problems easier?

I've dabbled a bit in Haskell, but never got further than functors, applicatives and monads, and I always wonder whether this kind of stuff really helps.

(It probably doesn't help that Java is very verbose, especially compared to Haskell...)

suprfnk··on “Social network” of brains lets people transmit thoughts to each other’s heads
Reminds me of this Futurama scene:

[Fry and Leela after Fry had an advertisement in his dream]

Leela: Didn't you have ads in the 21st century?"

Fry: Well sure, but not in our dreams. Only on TV and radio, and in magazines, and movies, and at ball games... and on buses and milk cartons and t-shirts, and bananas and written on the sky. But not in dreams, no siree.

If this technology gets refined, this might even be a reality in what, 50 years?

suprfnk··on X1 Carbon CPU frequency update
What does this have to do with Apple?
suprfnk··on Medieval Wellness Tips
They don't seem to be able to handle the HN traffic. Here's an internet archive link:

https://web.archive.org/web/20180925110025/https://www.lapha...

suprfnk··on Ask HN: What are some successful 1 person sites that have a very plain design?
Check out Pieter Levels' projects, most notably NomadList and RemoteOK.

NomadList especially only started out as a shared spreadsheet. There's a good writeup here:

https://levels.io/product-hunt-hacker-news-number-one/

suprfnk··on Build Impossible Programs
From the article:

"As usual these days I drew the slides by hand. It’s way easier/faster, and it’s more fun."

suprfnk··on Distractions Cause Bad Code
This article is a pretty good summary of the book "Deep Work" for a programmer.
← PreviousPage 5 of 10Next →