C# is what you get when someone looks at Java and says “but what if we actually added functional programming elements to it instead of forcing the OOP Kool-Aid on all our users?”
It’s full of random functional features spanning from pattern matching to discriminated union types. It also has a lot of really random stuff that nobody asked for, like LINQ syntax.
On the other hand, Java took a different approach. They were so insistent on forcing OOP on their users that the users made a rich ecosystem of functional languages on the JVM out of spite, like Scala, Kotlin, and Groovy.
These days, Java has been a bit more progressive with their feature set, but C# is far better if you’re looking for functional features.
C# is what you get when someone looks at Java and says “but what if we actually added functional programming elements to it instead of forcing the OOP Kool-Aid on all our users?”
Java has had lambdas and functional APIs for over a decade now, since Java 8.
Yes. They are so similar that I think you can actually write bits of code that compile in either. Whether they are meaningful bits or not, I don’t know. I spent a few months preparing to migrate a whole Java environment to C# and eventually just noped out and found a new Java position.
I’m so fucking glad not to be doing full stack any more. I hate UI so much. And my experience with UI developers has been they are far too hacky and undisciplined about good coding and testing practices. There have been exceptions, though.
The sad part about crafting UI is having to put megabytes of tracking, analytics, ad integration and chatbot slop on top of it. I really enjoyed writing front end once, but it was soul-crushing to destroy your own work with business requirements.
I’ve used ui testing frameworks before for with react. I think Cucumber if I remember right? It’s certainly possible, but the whole web front end ecosystem just seems so wild-westy. It’s not what is technically possible, it’s just that the vast majority of it has minimal CI/CD pipelines and this wild expectation that because they can take 5 minutes to change an interface, that it shouldn’t take the back end two weeks to implement, validate, get approvals, and then deploy. So I get three requests for “tiny tweaks” a week and each one resets the counter to zero.
Maybe that’s an overly specific complaint to a team I’ve been working with lately, but on the other end I’ve worked places that will not let you use font size 1em, and instead require class=font-size-4 or whatever ridiculous bullshit that just complicates things while not solving what it’s purporting to solve.
Literally a global font-size-4 is only useful if corporate decides that every web page should have larger or smaller text without regard to testing individual apps… they just invented font size except with indirection. Ugh. And then there is the pixel- and color-bitching.
I just hate UI. Not UI itself but the development process.
Oh yeah I feel that. I love writing plain old school html js css. The only sore point is no such thing as html includes, but you can easily configure nginx to allow those special comments that include other html files.
The reason it’s so wild west is because of frameworks. Even react is a needless abstraction in my eyes; it tries to fight the technology and make a website into something it’s not designed to do. It kind of works, but because of all that jank it’s not really a mature or stable technology and never will be. Pile on 9999 other “frameworks” like failwind and bootshit and it gets messy real fast.
I remember one time I got a call from the CEO that one of the buttons was 1.5 pixels more spacing to the left than to the right, and the font on some settings page was 0.1 point too big. I was like how did you even see that. They used a literal ruler on their monitor 😂 that’s beyond micromanagement
I love web development but I would never work in that industry again. Not unless it’s on my terms
C# is Microsofts version of Java, no?
C# is what you get when someone looks at Java and says “but what if we actually added functional programming elements to it instead of forcing the OOP Kool-Aid on all our users?”
It’s full of random functional features spanning from pattern matching to discriminated union types. It also has a lot of really random stuff that nobody asked for, like LINQ syntax.
On the other hand, Java took a different approach. They were so insistent on forcing OOP on their users that the users made a rich ecosystem of functional languages on the JVM out of spite, like Scala, Kotlin, and Groovy.
These days, Java has been a bit more progressive with their feature set, but C# is far better if you’re looking for functional features.
Java has had lambdas and functional APIs for over a decade now, since Java 8.
Why does writing Java code still feel like rolling my own wheelchair uphill both ways with a broken arm then?
There’s more to functional programming than lambdas. Even C++ has closures, but that doesn’t make C++ a functional language.
Yes. They are so similar that I think you can actually write bits of code that compile in either. Whether they are meaningful bits or not, I don’t know. I spent a few months preparing to migrate a whole Java environment to C# and eventually just noped out and found a new Java position.
I hate that the majority of my coding background is C#, Java, Apex, then C# again. Also, if I want something to run on mobile, Java.
I’m so fucking glad not to be doing full stack any more. I hate UI so much. And my experience with UI developers has been they are far too hacky and undisciplined about good coding and testing practices. There have been exceptions, though.
The sad part about crafting UI is having to put megabytes of tracking, analytics, ad integration and chatbot slop on top of it. I really enjoyed writing front end once, but it was soul-crushing to destroy your own work with business requirements.
The UI part isn’t so bad, it’s just that a lot of the principles are based off print page layouts and graphic principles.
The other part is that JavaScript is a fucking mess, so you get all kinds of dumb edge cases.
But it’s fun and satisfying to implement something interactive that anyone can use.
Good luck writing good tests for your GUI 😂 maybe if you use Cypress or something but it’s so extremely fragile it’s cheaper to pay QA to test for you
I’ve used ui testing frameworks before for with react. I think Cucumber if I remember right? It’s certainly possible, but the whole web front end ecosystem just seems so wild-westy. It’s not what is technically possible, it’s just that the vast majority of it has minimal CI/CD pipelines and this wild expectation that because they can take 5 minutes to change an interface, that it shouldn’t take the back end two weeks to implement, validate, get approvals, and then deploy. So I get three requests for “tiny tweaks” a week and each one resets the counter to zero.
Maybe that’s an overly specific complaint to a team I’ve been working with lately, but on the other end I’ve worked places that will not let you use font size 1em, and instead require class=font-size-4 or whatever ridiculous bullshit that just complicates things while not solving what it’s purporting to solve.
Literally a global font-size-4 is only useful if corporate decides that every web page should have larger or smaller text without regard to testing individual apps… they just invented font size except with indirection. Ugh. And then there is the pixel- and color-bitching.
I just hate UI. Not UI itself but the development process.
Oh yeah I feel that. I love writing plain old school html js css. The only sore point is no such thing as html includes, but you can easily configure nginx to allow those special comments that include other html files.
The reason it’s so wild west is because of frameworks. Even react is a needless abstraction in my eyes; it tries to fight the technology and make a website into something it’s not designed to do. It kind of works, but because of all that jank it’s not really a mature or stable technology and never will be. Pile on 9999 other “frameworks” like failwind and bootshit and it gets messy real fast.
I remember one time I got a call from the CEO that one of the buttons was 1.5 pixels more spacing to the left than to the right, and the font on some settings page was 0.1 point too big. I was like how did you even see that. They used a literal ruler on their monitor 😂 that’s beyond micromanagement
I love web development but I would never work in that industry again. Not unless it’s on my terms