Better HN
topnewbestaskshowjobs
Log inSign up

hasty_pudding

168 karma · joined Dec 13, 2023 (2y ago) · 321 submissions

Submissions

comment 2y ago · link · parent

News needs sensationalism.

Thanks for posting another side of this.

What you're saying makes a lot of sense.

comment 2y ago · link · parent

what languages don't use objects to implement non-primitive data structures?

like a binary tree for example

comment 2y ago · link · parent

What languages on Earth implement non-primitive data structures without objects?

I guess maybe low level c and assembly where you implement everything as bits in physical memory?

comment 2y ago · link · parent

you know how unsufferable it is when people bog a conversation down with semantics instead of ideas.

the point is obvious.

Being that every single language on Earth uses objects for non-primitive data structures that should be inferrable to a reasonable person.

a data structure in that context is clearly an ordered grouping of objects versus an unordered/loose grouping of objects.

comment 2y ago · link · parent

Very far

comment 2y ago · link · parent

You definitely need generic node objects to define the nodes.

You could have a completely stateless class/object that would manipulate those nodes and add them and remove them from the data structure.

comment 2y ago · link · parent

What they mean is functions and data are separate, emulating a more functional paradigm and less mutable state.

The functions are kept pure and the data is kept pure.

As opposed to an object oriented programming style in which data and functions share the same object and create bug ridden state machines thats not as easy to reason about.

Some further explanation about this:

https://www.goodreads.com/quotes/702062-immutable-objects-ar...

a semi-nuanced discussion:

https://www.reddit.com/r/scala/comments/ejwsp1/is_mutability...

you can just Google mutable state to find more info.

separating your data structures and functions in many cases will make your code cleaner and more bug free.

comment 2y ago · link · parent

"all functions are pure, there is no data mutation, and entities are represented by data structures instead of objects."

God i love to see this

comment 2y ago · link · parent

The problem is you don't know if it's a blunder until after.

comment 2y ago · link · parent

don't know what you're getting downvoted it is true

comment 2y ago · link · parent

Wait but the dollar has a higher exchange rate than Chinese currency as well.

comment 2y ago · link · parent

I wonder if kids on social media is going to be looked at in a hundred years like we look at kids smoking cigarettes from 100 years ago.

comment 2y ago · link · parent

Here's sort of a non-legalese take on it.

Its a bit sensational but I couldn't find anything with a nonsensational balanced take on it.

https://www.skynews.com.au/insights-and-analysis/labors-intr...

comment 2y ago · link · parent

My thoughts exactly.

What if the left has been destroying their country through unchecked spending and immigration and the right are the only people awake enough to see it?

comment 2y ago · link · parent

lawnlove.com

"Dont believe everything you read on the internet"

- Abraham Lincoln

comment 2y ago · link · parent

dogs are omnivores.

most kibble is vegetable based

comment 2y ago · link · parent

My dog has pooped in my backyard for years and nothing but thick quality grass everywhere.

probably because most kibble is vegetable based and vegetable based poop is good for the grass.

maybe you fed your dog more meat?

if your dog's poop is killing the grass you're doing something seriously wrong with its diet.

comment 2y ago · link · parent

Most dogs are extremely particular about where they poop and don't poop on concrete and asphalt if they have any other choice.

comment 2y ago · link · parent

DONT EAT THE POOP.

and you won't get that disease.

Problem solved.

And dont let your kids eat any animal poop

12345
11