HNHacker News
TopNewBestAskShowJobs

dicroce

962 karma · joined March 25, 2011

submissionscomments
dicroce··on GitHub Users File a Class-Action Lawsuit for Training an AI Tool with Their Code
people taking short segments of code that are implementations of common algorithms and claiming those as "copied" by copilot are wrong. it didn't copy, it learned and wrote.
dicroce··on Multiple assertions are fine in a unit test
also, only testing public interfaces is perfectly fine and may actually be preferable as it leaves you free to refactor internals freely without breaking tests.

tbh unit testing is a balancing act between reaping code quality benefits and bogging yourself down with too much testing updating.

dicroce··on Ask HN: What was being a software developer like about 30 years ago?
For the first few months of my first job in 1996 people were using dialup internet.... and I spent a lot / most of my time reading documentation from a giant set of manuals that came with the devkit we were using.
dicroce··on Quirks, Caveats, and Gotchas in SQLite
I encountered a case a few years ago where a query failed because the database had been opened read only but it needed to recover a journal. The solution was to just never open the database read only... but this seems less than optimal. Anyone else seen this?
dicroce··on Qt signal is ten times slower than a virtual function
Im actually surprised they are that fast.
dicroce··on Ask HN: What's the next big thing that few people are talking about?
It's not that you cannot use Genetic information to accurately predict certain aspects of someone's future... It's that genetic information tells you nothing about human will, and human will can overcome a lot.
dicroce··on The OG Social Network: Other People’s Websites
The OG social network is GeoCities.
dicroce··on SDF Public Access Unix System
Clicked expecting a giant robot... was disappointed.
dicroce··on Ask HN: Meal Planning App?
So, I did this personal project a couple of years ago where I downloaded a big recipe database and then did a bunch of parsing / cleaning code to reduce each recipe down into a list of ingredients... Then I did an analysis of the ingredients to determine which were the most effective ingredients (frequently used in recipes) as it occurred to me that that this could be used to create a shopping list that enabled the most home cooking. The resulting list was ingredient list was fascinating... Salt & Oil were right at the top. Anyway, you might want to steer peoples shopping in the direction that enables the most meals for them.
dicroce··on Ask HN: What are some cool but obscure data structures you know about?
I came up with a clever one recently. So, I had a stream of records of fixed size where I will receive exactly one per second. I needed to keep approximately two weeks of this data. I would also need to be able to query the records by time. Anyway, the idea is: use modulus on the file creation time to calculate a write position. Use the location of the current write position to locate query starts and stops. The file then has zero space overhead. Is this something known or did I actually invent something here? If this is my invention I'm open to hearing suggestions for a cool name!
dicroce··on Crime scene investigators learn to dowse for the dead
The guy who dug the water well on my parents land used a dowsing rod. Interestingly, he chose to use the dowsing rod in the lowest point of the meadow... which probably saved him a few feet of drilling.
dicroce··on The Dubai Debt Trap
I'm 6'6"... I wish you would mention the countries so I can make sure to never go.
dicroce··on Major breakthrough on nuclear fusion energy
For me, a working net positive fusion reactor means a ton. Here are some things you could do with free (or essentially free) clean energy:

1) desalinization to provide water to everyone. 2) massive carbon capture 3) convert the world away from liquid fuels - and for the cases we are unable to do that, make the fuels from captured atmospheric carbon.

