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

Does C# still require you to write everything with classes? Would love to try it if there's option to write functional code in it.


They introduced the concept of top-level scripts a little while back - though I don't know whether its just syntactic sugar such that when it compiles down to IL everything just gets wrapped in a main class.

https://learn.microsoft.com/en-us/dotnet/csharp/fundamentals...


It's just syntactic sugar. That said, a static class with static methods is basically a namespace.


You still need to have a class to put your functions in, but they can act only as a namespace, like `Math.DivRem()`.

C# has been receiving many functional features over the years including pattern matching, composable data processing (Linq), tuples, and immutable data types. I'm looking forward to a good implementation of discriminated unions now.


"classitis" is much diminished


You know about F# right? https://dotnet.microsoft.com/en-us/languages/fsharp

https://learn.microsoft.com/en-us/dotnet/fsharp/whats-new/fs...

Dotnet has compilers for C#, VB and F# and they can all share the same frameworks and libraries. C# is the most popular.


I’ve heard it’s multiparadigm now, but I can’t yet substantiate that. Even if it is, I don’t know if it’s JavaScript-level (so functional they rewrote SICP in JS), Ruby-level (just a sprinkle of lambdas and pattern matching), or somewhere in between.

I’ll be sure to post an article once I find out. :-)


Another example how human civilization, in its present form, is generally incompatible with Earth's flora and fauna. Obviously, going back to stone-age is not a solution for us. But we certainly need to update/devise methods that do not harm anyone living creatures (or at least the sentient ones). Poor monkey had no idea what he got into and suffered a brutal death.


> we certainly need to update/devise methods that do not harm anyone living creatures (or at least the sentient ones)

Nature is brutal. I distinctly remember a hike where I stumbled on a mother bear (RIP) tearing apart a still-alive baby elk for her cubs. Human civilisation has done a lot of damage. But we might also be able to spare a lot of sentient suffering, bringing care to the biosphere and taking station as nature’s ethical guardians. Food for thought if you find yourself going full misanthrope.


Humans are far and away the most cruel species that has ever walked the face of the earth. No other species has the capacity to invent torture, using our analytical abilities to keep the victim alive indefinitely while inflicting the most vicious agonies possible (e.g. torturing the child in front of the parent).


You've not seen cats toying with their prey?


Bears with baby elks, cats with their prey, orcas playing catch with baby seals... none of them come close to what humans are capable of when they put their reasoning to work in service of inflicting agony.

Have you ever visited a museum exhibit on torture? The engineering creativity that has gone into exploiting physiology and psychology to cause unendurable, unimaginable pain is astonishing. You'll want to look away. You'll want to forget, to believe once again that cats are worse... but cats are to a first order approximation indifferent to suffering, in contrast to humans hellbent on maximizing it.

JumpCrisscross is taking a techno-optimist's perspective, but while I personally believe that humans should voluntarily seek to serve as "ethical guardians" and to minimize "sentient suffering", I don't trust them to do it. Not as individuals, since empathy is a weak force compared with first-person pain. Not as cogs within societies where inflicting pain is often a means to gaining and maintaining power.


Are you judging by the median or the extreme? I dont really see why the latter would be a reasonable way to asses species.


I'm primarily responding with skepticism to JumpCriscross about humans minimizing "sentient suffering" — which would be measured by the aggregate of total suffering inflicted by all members of a species.

The extremes contribute the most in the ledger of agonies, but I don't think they are the most relevant — rather I fault human nature for tending to produce extremes. Is it Vladimir Putin who is personally responsible for all the suffering inflicted by the Russian state, or can we say that the environment from which Putin emerged played a role?

Thanks to their reasoning abilities, humans have enormous capability to inflict violence and suffering, which is not matched by a commensurate empathy which would dissuade violence.


I think there is a tremendous amount of empathy, if one isn't blinded to it. For every person that dies a violent death, there there are thousands engaging positively with friends, family, loved ones.

If you care about sums, you must also acknowledge positive within the Russian state as well? On a given day, it also has lovers meeting, mothers nursing children, friendships.

Surely, humanity doesn't have enough empathy to dissuade violence, but that is an argument about purity, not aggregates. The typical person spends an exceedingly small amount of time engaged in violence, and this is a testament to both our empathy, intelligence, and the social systems we have built.


