Readit News logoReadit News
dangets commented on Amazon Ring's lost dog ad sparks backlash amid fears of mass surveillance   theverge.com/tech/876866/... · Posted by u/jedberg
cyode · a month ago
Pulled from IMDB, Morgan Freeman as Lucius Fox voices the consternation perfectly:

> Batman: [seeing the wall of monitors for the first time at the Applied Sciences division in Wayne Enterprises] Beautiful, isn't it?

> Lucius Fox: Beautiful... unethical... dangerous. You've turned every cellphone in Gotham into a microphone.

> Batman: And a high-frequency generator-receiver.

> Lucius Fox: You took my sonar concept and applied it to every phone in the city. With half the city feeding you sonar, you can image all of Gotham. This is wrong.

> Batman: I've gotta find this man, Lucius.

> Lucius Fox: At what cost?

> Batman: The database is null-key encrypted. It can only be accessed by one person.

> Lucius Fox: This is too much power for one person.

> Batman: That's why I gave it to you. Only you can use it.

> Lucius Fox: Spying on 30 million people isn't part of my job description.

dangets · a month ago
Go back a little bit further to another Morgan Freeman movie - Se7en (1995) and a big plot point was that it is unthinkable for big brother to be keeping records of what library books people are checking out. Times sure have changed...
dangets commented on Chrome extensions spying on users' browsing data   qcontinuum.substack.com/p... · Posted by u/qcontinuum1
cess11 · a month ago
If a service is sending auth tokens as URL parameters, stop using it. Those are always public.
dangets · a month ago
I don't disagree with the advice (especially for long lived tokens), but query parameters are encrypted during transit with https. You still need to worry about server access logs, browser history, etc that might expose the full request url.
dangets commented on Videogame stocks slide after Google's Project Genie AI model release   reuters.com/business/vide... · Posted by u/speckx
everdrive · 2 months ago
Will AI games be good? I think they could be, but in practice when you reduce the friction what happens is that the signal to noise ratio gets much worse. The market will be flooded with garbage, and so per capita games will become worse, even if the absolute number of good games rises. So, I'm not excited. We already have too many games. The market is flooded and fragmented. There are more games released now than I have remaining hours in my life.
dangets · 2 months ago
It is definitely a new frontier. How do you review a game that isn't reproducible? Similarly how do you do play testing? You don't get the same "shared experience" outside of multiplayer and people experiencing it together. It is taking current generation procedurally generated games to the next step, but where do you find a threshold of "this blob of constraints is _the_ game"?

I'm not saying that video games should be confined to today's paradigms, I'm just happily curious to see what will happen with it.

dangets commented on Avoid UUID Version 4 Primary Keys in Postgres   andyatkinson.com/avoid-uu... · Posted by u/pil0u
ellisv · 3 months ago
About 10 years ago I remember seeing a number of posts saying "don't use int for ids!". Typically the reasons were things like "the id exposes the number of things in the database" and "if you have bad security then users can increment/decrement the id to get more data!". What I then observed was a bunch of developers rushing to use UUIDs for everything.

UUIDv7 looks really promising but I'm not likely to redo all of our tables to use it.

dangets · 3 months ago
You can use the same techniques except with the smaller int64 space - see e.g. Snowflake ID - https://en.wikipedia.org/wiki/Snowflake_ID
dangets commented on Beej's Guide to Learning Computer Science   beej.us/guide/bglcs/... · Posted by u/amruthreddi
markus_zhang · 3 months ago
I think it's just they do not have the financial freedom to say No to many of the tasks. Once I have the FU money I'd definitely quit.

But what is a hobbyist surgeon?

dangets · 3 months ago
A taxidermist.
dangets commented on The Learning Loop and LLMs   martinfowler.com/articles... · Posted by u/johnwheeler
orev · 4 months ago
Writing the code is like writing an essay—maybe you have some ideas in your head, but the act of writing them down forces you to interrogate and organize them into something cohesive. Without that process, those ideas remain an amorphous cloud, that as far as you’re concerned, are perfect. The process of forcing those thoughts into a linear stream is what exposes the missing pieces and errors in the logic.
dangets · 4 months ago
Or similarly the difference between reading/listening to a foreign language vs. writing/speaking one. Knowing how to read code or learn algorithms or design is different than actually writing it. The difference between the theory and practice.
dangets commented on Simplify your code: Functional core, imperative shell   testing.googleblog.com/20... · Posted by u/reqo
motorest · 5 months ago
> The original 2003 DDD book is very 2003 in that it is mired in object orientation to the point of frequently referencing object databases¹ as a state-of-the-art storage layer.

Irrelevant, as a) that's just your own personal and very subjective opinion, b) DDD is extensively documented as the one true way to write "good code", which means that by posting your comment you are unwittingly proving the point.

> However, the underlying ideas are not strongly married to object orientation and they fit quite nicely in a functional paradigm.

"Underlying ideas" means cherry-picking opinions that suit your fancy while ignoring those that don't.

The criticism on anemic domain models, which are elevated to the status of anti-pattern, is more than enough to reject any claim on how functional programming is compatible with DDD.

And that's perfectly fine. Not being DDD is not a flaw or a problem. It just means it's something other than DDD.

But the point that this proves is that there is no one true way of producing "good code". There is no single recipe. Anyone who makes this sort of claim is either both very naive and clueless, or is invested in enforcing personal tastes and opinions as laws of nature.

dangets · 4 months ago
> "Underlying ideas" means cherry-picking opinions that suit your fancy while ignoring those that don't.

Yes, that is how terminology evolves to not meet a rigid definition that was defined in a different era of best-practice coding beliefs. I'll admit I had trouble mapping the DDD OO concepts from the original book(s) to systems I work on now, but there are more recent resources that use the spirit of DDD, Domain Separation, and Domain Modeling outside of OO contexts. You're right in that there is no single recipe - take the good ideas and practices from DDD and apply it as appropriate.

And if the response is "that's not DDD", well you're fighting uphill against others that have co-opted the buzzword as well.

- https://learn.microsoft.com/en-us/dotnet/architecture/micros... - https://www.infoq.com/news/2013/06/actor-model-ddd/

dangets commented on Protobuffers Are Wrong (2018)   reasonablypolymorphic.com... · Posted by u/b-man
stickfigure · 6 months ago
Backwards compatibility is just not an issue in self-describing structures like JSON, Java serialization, and (dating myself) Hessian. You can add fields and you can remove fields. That's enough to allow seamless migrations.

It's only positional protocols that have this problem.

dangets · 6 months ago
You can remove JSON fields at the cost of breaking your clients at runtime that expect those fields. Of course the same can happen with any deserialization libraries, but protobufs at least make it more explicit - and you may also be more easily able to track down consumers using older versions.
dangets commented on Build API integrations with SQL and YAML – no SaaS lock-in, no drag-and-drop UIs   github.com/paloaltodataba... · Posted by u/maxgrinev
dangets · 10 months ago
The request / data fetching is interesting in how "easy" it is to write. I did basic perusal of the examples, but I'd be interested to see what it looks like with rate-limited endpoints and concurrent requests.

Another tangentially related project is https://steampipe.io/ though it is for exposing APIs via Postgres tables and the clients are written using Go code and shared through a marketplace.

dangets commented on Coding as Craft: Going Back to the Old Gym   cekrem.github.io/posts/co... · Posted by u/codeman001
DontchaKnowit · a year ago
Does anyone have good reference material on learning how to use pandas effectively and understanding the api as a whole?

Any time ive had to use pandas I am shocked at how convuluted and opaque the docs are, and end up just hacking away till something wirks alright.

dangets · a year ago
I felt the same - have to relearn/lookup everything every time I went back to a project or wanted to do some operations that are simple to describe in SQL but I couldn't wrap my mind around e.g. using multi-indexed dataframes & aggregations properly. These days, I always jump to Polars instead of Pandas - much more intuitive and consistent API. Tons of props to Pandas for all that they did (and continue to do) in the data space, but their API did not evolve very well IMO.

I've also been wanting to play with Ibis[1] recently, but Polars has been sufficient for me.

[1] https://ibis-project.org/

u/dangets

KarmaCake day222July 28, 2012View Original