dicroce··on Show HN: SHA-256 explained step-by-step visually
Please do this for b+trees. :)
dicroce··on Tesla to recall vehicles that may disobey stop signs
California rolls are legal? Why didn't I know this for the 45 years I lived in California? :)
dicroce··on Nearly 1k mysterious strands revealed in Milky Way’s center
Odds these structures can help explain away dark matter?
dicroce··on Are you sure you want to use MMAP in your database management system? [pdf]
I have written a couple of mmap() based time series databases. In my case, these were databases for holding video. For my uses, mmap() has been great. I strongly agree with your comment. Maybe mmap() isn't the greatest, but it has worked for me.
dicroce··on Show HN: OnlyRecipe.app – Remove clutter from recipe sites
Damn, that is awesome. We need an AI to convert text instructions into this format.
dicroce··on Street Fighter II, the World Warrier
I've been a software engineer for 25 years and I think people overly romanticize this attitude and we should properly fix things more.
dicroce··on Finishing my first game while working full-time
Well, you shouldn't deceive yourself about your goals. I don't think a goal that involves other people is inherently bad. Nothing wrong with wanting to impact the world IMHO.

Unless you create a game that has infinite replayability and you find playing it fun you're right that game development is ultimately FOR someone else. But there is nothing wrong with that.

Ultimately you have to find a project whose goal is worth the effort. Honestly part of why I got out of game development was because I wanted some more reasonable projects.

dicroce··on Finishing my first game while working full-time
Here are my side project tips:

1) As the article states, work on your side project first in the morning before your work. You will be too tired after work. Yes, this means your not really giving 100% at work. Hopefully your good enough at your job that this is OK.

2) Create little task lists, with short little tasks... Then knock those tasks out one by one. If you find yourself procrastinating about some task do another little task first, then later make a quick spur of the moment decision to go do the procrastination task.

3) It's OK to dream about the best case scenario, but also have realistic side goals: "worst case scenario, I've built a cool engine for my next project."

4) DO create the right amount of tests (too little and your going to be creating buggy crap code, too many and you're bogged down updating your tests constantly)... get a feel for what your right amount is.

5) Don't type so much, think more... think through designs... use paper, be messy and redraw... all of this is faster than building the wrong thing.

6) I think its OK to be quirky. Make the thing YOU want to make. This is another way to monetize: your mental health is worth a lot and personally I find bringing shit that I want to exist into the world just the way I want them to be is a good trick for staying happy.

dicroce··on Skunk Works Boss Says He Can't Comment on TikTok Video of Stealth Shape
Here is another link if the main one isn't working:

https://www.thedrive.com/the-war-zone/42480/mysterious-steal...

dicroce··on Skunk Works Boss Says He Can't Comment on TikTok Video of Stealth Shape
Umm, like where is the jet / rocket nozzle on that thing?
dicroce··on I Built My New Linux Gaming Desktop in 2021 with AMD (CPU+GPU) and GNU Guix
Controversial Opinion - 2022 will finally be the year of the linux desktop for 2 reasons:

1) steam deck will fix gaming on linux. 2) flatpak + snap will finally fix distributing software on linux.

dicroce··on Toyota halts all self-driving e-Palette vehicles after Olympic village accident
If a remote human controlled car accident causes them to end development of self driving, then they were looking to do that anyway.
dicroce··on Classical data structures that can outperform learned indexes (2018)
As I read this I thought "interesting. I would have thought probing would be better on modern computers with memory pre-fetching"... Then I come to the comments and find out im not the only one thinking that.
dicroce··on Study on Time Restricted Eating (TRE), a form of intermittent fasting (2020)
I have done tre twice. the first time it didn't work the second time it did. the difference: the first time I definitely ate more (in fact a whole day's worth) of calories in my eating window. the second time I just ate a normal meal.

I think if tre helps you restrict calories it works.

dicroce··on Things that only someone who has been programming 20 years would know
can't figure it out? do something else for a while.
dicroce··on Understanding Rust futures by going way too deep
I don't think it's simple. I find lifetimes especially challenging. I love rust, but sometimes I am remarkably unproductive in it because the compiler is so strict. Honestly, sometimes I think I need flash cards for memorizing how to deal with particular compiler errors.
dicroce··on Microsoft's Introduction to Rust Video Course
Lifetimes! That's what I need help with! How do you learn lifetimes?
← PreviousPage 3 of 11Next →