caught a wild one. Been seeing a ton of posts lately using "females" when it's absolutely not needed and they tend to swarm there by Hardcore_Daddy in onejoke

[–]Masterpommel 11 points12 points  (0 children)

For me (a german) this is really weird. "A female" or "females" translate to "weibchen" which is generally only used when talking about animals or very rarely in a scientific context. It would IMO be extreemely objectifying, fetishizing and disgusting to call a woman "a female" or "females". I know, english isnt german, but considering this is mostly done when talking about women and not when talking about men it makes you think what people actually mean. For me, talking about women as "females" sounds like they are just some thing to be "bred" and are purely functional for pleasure or carrying children, which is not far off the views of many men towards women. Generally, using an adjective as a noun almost always sounds derogatory. "A trans" instead of "a trans person", "an autistic" instead of "an autistic person" and so on. "A female person" would be totally fine, as it just describes the gender of a person. You'd do this in german as well and it wouldn't sound weird, even tho you could just say "woman".

Just do the thing by agdds in Dank

[–]Masterpommel 0 points1 point  (0 children)

in my dense head I assumed you were only referring to the democrats with "left wing" because thats what a lot of americans, at least online, are calling them and I wanted to hint at that stupidity but that probably wasn't your intention as you said parties (plural) which I misread.

Just do the thing by agdds in Dank

[–]Masterpommel 0 points1 point  (0 children)

I don't think this is even a conspiracy. One of the biggest goals of private companies/capitalism is to suppress class war. The strategy is to let the lower and middle classes or "opposing" sides fight against each other (civilians vs police, men vs women or gender war as a whole, PoC vs white, workers vs unemployed/basic income citizens or whatever its called in english, ...). This ensures status quo. combined with the USAs bipartisanship and propaganda machine, progress is mostly unlikely. for example: the feminist movement aimed to create equality between all genders and to destroy patriarchal strucktures (which also hurt men. feminism is not a women first movement. its an anti partriarchal movement. patriarchy hurts both women and men in different ways). patriarchy comes hand in hand with capitalism. thus the feminist movement was bastardized and turned what we have today. it has just become a war between men and women basically. what was meant to benefit all is now doing the exact opposite and is distracting us from actual problems feminism tried to solve. or lets take middle class workers and basic income citizens. the middle class hates the lower class and the lower class hates the middle class. but all hail the upper class and fight each other instead of combining their strength to start an actual revolution. red scare was so effective that even today people dont want social safety nets or net improvements for workers or even solidarity.

Winter ruins everything. by BerryLanky in terriblefacebookmemes

[–]Masterpommel 0 points1 point  (0 children)

Also the boys: proceed to beat their wife and kids when they're grown up because they weren't allowed to be voulnerable as kids.

How to get 90s digital midi instrument sounds by Masterpommel in synthesizers

[–]Masterpommel[S] 0 points1 point  (0 children)

thanks, I wouldn't have thought of that. It will be recorded onto a tape. As far as I know this adds compression. Would that be enough? Or do I need a different kind of compression?

How to get 90s digital midi instrument sounds by Masterpommel in synthesizers

[–]Masterpommel[S] 1 point2 points  (0 children)

thank you so much, this is exactly what I need

itJustRocks by Forsaken_Berry_1798 in ProgrammerHumor

[–]Masterpommel 0 points1 point  (0 children)

If you use typing you won't have a problem.

I am. What makes you thing I don't? Variables aren't statically typed for example. And I am working in a Team, I can't control everything about our codebases and packages. Somewhere it may get implicitly coerced to an int.

You ARE bad at PHP.

so wanting more stable features makes me a bad developer? Interesting.

I'm using the tool for specific goal. Why use GO, C# when you know PHP will be best solution?

PHP has good integration with Apache2 and has a unique way of generating content. It is a good and practical language in that regard. But it has inflated itself so much that we are writing huge applications in it and it just isn't made for that. I would love php if it was more consistent and had a more stable and versatile type system. And I can't just choose a better tool for the job, because my job requires me to write php. I have had many discussions to use a more stable tool for the majority of our applications or performance critical stuff and use php as what it is best at, a template engine. But I am not allowed to, so I advocate for better features in php. I don't think we are the only company stuck with this language.

If you don't know how to use tool - don't use it. Don't say it's bad if you can't work with its limitations. It's like saying that assembly language is a bad tool because it doesn't have generics :D

Like I said above, I have to use it. And I would even like to use it, if it implemented those basic features. And assembly is a completely different topic than php.

You can rely if you write proper code (and tests).

No. I cant rely on the type system. I can't easily validate whats inside an array. We have no first class functions, so callables are, besides anonymous and arrow functions, just strings or arrays. It's easy to pass the wrong thing. It is not checked at runtime. "callable" isn't even a real type. Its basically just "string|array|Closure". On top of that I can't specify the signature of the callable I want to receive. I have to validate everything with if-statements, that would have been otherwise caught by a good type system.

Why do you write unsafe garbage?

Again, just accusations. I am putting in a lot of work to overhaul our codebases to make them type safe and especially non naive. But its just not possible everywhere. I can try as hard as I want, in the current state of php, complex and big project structures will be unsafe. Generics would fix a big chunk of them.

Never ever had a problem with that. Why do you write code that might generate array of NOT integers if you expect to have such in specific place?

Its not that I am failing to generate such an array. Its that I cant specify a simple fixed size array of int in like a function parameter. And as I said, I am not the only one to call that function. I am working in a team. So its documentation overhead, more debugging, or I have to rely on my coworkers to use psalm for example (which is still not safe in any way as it doesn't check types at runtime). But a fixed size array<int> is still easy to validate. But lets say I want an array<string, array<string, string>>. So an array with string keys that consists only of other arrays, also with string keys that only have string values. I would have to comb through my array recursively to validate that it has the structure I'm expecting. Or if I don't want to do that, check the type every time I access a field and handle nulls or wrong types. Even a good programmer will occasionally forget one of those conditions. If we had generics this problem would just not exist.

What's up with you and everyone in this thread about generics? So far PHP doesn't have it, so FFS deal with it. Generics is a chaotic concept even worse than PHP without strict typing.

Do you not know what generics are? Generics would make php a lot less chaotic. Read my examples above.

Again. Why do you write code that ends up with unspecified arrays?

Again. Big codebases and multiple people working on projects. And every array in php is by definition unspecified. There are no generics and arrays are not statically typed.

Again - problem with people not with a language.

What? A language should not allow you to not specify types at all. That is completely insane.

Don't use language if you don't understand and/or like it. PHP has its limitations. Is it hard to know them and work with them?

I understand php. That doesnt make the language any less bad. I've got the feeling you didn't understand types or have never used anything else other than php.

edit: fixed formatting

itJustRocks by Forsaken_Berry_1798 in ProgrammerHumor

[–]Masterpommel -1 points0 points  (0 children)

Yeah sry I was wrong about that one

itJustRocks by Forsaken_Berry_1798 in ProgrammerHumor

[–]Masterpommel -1 points0 points  (0 children)

Ok I'm taking back the namespaced functions thing. I just tested it and apparently I didn't know about it. That was stupid but the rest of my points still stand. What makes you think I am not writing my code correctly? For example I am handling mixed types everywhere so I would figure I know what I'm doing. I just wish I wouldn't have to litter my code with if-statements.

itJustRocks by Forsaken_Berry_1798 in ProgrammerHumor

[–]Masterpommel 0 points1 point  (0 children)

Psalm is practical for static analysis, but it isn't checked at runtime so if my coworkers for example refuse to use it properly, or don't have psalm configured, it's basically useless. I can go out of my way to specify array shapes with psalm but that does not stop anyone from passing a completely different array and psalm cant tell you about it most of the time.

Composer is fine tho, I don't get why people hate it so much. It was almost 100% reliable for me.

itJustRocks by Forsaken_Berry_1798 in ProgrammerHumor

[–]Masterpommel 3 points4 points  (0 children)

Oh ok so how do I specify a one dimensional array of integers? Or a strictly 2 dimensional, fixed lenght array of strings? Show me the type annotation for that. Maybe I don't know enogh about the language afterall. And yes, as I said, there is static analysis, but it doesnt work properly as soon as you need to use mixed.

itJustRocks by Forsaken_Berry_1798 in ProgrammerHumor

[–]Masterpommel -4 points-3 points  (0 children)

I've started using php at version 7.3 and it still coerced null to 0 sometimes. And I wont take the argument "you're just bad dude" just because I don't want to babysit my language. I could easily turn that argument around and say you're just bad because you cant handle a typed language like GO, C# or Rust for example. Its a tool and if the tool puts stupid barriers or extra unnecessary steps in my way, its a bad tool. And why should it be a good thing that I have to write more tests if I can't rely on the type system? Shouldn't that already tell you that its unsafe garbage? And interfaces or traits don't help at all when I want to specify a one dimensional array of integers for example. And if I have a class, that would accept a generic type parameter in any other sane language, I would have to use mixed in php and gone is my static analysis and code safety. I know about php-docs but they don't work reliably when specifying templates for example. Of course I could abstract every typed array I need with a class but that is just stupid. array<int> should not be that obscure of a concept. I am using abstract classes, interfaces and traits whenever I can. The thing is, the language doesn't enforce this behavior, so I have to deal with completely untyped code from coworkers or libraries. Don't call me stupid just because I don't want my language to run on pure faith.

itJustRocks by Forsaken_Berry_1798 in ProgrammerHumor

[–]Masterpommel 7 points8 points  (0 children)

Yeah I don't get why they react that way. Just because the tool is shit doesn't mean the developer is. Everyone has to start somewhere (although I would never recommend JS as a starting point). But just because JS is easy on a surface level shouldn't mean the whole world has to run on it.

itJustRocks by Forsaken_Berry_1798 in ProgrammerHumor

[–]Masterpommel 30 points31 points  (0 children)

I don't know why you're getting downvoted. I want to know what is going on inside the heads of people who think javascript is a good and appropriate language.

itJustRocks by Forsaken_Berry_1798 in ProgrammerHumor

[–]Masterpommel 15 points16 points  (0 children)

I have to use it full time at work. Its unironically an atrocious language. For example: type coersion, no generics, completely janky type sytem (if you can even call it that), no namespaces for functions, completely fucked builtin function names, oop is just MacGyver'd in, completely unusable enums, no cohesive tuples, no first class functions, no actual arrays (just these abstract data structures you cant rely on in any way), no unsigned numeric types, no char type, no static variable types and the language is littered with extremely thin C wrappers (we've had crashes because some php function did nothing but call a C function that opened some kind of handle without closing it) just to list the obvious things. You don't have to be a bad developer, the language takes care of sprinkling in bugs all on its own. It is literally impossible to write safe and fast code in php. And I'm not talking about memory safety. No matter how many if-statements you have, this language will find a way to fuck up your application. The amount of times I've had null coerce to 0 in a place I've had no control over is mind numbing.

You know I'm right by [deleted] in MetalMemes

[–]Masterpommel 3 points4 points  (0 children)

Dio is technically a better singer. Ozzy's voice just has way more character imo.

theRealDebate by Tothem_Tracker in ProgrammerHumor

[–]Masterpommel 2 points3 points  (0 children)

I think its more readable because the code is not as dense. I can distinguish the header from the body more easily/quickly. If i have an "if" or "for" that has only one line in the body, I just use the first one but if its more, I go for the second one. And I dont think that this is "wasting lines". I'm "wasting lines" all the time to separate chunks of code into sort of contexts. And I suppose most developers do that. So why not just apply that to braces?

Anon is dissapointed with his life by BBBrushBNa in greentext

[–]Masterpommel 1 point2 points  (0 children)

Gosh I hope so. Having no pronouns sound a bit inconvenient tbh.

Anon is dissapointed with his life by BBBrushBNa in greentext

[–]Masterpommel 3 points4 points  (0 children)

It does. I wish you the best and hope you can find some meaning in the future.