Hacker News new | past | comments | ask | show | jobs | submit | RonnieOwnsLexus's comments login

i dont get it. I if am taking a dependency on database or another class and i mock it using its interface, what is the harm in it? Essentially i have tested that given my dependencies working correctly my class would also work as expected.


Almost -- you're testing that given your mocking implementation perfectly mirrors what the dependency would do given the inputs tested with that your functions produce the correct outputs (and hopefully you also verified the side-effects).

The article is stating that almost nobody goes through the trouble of implementing a mock database perfectly, they just do something like make a single call return some hard-coded data. While this works a bit, it means that if the database ever changes its interface you have to remember to notice and implement that change as well.


When will it come for windows ?


you can add 1 more type which is quite popular in Indian Subcontinent. Panner


Paneer would be an excellent one to add because it's easy to make and doesn't even require rennet, just some sort of acid (citric acid carefully added has given me the best results)


Paneer is brilliant. We usually make a batch if we find some milk on sale. It doesn't matter if the milk is homogenized.


please explain this reference for non US/western hemisphere folks.


In the 1984 movie Gremlins, the protagonist is warned not to feed the titular creatures (a type of transformer) after midnight, otherwise they promptly lose alignment and begin to hallucinate.


That particular rule always irked me because it's always after midnight as any meal is over time not at a precise point in time.

I should really have got over it after 40 years.


By that logic it’s always full moon somewhere, and yet we’re not seeing massive werwolf issues during the day.

Explain that!


with nowhere to hide, eradicating werewolves is much easier, though slightly more dangerous.

you can’t see what’s not there.

you aren’t a language model that ate after midnight.


> I should really have got over it after 40 years.

I am with you. The movie has no hints or clues when it's okay to feed again. Dawn ? Sunrise ?


I think you've just found the perfect storm for a killer LLM joke... - transformer - alignment - hallucinate

wait, unless you were joking in the first place.


Am I reading the new users graph correctly ? Hackernews got 64K new users in 2023?

What is the DAU/MAU If anyone knows


It says the number is a measure of users who posted their first comment or submission in 2023. So that, at least, is the correct way to read the graph.

That is interesting! Especially considering the true number of signups would be higher based on users who signed up but have never posted anything. Although we dont know how many are spam accounts that signed up, posted, and got banned.


Creator here. I'd love to know the number of accounts created, but that is not in the official data and I couldn't figure out anywhere to get it. It should be possible to get this data by crawling profile pages, but there's no comprehensive list or way to find them. AFAIK there is also no exposed incrementing user id that might hint at how many users were created between two dates.


> It says the number is a measure of users who posted their first comment or submission in 2023.

This number should exclude bots users that had their first posts or comments flagged or removed, i.e. bots and spammers. I'd guess that there'd be a lot of these.


I think the reddit exodus diverted lots of redditors to HN.


I’m a Reddit refugee. I was meaning to quit for a while, the shenanigans that went down made it easier.


or you would leave one of them.


why am i not able to cause a meltdown


Rise of nations


I found this game late but its great!


so essentially if i have a VM, i can just install the apps i require and then use them for my business. This sounds great but then I need to make sure i am monitoring and debugging it if something breaks ?

Also how does sandstorm makes money then ?


> Also how does sandstorm makes money then ?

It doesn't. It is an open source project. Originally Sandstorm was offered by a startup, but they stopped [0] in 2017. You can make donations though [1].

[0] https://sandstorm.io/news/2017-02-06-sandstorm-returning-to-...

[1] https://sandstorm.io/news/2021-06-17-sandstorm-community-fun...


How do I see syllabus or contents for these courses?


Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: