News for hackers. Stuff that matters.

codeyperson

High level - having a discussion with the LLM about different approaches and the tradeoffs between each

Low level - I'll write up the structure of what I want in the form of a set functions with defined inputs and outputs but without the implementation detail. If I care about any specifics with the functions I'll throw some comments in there. And sometimes I'll define the data structures in advance as well.

Once all this is set up it often spits out something that compiles and works first try. And all the context is established so iteration from that point becomes easier.

Re:Willow, Our Quantum Chip on Monday December 09, 2024 @08:45PM (#42372795)
If we are in a simulation. This seems like a good path to getting our process terminated for consuming too much compute.
Re:How do you juggle WFH with a baby? on Tuesday November 12, 2024 @07:17PM (#42121508)
Don't sleep on daycare. It's good for the Childs social development. And a good daycare centre will follow modern pedagogical practices. If and your partner both enjoy your jobs, you'll appreciate not having to compromise your careers. And the break during the day is welcome, believe me.
Re:Thoughts on the Future of Software Development on Monday March 18, 2024 @09:08PM (#39751964)
That you know of
He's said in his interview on the Lex Fridman podcast, that he wants to get AI in front of people as fast as possible to give us the longest amount of time possible to start to adapt to it.

I think he wants to scare people a little in a somewhat controlled way to onramp us to this new reality as fast as possible.

Re:Adobe Firefly: AI Art Generator on Tuesday March 21, 2023 @05:48PM (#35253061)
People accidentally recreate other companies logos in Adobe Illustrator all the time.
50ms works for network games when the input update loop is done locally, and with lots of fancy techniques to correct for the network lag.

50ms of input lag on the other hand is very easily noticeable. And makes games unplayable for lots of people.

Re:Bunny AI on Thursday December 22, 2022 @07:20PM (#34100818)
But if the car drove itself, we could cook meals in the car...
Re:Sydney CBD is bringing back pedestrian “beg buttons” on Monday December 19, 2022 @09:18PM (#34060724)
There’s no button. They put the cover with the label over the top of the existing button.
BTW, there's a built in accessibility feature in iOS called background sounds. It does rain and various noise types. And it can be added to the lock screen.
Re:It seems that the good times for online Minecraft play are over on Thursday September 08, 2022 @10:50PM (#32774737)
Bit of a wild comparison. It's more like the online equivalent of someone getting kicked out of Legoland for swearing around the children.
Maybe single people are less likely to retire
Re:Atlassian is 20 years old and unprofitable on Thursday June 30, 2022 @05:47AM (#31930423)
What network effects does MSWord have?
It’s actually even worse than that I think. If something takes over a certain amount of time, then I’m more likely to go do something else while I wait, like check Hackernews. And there goes 20 minutes.
Re:Ask HN: I am lost in life. How do I fix this? on Monday May 30, 2022 @11:21PM (#31565800)
Perhaps you need to put some focus onto the non-work aspects of your life - hobbies, family, social life.
> You also see an increase in totalitarian behavior, eg, the Australian lockdowns compared to the US lockdowns.

Don't believe tabloid media. No it wasn't 'totalitarian'. I can't take you seriously now.

Re:Code and Theory's approach to editorial web design on Tuesday May 24, 2022 @12:56AM (#31488161)
Site seems to be behind a password
Re:Panic Playdate Review on Friday April 22, 2022 @03:05AM (#31119063)
Real men don’t play, obviously .
Yep agree. Something more analogous would be dictionary.com vs a physical dictionary.
Re:Blade Runner RPG on Friday April 08, 2022 @08:50AM (#30956220)
> giving players the choice to play as either human or Replicants
Re:Choose your status game wisely on Friday April 01, 2022 @10:20PM (#30885335)
Feynman’s thoughts on the Nobel prize: https://m.youtube.com/watch?v=vvrdJXRe5KE

But I’m sure he secretly enjoyed the praise somewhat.

Re:Why aren’t there more dogs at the doctor’s office? on Sunday March 20, 2022 @08:35PM (#30748537)
> Dying from an actual dog bite is much more rare. There is no reliable worldwide data, but of the estimated 4.5 million dog bites in the US every year, only about 30 people die on average.
Cool game mechanic, I haven't seen anything quite like it.

I think you could remove the UI options at the bottom entirely.

Instead have the user click on the adjacent squares directly. Basically if I click a red square on the board, that would be equivalent to selecting the red square in the UI options.

Then add have a hover state that indicates what is going to happen after they click. And make everything bigger such that so the user can't avoid mousing over the squares. If the hover state is good enough, it should teach the rules without the need for instruction.

Oh and make the color blind option the default / ditch the squares. The emojis look cooler.

Re:Starlink lost 40 satellites to a geomagnetic storm on Tuesday February 08, 2022 @09:34PM (#30267978)
1700 - 40 = 1660. Rounded it to the nearest integer.
Re:Rebelle: Experimental online paint software on Thursday February 03, 2022 @02:02AM (#30189557)
Same
Re:Ask HN: At a peak of my dev career, I hate my life on Saturday January 29, 2022 @10:37PM (#30133695)
Move into a share house
Re:Procedural Worlds from Simple Tiles on Sunday January 09, 2022 @07:04PM (#29868869)
I think you could layer this approach to get some global structure.

Currently the probability of each tile is local * sphere. A simple approach would be to add some perlin noise on top to dictate different biomes, with each biome having their own tile probability distributions. Then the new tile probability becomes local * sphere * biome.

So in the ocean biome you might be less likely to get houses and other large structures. But islands and grass huts are ok. And obviously water tiles get a large probability boost.

Or… what if we took the tile approach further and have various scales of tile. Perhaps biomes are larger tiles (8x8) which also follow the same algorithm so that biomes have relationships to one another.

Re:Ten years of experience, still failing phone screens on Friday December 17, 2021 @03:43AM (#29589536)
I’d hire you.
Re:Big Tech Coding Interview Framework – Pt 1. Inspect on Saturday November 06, 2021 @07:42PM (#29134923)
I don't like the expectation that all people should approach problem solving in a particular way. Everybody is different.

Personally, I like to continuously implement and clarify in small tight loops. It might look something like: implement a rough structure with lots of empty functions and very basic control flow. Ask questions. Restructure. Ask more questions. Restructure again and add implementation detail. Etc etc.

This way of working is tied with my thinking. It reveals the problem to me over time instead of all at once. I get a deeper understanding this way.

There is an assumption by some people that my process is wrong. They would argue that I should instead break the problem down on paper, or in my head, or using test driven development, or with design documents etc etc. But this is the process that I've found works best for me.

I can enforce a particular process to please interviewers (and I have). But solving the problem becomes much harder.

Re:EFF Flew a Plane over Apple's Headquarters on Saturday September 25, 2021 @08:41PM (#28657397)
There's still time. Also it made the front page of Hacker News. So I'd say that's a success.

Older »