All those Ukrainians basking in that tremendous Russian empathy…

It only takes a moment for you or your loved ones to receive death or grievous injury, but not to worry because they’re “spending an exceedingly small amount of time engaged in violence”. Rape might be over in minutes! And besides, it only affects… how much of the population?

Those who are most confident about human righteousness are the least qualified to minimize “sentient suffering”. It is often said that one’s foes “only understand violence”, and the essential truth in that assertion is that indirect empathy is utterly insufficient compared with direct, personal pain as a motivator for changing behavior.


This is clearly a disagreement about weights. You don't seem to weigh empathy and joy very highly in comparison to violence. How much kind empathetic deeds do you think it takes to outweigh 10 minutes of violent murder? A hug? A romance? A lifetime of Love? One hundred lifetimes of kindness?

Sometimes it helps to make the context personal? How much violence would you endure for a year of kindness and love?


If Russians were sufficiently empathetic towards the suffering of Ukrainians, if they truly felt the pain of Ukrainians as keenly as if they had experienced it themselves, they wouldn't freaking invade. But since empathy is a weak force and it's human nature to not feel much about the suffering of outsiders, Russians are not dissuaded from their war of conquest.

With regards to the weight of violence: Have you considered that "10 minutes of violent murder" may mean only 10 minutes of acute agony for the deceased but years of suffering for the deceased's surviving loved ones?

The only possible answer to your thought experiment is "I don't need s1artibartfast sitting in judgment about whether my life is appropriately balanced between violence and happiness".


That is falling back to the purity tests and cynicism.

To be clear, I'm not judging your life, but challenging your claim about the forces driving human behavior, and the aggregate vale of the species.

I disagree with the idea that just because empathy doesn't prevent all violence, it is weak, or less meaningful. A bird can fly, but that doesn't mean gravity is weak.

Violence is real, and important to understand, but Empathy and good intentions are real too, and a huge part of human psychology. I would argue they are a greater driver of the two.


Yes, human "good intentions" are very, very real and a great driver of history. It is human nature to believe fervently that your own actions are just and right — to which cynicism, or at least skepticism, is the proper response.

I imagine, for example, that government officials involved in managing California water rights[1], have "good intentions" — just as good as the intentions of those in this thread offering monstrous philosophical propositions about bartering violence that trivialize its enduring damage, or the intentions of those who contemplate becoming "nature's ethical guardians" and reducing "sentient suffering".

To the extent that human social systems have evolved to reduce "sentient suffering", it has been by applying forcible restraints on such individuals, confronting them with how the consequences of their actions affect others, even when the natural human inclination is to downplay and dismiss suffering when it clashes with self-interest or "good intentions".

[1] https://news.ycombinator.com/item?id=43016248#43019903


I would also like to Orcas with baby seals to your list. Sorry.


I already brought up orcas and baby seals in a sibling comment[1], forty minutes before your response appeared. Have you grappled with my reasoning there?

[1] https://news.ycombinator.com/item?id=43035760#43064754


So you did, my mistake.


I guess you are not a cat owner


Have you seen what other animals do to each other?

The monkey was probably dead before it felt anything.


Have you seen what animals do to each other on a daily basis?


I watch Congress on CNN. Yes.


Thats what C-SPAN is for


Can't say for certain if they will be around 4-5 years down the line.


If anything, they're the jobs more likely to still be around (what those people will be doing is a different matter altogether).


> She (the Sheriff) kept mentioning how he could have been run over, or kidnapped or 'anything' could have happened,

This is weird. Is the crime so bad in the town? Even the good-for-nothing cops in my (developing) country do not come up with such nonsense.


This is American policing, I've been pulled over or even detained for just walking several times. I think it's a combination of power tripping, nothing better to do with large police forces and many vehicles, and a fundamental distrust of any transport that isn't a car. And of course the legal and moral framework that allows for random abuses of rights and an overall acceptance of a papers-please force.


Hate to ask but are you a person of color? My brown friends have been pulled over and stopped while just walking around many more times than me (plain white dude). I have been pulled over one time in my life and never so much as had more more than a “hi how are you doing?”from a cop on the street.


