Readit News logoReadit News
matsemann commented on The Walt Disney Company and OpenAI Partner on Sora   openai.com/index/disney-s... · Posted by u/inesranzo
71bw · 2 days ago
...have you ever thought about the way you're using the app, then? Because I, personally, get nothing else other than dumb memes and posts from people I follow.
matsemann · 2 days ago
No, stop with the stupid shaming. The point was that the algorithm pushes certain content on people, no matter what they actually want to see.
matsemann commented on The Walt Disney Company and OpenAI Partner on Sora   openai.com/index/disney-s... · Posted by u/inesranzo
zahlman · 3 days ago
The question is why it shows up on your Tiktok feed.
matsemann · 3 days ago
This used to be a "zing", but don't think it is anymore. Try to make a new profile somewhere and select a few topics of interest. You will get suggested the most engaging "relevant" content. For me, I made a cycling Instagram and my feed instantly got filled with girls showing of cleavage in lycra with cycling hashtags.
matsemann commented on Auto-grading decade-old Hacker News discussions with hindsight   karpathy.bearblog.dev/aut... · Posted by u/__rito__
jasonthorsness · 4 days ago
It's fun to read some of these historic comments! A while back I wrote a replay system to better capture how discussions evolved at the time of these historic threads. Here's Karpathy's list from his graded articles, in the replay visualizer:

Swift is Open Source https://hn.unlurker.com/replay?item=10669891

Launch of Figma, a collaborative interface design tool https://hn.unlurker.com/replay?item=10685407

Introducing OpenAI https://hn.unlurker.com/replay?item=10720176

The first person to hack the iPhone is building a self-driving car https://hn.unlurker.com/replay?item=10744206

SpaceX launch webcast: Orbcomm-2 Mission [video] https://hn.unlurker.com/replay?item=10774865

At Theranos, Many Strategies and Snags https://hn.unlurker.com/replay?item=10799261

matsemann · 3 days ago
I like the "past" functionality here, maybe wished there was one for week/month I could scroll back as well.

Miss it for reddit as well. Top day/week/month/alltime makes it hard to find top a month in 2018.

matsemann commented on Australia begins enforcing world-first teen social media ban   reuters.com/legal/litigat... · Posted by u/chirau
criddell · 4 days ago
Are you describing the difference between a social network and social media?
matsemann · 4 days ago
I don't know, what would be what?

Hn and reddit are kinda the same concept, it's just the scale of them making it different, or?

matsemann commented on Australia begins enforcing world-first teen social media ban   reuters.com/legal/litigat... · Posted by u/chirau
didibus · 4 days ago
To be honest, I wouldn't mind they'd ban it for adults too, would help me from wasting time on them.

In all seriousness though, I'm curious what counts as social media, can they not play MMORPGs anymore for example? Are niche forums included ? What about chat apps like Whatsapp? Phone texting? Email?

I'm also curious if say TikTok and YouTubed simply deactivated their social features? No comments, DMs, and so on for example? Would they be allowed again?

matsemann · 4 days ago
Had the same thought. Growing up in a small town (couple of hundred inhabitants), internet access early 2000's was a gift for teenage me. I joined web forums and discovered new interests (=web development which lead to my career), chatted with friends on msn, later played runescape and wow and met friends I later traveled countries to meet.

Of course, these things were different than the beasts today. Everything was more personal, smaller. No algorithms.

So not sure what I feel. Social media as we know it today is obviously bad (not just for teenagers). But maybe I'm just nostalgic for how it was.

But what about hn?

matsemann commented on Why frozen test fixtures are a problem on large projects and how to avoid them   radanskoric.com/articles/... · Posted by u/amalinovic
bluGill · 5 days ago
I disagree. Prefer integration tests to unit tests where ever possible. If your tests run fast - which most integration tests should be able to do; and you are running your tests often - there is no downside. Your tests run fast and since you run them often you always know what broke: the last thing you changed.

Fixtures done right ensure that everyone starts with a good standard setup. The question is WHAT state the fixture setups. I have a fixture that setups a temporary data directory with nothing in it - you can setup your state, but everything will read from that temporary data directory.

Unit tests do have a place, but most of us are not writing code that has a strong well defined interface that we can't change. As such they don't add much value since changes to the code also imply changes to the code that uses them. When some algorithm is used in a lot of places unit tests it well - you wouldn't dare change it anyway, but when the algorithm is specific to the one place that calls it then there is no point in a separate test for it even though you could. (there is a lot of grey area in the middle where you may do a few unit tests but trust the comprehensive integration tests)

> Worst case verify that it called some mocks with x,y,z.

That is the worst case to avoid if at all possible (sometimes it isn't) that a function is called is an implementation details. Nobody cares. I've seen too many tests fail because I decided to change a function signature and now there is a new parameter A that every test needs to be updated to expect. Sometimes this is your only choice, but mock heavy tests are a smell in general and that is really what I'm against. Don't test implementation details, test what the customers care about is my point, and everything else follows from that (and where you have a different way that follows from that it may be a good think I want to know about!)

matsemann · 4 days ago
I guess it depends a bit on what you work on. Lately I'm working on algorithm heavy stuff, then testing input=>output is much more valuable than if things run, easier to consider edge cases when calling it directly etc. But if you make a crud app it's often more useful to test a flow. So depends.

As for mocks I don't disagree, hence calling it worst case.

What often works for me is separating the code. For instance if I call a function that first queries the db and then marshall that data into something, it's often easier to test it by splitting it. One function that queries, that one can test with some db fixtures or other setup. And then another that gets a model in and only does the pure logic and returns the result. Can then be tested separately. And then a third function which is the new one, that just calls the first and pass the result into the second. Can be boilerplaty, so again, depends.

matsemann commented on Why frozen test fixtures are a problem on large projects and how to avoid them   radanskoric.com/articles/... · Posted by u/amalinovic
onionisafruit · 5 days ago
Fixtures are great for integration tests. But I agree that unit tests needing fixtures indicates a design issue.

Still, most of us work on code bases with design issues either of our own making or somebody else’s.

matsemann · 4 days ago
Yup, so I'm not against fixtures per se, they have their uses and can be a pragmatic choice. I just often don't like when I have to use them, as it's often to patch over something else. But things are never perfect.
matsemann commented on Why frozen test fixtures are a problem on large projects and how to avoid them   radanskoric.com/articles/... · Posted by u/amalinovic
matsemann · 5 days ago
To me, fixtures are a code smell. If you need so much common setup to test your application, the code under testing is doing too much. It's unfortunately quite common in Rails or Django projects. You need to pass the Foo model to your function, but it will lookup foo.bar.baz, so you need to wire up these as well, which again need further models. Of course everything also talks with the database.

Instead, if you're able to decouple the ORM from your application, with a separate layer, and instead pass plain objects around (not fat db backed models), one is much freer to write code that's "pure". This input gives that output. For tests like these one only needs to create whatever data structure the function desires, and then verify the output. Worst case verify that it called some mocks with x,y,z.

matsemann commented on Applets are officially gone, but Java in the browser is better   frequal.com/java/AppletsG... · Posted by u/pjmlp
epistasis · 6 days ago
The only thing worse than launching the JVM from the command line, with it's looooooooooooong and inexplicable load time, was hitting a web page and having it lock the browser for that amount of load time.

I remember a few decades ago somebody saying the JVM was incredible technology, and as a user and programmer I still have zero clue what the hell they could have been thinking was good about the JVM.

I hear that now, decades into Java, they have figured out how to launch a program without slowing a computer down for 10+ seconds, but I'll be damned if I find out. There are still so many rough edges that they never even bothered to try to fix about launching a .jar with classpath dependencies. What a mess!

matsemann · 6 days ago
So your lack of technical knowledge or curiosity means Java wasn't incredible? That's certainly... a take. I'm almost curious: why did you end up holding strong beliefs like these, instead of actually investigating? As a curious person, when I hear something I don't know I like to learn - not just dismiss it. FYI, your .jar complaint is almost a decade out of date.
matsemann commented on Turtletoy   turtletoy.net/... · Posted by u/ustad
matsemann · 6 days ago
Similar: https://www.dwitter.net/

Where you get 140 characters to draw using code. (Similar as in the resulting pictures reminded me of dwitter)

u/matsemann

KarmaCake day22529February 5, 2013
About

  val name = "mats"
  val domain = "matsemann.com"
  val email = "${name}@${domain}"
Some projects:

https://github.com/Matsemann/

Fpv with oculus rift https://news.ycombinator.com/item?id=7654141

Thesis on using ea to evolve bicycle wheels https://news.ycombinator.com/item?id=10410813

Optical illusions https://news.ycombinator.com/item?id=18307573

View Original