Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
tayo42
searching PlanetScale…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
17 ms
·
421.
▲
by
tayo42
9mo ago
I feel like collectively we should just stop talking about this and speculating and just see what happens in a year. Is programming obsolete, or is it needed more then ever becasue we need to fix all the crap generated. Let's just all
422.
▲
by
tayo42
9mo ago
> chat with native speakers online for free Where can you do that?
423.
▲
by
tayo42
9mo ago
It's bespoke to debug across multiple services? This seems like typical work in any business that isn't trivial.
424.
▲
by
tayo42
9mo ago
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, a
425.
▲
by
tayo42
9mo ago
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 tool
426.
▲
by
tayo42
9mo ago
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
427.
▲
by
tayo42
9mo ago
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
428.
▲
by
tayo42
9mo ago
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 l
429.
▲
by
tayo42
9mo ago
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 o
430.
▲
by
tayo42
9mo ago
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
431.
▲
by
tayo42
9mo ago
Sure and you can do that
432.
▲
by
tayo42
9mo ago
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
433.
▲
by
tayo42
9mo ago
Unit tests catch that kind of stuff
434.
▲
by
tayo42
9mo ago
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 yo
435.
▲
by
tayo42
9mo ago
There's no free trial or anything?
436.
▲
by
tayo42
9mo ago
Fallouts been pretty good. Not sure what they did right there
437.
▲
by
tayo42
9mo ago
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.
438.
▲
by
tayo42
9mo ago
You definitely havent had bad roommates if you say that.
439.
▲
by
tayo42
9mo ago
> 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?
440.
▲
by
tayo42
9mo ago
What does the reverse imply? High GPA, low SAT?
441.
▲
by
tayo42
9mo ago
There is a track now for people to stay in engineering and get paid more then their manager
442.
▲
by
tayo42
9mo ago
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.
443.
▲
by
tayo42
9mo ago
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
444.
▲
by
tayo42
9mo ago
Don't we already pay in foreign currency? I do this online with foreign websites and credit cards.
445.
▲
by
tayo42
9mo ago
The advice to surrive the workplace is to not act like a human lol
446.
▲
by
tayo42
9mo ago
Have you tried targetted applications in the last 2-3 years?
447.
▲
by
tayo42
9mo ago
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.
448.
▲
by
tayo42
9mo ago
How do you try them without paying?
449.
▲
by
tayo42
9mo ago
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)
450.
▲
by
tayo42
9mo ago
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.
More ›