Details
-
AboutEnthusiast of strict, safe, elegant and beautiful programming languages. Allergic against boilerplate. Certified hater of clown languages like JavaScript. 📱 Developer of JoyRant, the unofficial devRant iOS app that doesn’t crash.
-
SkillsSwift, SwiftUI. I have a truly large list of other skills which this margin is too narrow to contain.
-
LocationGermany
-
Github
Joined devRant on 6/30/2017
Join devRant
Do all the things like
++ or -- rants, post your own rants, comment on others' rants and build your customized dev avatar
Sign Up
Pipeless API
From the creators of devRant, Pipeless lets you power real-time personalized recommendations and activity feeds using a simple API
Learn More
-
@TrayKnots I‘m not sure what you are claiming specifically.
You wrote that…
> Legality is morality
Your first comments were clearly implying you mean there is no difference and you said that it annoys you when people talk about those as if they were different.
But then when we pointed out that they are not the same things, you retreated to a more defendable position, that the law merely evolved from morality.
And your explanations shifted to the morale being the base for or the origin of the law.
But then you get annoyed that apparently, this is obvious and it’s nit picky to talk about those differences.
Either we have a major communication problem or you are being dishonest. -
> That's the very reason we developed morality in the first place. An evolutionary adjustment as a form of proto-law to make society function.
Maybe. But then it evolved into something which isn‘t what it was before. Something related, but distinct. Different enough to have a distinct name and an own definition. -
@TrayKnots the law of defining stealing to be illegal is not because we think its wrong. It‘s because society wouldn’t work if it was legal.
It just coincides with also being immoral, for most people.
Most people think that killing someone is wrong and immoral, yet there are laws which require a person to be executed for some major crimes.
This is an example where morality and law don’t coincide. -
@TrayKnots I didn’t intent to assert or reassert. Just trying to give examples and perspectives to make you realize that you are making a mistake, imo.
While often it might seem like laws are trying to capture morality, they really aren‘t. You are reasserting this repeatedly and I try to explain why they are not.
Laws are there to make society function. This is often established by defining what is moral, but not always. Morality alone can not make a society work because there will be disagreements. We know that it cant work to dictate morality by law, so we don’t even try.
So, no. Laws are not born out of morality. -
@TrayKnots
Something like the 10 commandments are indeed supposed to define what is moral.
But in civilized countries where we don’t practice the law of the bible, the law has nothing to do with morality.
The law defines what is legal so that society can function by knowing exactly what to do when we inevitably encounter disagreements about morality (like when a crime happens). -
You are just ignoring the definitions of words, my friend.
Legality is NOT morality.
Each individual has a personal and probably unique understanding of morality.
Let‘s say you go to a different country with different laws. It means that what is legal differs from country to country. But you still have your own morality. Do you change what you think is moral by going to another country? Certainly not. So what you are saying makes no sense. -
Guten Morgen!
-
@retoor lol the name Rantii is so cute 😂
-
My bank has promised me TREE(3).
When I asked for a picture they said it would be too large. -
@retoor rant is a good default :)
-
No humor, a common result of things starting to be controlled by wokies.
-
@glowFX what is sexualized about anal? Asking for my anti spam bots…
-
@D-4got10-01 if you have a store which sells cookies with feces smeared on them, why would anyone buy those if there are also a lot of stores nearby which don’t cover their cookies in feces?
Ok, there are always a few weirdos which would enjoy fecal cookies, but not enough to make the business worth it.
Companies know that, so they don’t tell you about the feces. So when a lot of surprised cookie lovers start complaining about the feces, the companies don’t give a shit (to save it for their cookies) about it because they already took your money.
And when they start selling their next kind of cookie and realize that no one wants to buy them anymore, they blame it on cookie piracy. -
@YourMom do you mean tail recursion optimization?
Btw. how did you guys get access to my private videos?
@antigermgerm those were not meant for you but I‘m glad that you liked them. -
Maybe they already think that you are AI
-
@BordedDev
Maybe this is a bit less awkward:
let from = 3
let to = 5
str.dropFirst(from).prefix(to - from)
or…
str.prefix(to).dropFirst(from) -
@BordedDev and the four functions that I mentioned also work with any collection, not just strings.
-
@BordedDev oh, btw, here is a less ugly example which does the same:
str.dropFirst(1)
There is also
dropLast(), prefix(), and suffix()
And with that you can slice and substring your strings basically as if you were using integers -
@BordedDev
> str[str.index(str.startIndex, offsetBy: 1)...]
Yes, I already thought you mean that. Like I said, it’s not using integers to access strings by index (or ranges). It uses special string index types tailored to the specific kind of string. In most cases utf-8.
But I agree that the syntax is a bit of a pain in the butt.
> (I'm completely fine with the types being optional while writing)
That’s called type inference. -
@YourMom yeah, that happens
-
I love the modern style. Once you get used to it, the other style becomes weird.
The substring types are just for better performance and safety. If you want a string, simply put it into
String(substring)
But I agree, it can become annoying, especially with index based access.
They have special types for that to handle utf-8 properly, because it has variable length characters.
Glad that you give it a try! -
@TrayKnots at least they weren’t thinking you were hacking. Because that‘s what terminals are for, right?
-
I need an Iron Curtain. Can you help with that?
-
FYI, it works again now
-
@YourMom @retoor please don’t use the escalator. There were reports of power issues and leaking high voltage. Electrocutions might or might not have occurred.
-
@SoldierOfCode
*The smile turns into an evil grin. A lightning strikes you down* -
Ostream has cloned himself again and then erased the memory of the previous clones.
They are very confused now but still have access to devrant.
(My theory) -
Does my.devplace have a public api for access by custom clients other than the web client, which doesn’t work in all browers?
-
@kamen yeah, I’m kind of expecting that it will start to eat up too much time at some point and then I‘ll give up.
But it‘s fun until that point. -
@retoor in my case Met-Hoden
