HNHacker News
TopNewBestAskShowJobs

tayo42

4,952 karma · joined July 15, 2015

submissionscomments
tayo42··on Benchmarking OpenTelemetry: Can AI trace your failed login?
It's bespoke to debug across multiple services?

This seems like typical work in any business that isn't trivial.

tayo42··on There is an AI code review bubble
The test pass because your patching print_even so the 2nd filter is never called.

Which I guess, idk maybe think through the testing more and your code more before jumping to conclusions about how things are?

Testing is one tool you have, and it can test the internal like this. Obviously there's a use for it if its in the Python stdlib

This is in mockito

https://stackoverflow.com/questions/39452438/mockito-how-to-...

this is in google testing library for cpp

https://google.github.io/googletest/gmock_for_dummies.html

> Specify your expectations on them (How many times will a method be called? With what arguments? What should it do? etc.).

If you never heard of this, I guess you learned something new? Im not a tutor though. I would read the docs more and experiment. Maybe chatgpt can help you with how tests can be written.

tayo42··on There is an AI code review bubble
Did you try it? If it doesn't work there's also called once if you scroll up on the doc

And as far as whether it's a good idea or not, I generally wouldn't, but was saying when it is important then you do have these tools available,llms aren't the first thing to check for these mistakes. It's up to the engineer to choose between trade offs for your scenario.

tayo42··on There is an AI code review bubble
You would use something like this

https://docs.python.org/3/library/unittest.mock.html#unittes...

Then you would make the mock filter with patch and test the `func` function

psuedo python code would be

   @patch(builtins.filter)
   def test_func_filter_calls(mock_filter):
     mock_filter.return_value = [2,4,6]
     func()
     mock_filter.assert_called_once_with([1, 2, 3, 4, 5, 6, 7, 8, 9, 10])
tayo42··on There is an AI code review bubble
I know how I would do it in python. This is built into the stdlibs testing library, with mocks.

Maybe dependency injection and function pointers for the copy if function. Then you can check the call counts in your tests. But idk the cpp eco system and what's available there to do it.

tayo42··on A few random notes from Claude coding quite a bit last few weeks
Anecdotally, i burned out pretty hard and basically didn't open a text editor for half a year (unemployed too). Eventually i got an itch to write code again and it didn't really feel like I was really worse. Maybe it wasn't long enough atrophy but code doesn't seem to quite work like language though ime.
tayo42··on There is an AI code review bubble
You mention the tools you can use to make it happen.

I think we're at the point where you need concrete examples to talk about whether it's worth it or not. If you have functions that can't be called twice, then you have no other option to test details in the implementation like that.

Yeah there's a tradeoff between torturing your code to make everything about it testable and enforce certain behavior or keeping it simpler.

I have worked in multiple code bases where every function call had asserts on how many times it was called and what the args were.

tayo42··on There is an AI code review bubble
Idk how exactly to do it in cpp becasue I'm not familiar with the tooling

You could write a test that makes sure the output of someCall is passed directly to printeven without being modified.

The example as you wrote is hard to test in general. It's probably not something you would write if your serious about testing.

tayo42··on There is an AI code review bubble
Sure and you can do that
tayo42··on There is an AI code review bubble
You can do that with mocks if it's important that something is only called once, or likely there's some unintended side effect of calling it twice and tests woukd catch the bug
tayo42··on There is an AI code review bubble
Unit tests catch that kind of stuff
tayo42··on After two years of vibecoding, I'm back to writing by hand
The chat is limited and doesn't let you use the latest model. if that's representative of the answers I would get by paying, it doesn't seem worth it.

Im not crazy about signing up for a subscription service, it depends on you remembering to cancel and not have a headache when you do cancel.

tayo42··on After two years of vibecoding, I'm back to writing by hand
There's no free trial or anything?
tayo42··on Amazon braces for another major round of layoffs, 14,000 jobs at risk
Fallouts been pretty good. Not sure what they did right there
tayo42··on How I estimate work
For any slightly complicated project on a house the estimate assumes everything goes right, which everyone knows it probably won't. It's just a starting point, not a commitment.
tayo42··on 40M Americans Live Alone, 29% of households
You definitely havent had bad roommates if you say that.
tayo42··on Show HN: I've been using AI to analyze every supplement on the market
> Shady companies are sending C&Ds letters demanding their products are taken down from the website.

That's surprising because it seems like you just have a review site? What's the issue? Or is it just bs threats?

tayo42··on Recent discoveries on the acquisition of the highest levels of human performance
What does the reverse imply? High GPA, low SAT?
tayo42··on Your brain on ChatGPT: Accumulation of cognitive debt when using an AI assistant
There is a track now for people to stay in engineering and get paid more then their manager
tayo42··on Anthropic's original take home assignment open sourced
I wonder if the Ai is doing anything novel? Or if it's like a brute force search of applying all types of existing optimizations that already exist and have been written about.
tayo42··on Anthropic's original take home assignment open sourced
2 hours does seem short. It took me a half hour to get through all you listed and figure out how to get the valu instruction working.

I suspect it would take me another hour to get it implemented. Leaving 30 minutes to figure out something clever?

Idk maybe I'm slow or really not qualified.

tayo42··on De-dollarization: Is the US dollar losing its dominance? (2025)
Don't we already pay in foreign currency? I do this online with foreign websites and credit cards.
tayo42··on I'm addicted to being useful
The advice to surrive the workplace is to not act like a human lol
tayo42··on Targeted Bets: An alternative approach to the job hunt
Have you tried targetted applications in the last 2-3 years?
tayo42··on Tired of AI, people are committing to the analog lifestyle in 2026
There's sound cloud, band camp, any video host like YouTube or vimeo.

You can seed a torrent and put it on w/e pirate site is cool right now.

tayo42··on Software engineers can no longer neglect their soft skills
How do you try them without paying?
tayo42··on Show HN: I built a tool to assist AI agents to know when a PR is good to go
No,

The linked page explains how this fits into a development workflow

eg.

> A reviewer wrote “consider using X”… is that blocking or just a thought?

> AMBIGUOUS - Needs human judgment (suggestions, questions)

tayo42··on The Dilbert Afterlife
I had a period where I was on a team like that. We didn't have a manager.

Though some of my worst work periods was when I didn't have a manager either lol.

tayo42··on Plunging US Birth Rate Leaves Too Many Colleges with Too Few Kids
This probably depends on what you mean by college experience. I think I was to fucked up the whole time to be stressed by classes. Until I got kicked out.
tayo42··on Canada slashes 100% tariffs on Chinese EVs to 6%
Chinese brand cars are already in Mexico and people don't do that. I think you can't register them or something.
← PreviousPage 16 of 34Next →