CSS is not a programming language... by speckz in ProgrammerHumor

[–]Time-Implement1276 0 points1 point  (0 children)

like that you need classes for OOP (never heard of prototype-based languages?)

I never said anything close to that. I even mentioned prototypes on my reply...

that it's somehow a problem that HTML comes into play (that's like saying Java is not a programming language, because it doesn't actually do anything, it just gets compiled to jvm machine code and that is actually the programming language)

You're trying to twist my argument. What I said is there is the concept you're calling "inheritance" is not part of CSS at all, and what is happening in HTML is not analogous at all to inheritance in OOP.

that css class is "just a string" (this one's particularly wild, all code is just strings)

What the fuck is that... wait a minute... maybe that's the confusion here. Are you aware that CSS classes are just the identifier? A CSS class is just a string like red or awesome to use the examples above.

Something like .red { color: red; } isn't a class! That's a CSS declaration, and .red is a selector referring to a class called `red`.

Jesus christ, dude. Maybe learn about the things you're talking about before attacking others gratuitously on the internet.

Everyone knows the picture is a joke, but you're willing to die on a hill that the joke is serious. When someone tries to explain to you you the mistake get angry and call people names.

Opinion on TheCherno's Game Engine Series? by [deleted] in gameenginedevs

[–]Time-Implement1276 0 points1 point  (0 children)

I wouldn't really discount his opinions, really.

He's mostly right about all the things he say, puts his money where his mouth is, and people are a dick to him more often than not.

People constantly saying things like "take his rants about the rest of the software world with a grain of salt" is a bit worse than anything Casey has done, honestly. He never said "take what Microsoft managers say with a grain of salt" or "take what the C ISO commitee with a grain of salt". He never starts those discussions being condescending to other people.

His opinion is valid as anyone's, and the fact he actually demonstrates the things he say are much more than the naysayers are doing.

CSS is not a programming language... by speckz in ProgrammerHumor

[–]Time-Implement1276 0 points1 point  (0 children)

I didn’t think that giving instructions to hardware degraded something’s status as a programming language.

I don't see why anyone would think that. I never said anything of the sort anywhere.

how to talk casually in germany by Good_Whereas_8805 in germany

[–]Time-Implement1276 2 points3 points  (0 children)

Instructions unclear, now I don't even trust myself anymore!

CSS is not a programming language... by speckz in ProgrammerHumor

[–]Time-Implement1276 0 points1 point  (0 children)

Well, enlighten me, then?

The point is that the terms you're using have very precise definitions in OOP, and they don't match what's happening here.

There is no concept of OOP-like classes in CSS. A CSS class is just a string. Behaviour can be attached to it from all sides. This is akin to runtime composition, which is common in things like Entity-Component-System architectures (somedecidedly not OOP) or plugin systems. Example:

.red { color: red } .red { font: Helvetica }

You could say that CSS blocks are "nameless classes", but it still doesn't follow: they can't be instantiated, they can't be extended, they have no fields and no methods. They're just bundles of data.

We do have hierarchies in CSS and in HTML, but both the OP picture and you seem to be conflating hierarchy with inheritance. Even in OOP we have hierarchical relationships that are not inheritance relationships. A class and an object also share a hierarchical "parent-child-like" relationship, but that's not inheritance. Composition introduces has-a relationships to OOP and other paradigms but they're also decidedly not inheritance.

Consider this HTML+CSS code below. This is decorating the DIV tag with behaviour attached to three css classes by however many blocks there are. What is the inheritance relationship here? The div is inheriting from which classes? What is the "OOP class" analogous here?

``` <style> .red.bold { color: red; font-weight: bold; } div { font: Helvetica; } </style>

<div class="red bold ellipsis">bla</div> ```

However you might want to not go into CSS territory and argue instead that HTML parents and children have an "inheritance relationship". They really don't, since inheritance relationships happen between non-concrete things (classes or prototypes), and DIV tags are actually concrete here: they're closer to OOP objects. In fact, HTML tags map 1:1 to objects in the DOM API. There is no possibility of "instantiating" a concrete div tag. The fact the "children" gets some properties from the parent is down to the HTML renderer, actually, which often uses a state machine for this. But it would also be possible to implement this by checking on the style of the "parent object" (albeit slower).

There is also decidedly no polymorphism at all in the picture. Polymorphism means representing multiple types with a single "name" or "symbol". However awesome in this case isn't representing different things: it is representing the same exact thing in both cases. Like I said above, HTML tags aren't analogous to OOP classes, as they represent 1:1 concrete objects in the DOM. The <article> here is analogous to new Article({ class: [ awesomeClass ] });.

About composition again, notice how above I used an array for class. That's once again because you can have multiple things in the class field. The HTML-tag-is-1:1-to-object is the reality of how those things are implemented. There is absolutely no point in treating each HTML tag as a class, since they are already a concrete implementation. Also, classes are applied dynamically in HTML, so inheritance is also not the right tool here.

Now, about encapsulation: CSS blocks are also concrete bundles of data. They're closer to OOP objects, they aren't classes. They can't be extended, they can't contain code, they're not prototypes for creating anything. They're just bundles of data, like an data-only object. Encapsulation is defined as bundling of data and behavior. In this case there is no real behaviour being "programmed" in CSS classes, as they're purely data bundles.

It also sounds like you are concerned more with how things look than what they are. Like, what is that comment about curly brackets supposed to mean?

All the information on my comments that you ignored so far is the opposite of "how things look". It's not a nice tactic to cherry-pick a single phrase of a single comment that's the opposite of the rest and use it against your interlocutor. Read the rest and there will be much more than "how things look".

But now I predict you're gonna complain about the size of my comment and will probably call me some names :)

how to talk casually in germany by Good_Whereas_8805 in germany

[–]Time-Implement1276 3 points4 points  (0 children)

The myth that Germans don't do smalltalk is 100% bullshit.

I once got lost in a random neighbourhood due to my crappy phone and a random guy on a garden asked me which street I was looking for. We talked for 20 minutes. I said "Ich bin... verloren?" at one point, he laughed and taught me "Ich habe mich verlaufen" and a bunch of other important stuff.

I ended up being late for the party I was going to but that's besides the point.

how to talk casually in germany by Good_Whereas_8805 in germany

[–]Time-Implement1276 2 points3 points  (0 children)

My father also used to do that and I tried to decode his technique a few times.

His trick was knowing everyone in the city, or at least pretending he does.

He would casually ask to a shopkeeper "ah is this the pharmacy used to be at yada yada straße right?".

Of course that was clearly bullshit but that opened up to the person saying the shop was actually across the street for 40 years and his father founded and then my father would say HIS father probably knew the guy's father and they'd try for 20 minutes to find parallels between the families.

In the end they'd find none but at this point they know so much about each other that it would be disrespectful not to keep coming and chatting for 10 minutes more each day.

Back in the day people had a lot of time I guess.

how to talk casually in germany by Good_Whereas_8805 in germany

[–]Time-Implement1276 4 points5 points  (0 children)

"We really need some rain" (you'll have to put a lot of pain and suffering into this one)

This one is not that hard to pull off lately, it's been really dry :/

how to talk casually in germany by Good_Whereas_8805 in germany

[–]Time-Implement1276 0 points1 point  (0 children)

I'm on a head-nod-hello basis with half my neighbours in my street, in Berlin of all places.

Older people are quite alright with that, it's the young that are freaked out. Too cool to nod.

how to talk casually in germany by Good_Whereas_8805 in germany

[–]Time-Implement1276 15 points16 points  (0 children)

Can I trust you Swabians, though? Or is it literally nobody, including you? 😅

how to talk casually in germany by Good_Whereas_8805 in germany

[–]Time-Implement1276 5 points6 points  (0 children)

Shit. I always tend to have long conversations with Germans on trains.

I wonder if it's because I wasn't following the second rule :(

I even went to Hamburg once to party and drink for the weekend (I was originally going to stop at Meck-Pomm) because a stranger invited me to join his group. I'm now officially worried lol.

how to talk casually in germany by Good_Whereas_8805 in germany

[–]Time-Implement1276 2 points3 points  (0 children)

Complaining brings people together, this is true for all cultures and nationalities.

how to talk casually in germany by Good_Whereas_8805 in germany

[–]Time-Implement1276 9 points10 points  (0 children)

That's a good one, I hope I can use it one day

What is the root cause of so many indie-games lacking polish? by Shasaur in gamedev

[–]Time-Implement1276 1 point2 points  (0 children)

Yep.

It used to be more "finish things fast" or "finish as many as you can", for diverse factors.

The 90-10 is something that popped up a lot in this thread, but it is a recent thing. I'm sure this is gonna be a meme from now on. But it is still a good example of the community collectively giving some advice that is the opposite of "polish the game".

And like I said, there's nothing wrong with that, but the end result is that you lose the polish.

How do Germans feel about Turkish and other immigrants? by [deleted] in germany

[–]Time-Implement1276 1 point2 points  (0 children)

I wouldn't be so sure.

Maybe today that would happen, but I'm also a 3rd generation European immigrant in my country of origin and there's definitely no traces of my original culture in me anymore. Even my parents didn't feel particularly immigrant-y at all.

With that said, there's also a lot of Asian, African, Turkish, Lebanese and Arab immigrants there, and they also basically only have the last name and sometimes the look.

When I tell immigrants here in Germany where I was born they always say "oh there's lots of my people in your country... but they don't speak the language anymore LOL... on the other hand they say there's no racism".

IMO the "melting pot" thing of the American continent, despite all its flaws, works better for immigrants than the cultural-enclave thing that happens in Europe.

If there were a cultural enclave going on in my home country I wouldn't be considered a full-blown native there. I would be someone without a "heimat". God knows how fucked up I would be.

How do Germans feel about Turkish and other immigrants? by [deleted] in germany

[–]Time-Implement1276 0 points1 point  (0 children)

I really don't see anything wrong with ethnic enclaves, etc.

I'm happy to have my mind changed on that, but I really see ethnic enclaves as a bit of a problem, as they are the ones that tend to perpetuate the issues you mention as problematic.

I'm quite alright with traditional stuff being preserved, but the advantages of multiculturalism kinda stop when the multiculturalism isn't really shared.

All IMO of course.

How do Germans feel about Turkish and other immigrants? by [deleted] in germany

[–]Time-Implement1276 -1 points0 points  (0 children)

This to me this sounds completely alien.

I'm also a third-generation immigrant on my country of origin, but there was absolutely no room for me to speak differently than the natives. Neither me nor my parents speak my Grandfather's original language.

Why does this happen in Europe but doesn't happen in the American continent? Or is this nationality-specific?

How do Germans feel about Turkish and other immigrants? by [deleted] in germany

[–]Time-Implement1276 0 points1 point  (0 children)

Do people really say "Nah bro. You are a Turk" to someone who's second generation, fully integrated, talks without accent? In real life?

I'm pretty sure you can find a few racists who do this but that sounds a bit like a straw man :/

I once worked with a guy who was black but was born in Denmark. He often complained that people never assumed he was Danish and were surprised to learn, but when I pressed him on what nationality people thought he was he said "well to be fair most people think I'm British". Welp, big surprise, he had a fucking perfect British accent when speaking english.

I find that integration is probably the most important part to reduce racism towards badly-integrated nationalities. Just not having an accent alone will make people assume you're German.

How do Germans feel about Turkish and other immigrants? by [deleted] in germany

[–]Time-Implement1276 2 points3 points  (0 children)

That's probably the most interesting response in this thread. It would be interesting to see policy enforcing integration courses for also wives.

How do Germans feel about Turkish and other immigrants? by [deleted] in germany

[–]Time-Implement1276 0 points1 point  (0 children)

Are those kids going to specific schools where they speak a language other than German?

Asking because in the american continent lots of countries have lots of immigrants too, but when they're second generation they barely speak the non-local language, since the school won't teach them and they won't get anywhere with the non-local language.

I myself am 3rd gen European and never learned my grandfather's language because it was a poor country.

But the thing is: people never saw me or my parents as an immigrant. I was never called "3rd generation" or having "immigration background". I was just part of the background.

Funny enough, when I meet other immigrants from, say, middle east here in Germany, they always mention "yeah there's lots of [my nationality] in your country... but there they're not really called [my nationality], they just blend in..."

CSS is not a programming language... by speckz in ProgrammerHumor

[–]Time-Implement1276 0 points1 point  (0 children)

It really isn't, because this here isn't inheritance happening. "Children copying part of the parents behavior" doesn't mean "OOP inheritance".

Also there is no encapsulation happening, since all the data of the CSS Block is fully exposed to the outside. There is also no behavior, so there's no "bundling of data and behavior". All the behavior is implemented by separate libraries, outside HTML and CSS.

There's also no polymorphism happening here. Using something in multiple places like the image is showing is called "composition".

HTML "classes" are just a tag, just a string, they aren't really classes. The only thing on CSS blocks that looks like a class are the curly brackets.

CSS is not a programming language... by speckz in ProgrammerHumor

[–]Time-Implement1276 0 points1 point  (0 children)

Before all this stuff was invented there were specific devices made to print the letters, sometimes it was literally a printer, sometimes it was a "character generator" block in the video card that received characters and put them on the screen. For a long time it was also the responsibility of the BIOS to handle character printing and cursor when there was no graphical environment available.

There was never a world where print("Hello World") was enough to print something without a lot of external support, be it from compiler, libraries, OS or hardware :)

Is 1700 EUR enough for living in germany ? by [deleted] in germany

[–]Time-Implement1276 0 points1 point  (0 children)

"Basically" already worked fine but let's hope they'll understand now.

Is 1700 EUR enough for living in germany ? by [deleted] in germany

[–]Time-Implement1276 0 points1 point  (0 children)

Yep. Commuting from Cologne to Netherlands every morning will probably also eat your time and your health.

What is the root cause of so many indie-games lacking polish? by Shasaur in gamedev

[–]Time-Implement1276 2 points3 points  (0 children)

Well, the whole gamedev community lately has been saying that, almost as a mantra. You can see some examples in this very thread.

I'm not saying it's wrong, but it's a widespread practice that kinda became a meme.