FWIW I had my car get totaled while I was a freshman in college and walked to it the day after. Cops stopped me 3 times on approx a 6mi walk, wouldn't leave me the fuck alone until I pulled out ID. I'm white and this was in NJ, we are not a stop and identify state. Apparently teen walking down the road with a backpack in middle of day is suspicious.

This was around 17 years ago, cant imagine how ridiculous it is now.


>cant imagine how ridiculous it is now. It can get worse.... https://news.ycombinator.com/item?id=42102609


Instead, the sheriff is going to come handcuff mom and ~kidnap~ arrest her, in front of the kids. That shouldn't harm them at all, right?

There's something missing about this story somewhere.


Apparently not knowing where your kid is IS the crime. Which is rampant in the countryside, RAMPANT!


Rampant across Europe/Japan/South America/... why would anyone not let their kids outside exploring/walking/exercising?


Many cops in the US have a massive superiority complex


Yeah, but wouldn't the sheriff making the comment be own goaling the situation. Wouldn't her scenarios imply that she's shite at her job so that crimes like these are prevalent?


No no, you see, the tremendous crime rate in the city is why voters should support giving the sheriff loads more unchecked power, and loads more money to buy MRAPs and AR-15s.


After witnessing the past decade, do you think even immediate logical contraditions matter in the least? Especially for the kind of people that think that society should be some kind of authority hierarchy, which is essentially a prerequisite of being a cop?


It's precisely that lack of awareness on their part that makes Cartman's "respect my authority" funny or any other trope as well like Tackelberry from Police Academy work (for the old farts) or Farva from Super Troopers (for those slightly less old).


Teaches the kids what the cops are about.


The busybodies don't realize that they are themselves a threat to kids' wellbeing. Nine times out of ten kids are better off with bad parents than with no parents.


They need to justify their military-level gear. If the city is nice and calm, they won’t get armored vehicles.


interesting, given that kids in Atlanta GA are REQUIRED to walk to and from school if they live a mile away.


There is no crime actually mentioned. What are the charges?


>If the state does prosecute, Patterson could face a reckless conduct charge, a $1,000 fine, and a year in jail.

From the article, apparently it's "reckless conduct"


That sounds very ambiguous. Is installing Windows XP on an internet connected PC considered reckless? Is it driving a vintage car?


Sounds about right, it's one of those charges like "obstructing justice" that is so broad the cops can throw it out when there wasn't any real crime


Thank you, I missed that. Man, it'd be interesting to see what a jury would say. What's your peer group doing?


Would that actually hold up in court?


IANAL but I doubt it. There are school districts in GA that require kids to walk up to a mile and a half each way before bussing in mandated. Additionally, no jury of your rural peers would ever agree with those charges. I am stunned myself at the lunacy. I live in a rural area and given the size of their property I assume they do as well. My next door neighbor lives almost a mile from us. Granted I don't live in GA but I can't imagine any rural sheriff being re-elected on a platform that kids can't be trusted to walk to their neighbors house or to their little town.


Unlike several other authoritarian regimes, this is very much constitutional in China. Every institution pretty much reports to the CCP.


Really? That's fantastic. In the US, three-letter government agencies work outside the scrutiny of the law.


In China, "there are no three-letter government agencies".


Congratulations! Were you default alive prior to the acquisition?


With our current growth rate and no additional hiring we would’ve been profitable in less than 12 months :)


Makes sense. A three letter US agency can very well identify the people making these calls when they can spy on Indian diplomats. I hope a request through Interpol is made.


By that reasoning even Churchill is a terrorist.


Which they would probably agree to. Purists do not care for practical matters such arbitrating what would be the best course of action in order to have the less casualties because for them the only acceptable number of casualties is zero because any war and casualty is immoral.

I have sympathy for this kind of reasoning because it's been mine for a long time. There is something important for the preservation of the self in refusing all kinds of wrong in the world. The problem is that by refusing to engage with the world, they can affect nothing (and probably accept that, everybody should just stop being immoral, that's easy in their mind)


If you include his treatment of subjects of the British Raj, there’s plenty of folks that will agree with that labeling.


Nope. India is pretty huge. There's no way they can "wipe India off" even when India doesn't retaliate.


Why are people surprised when two heavily sanctioned nations start colluding?


Join us for AI Startup School this June 16-17 in San Francisco!

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

Search: