Without going into too much detail, my thesis was criticised for developing a web service with C++. I It was questioned why I didn't use #NodeJS or #Java for the web service. "It's not performance critical" said the professor.
Dude, have you used the internet lately?
EVERYTHING is performance critical!
This sort of teaching explains why most aps/websites run like absolute dogshit.
⭐ What programming language do you use most of your life? Why exactly?
Most of my time I worked with almost the entire .Net stack, and in recent years it's Unity, so my language is C#
There were episodes in my life with mobile, many web stuff, java, c++, databases, etc.
Ya know the more I reflect on the languages I know the more I realize that outside of functional languages none of them really handle immutability well.
Consider that you want most of your objects to be immutable most of the time. Thats all well and good till you realize you want to be able to edit the objects in such a way that it creates duplicates that have some data changed but are likewise immutable.
This tends to stop working, almost entierly, once you get into subclassing. If you parent class has a method that returns a copy of itself with some data modified, this will break in children classes, since you want children classes to return instances of itself, not its parent.
Its not that you cant fix that, but the code gets very ugly very quickly. Generally you are forced to let the code handling the classes do the copying and editing itself, but that is pretty ugly too.
I have had this pattern problem in almost every OO language i messed with, Java, Ruby, Python, etc.
I regularly use and love #Typescript. I used to use #Python the most – it’s what I learned in and I am more interested in backends than frontends. I also am regularly using and really enjoying #Kotlin (so much better than #Java). But truly Typescript is bae.
#Julia is a joy to work with. Very much like Python but more powerful. If it had the library support Python or #JVM has I would probably prefer to use Julia for backends.
But Typescript really changed the game and now that’s probably my favorite language not just because of the language itself but because it has web dominance. Until I can write #WASM with Python or Kotlin or Rust, and I’m building #web applications, TS is my lingua franca.
This article is all about how things are looking great for hiring Laravel devs in 2024, and I’m not seeing it.
I’ve been job-searching for 3 months, and very, very, very few of those jobs are decent-paying #PHP / #Laravel jobs. Sure, PHP/Laravel jobs exist, but most (anecdotally) pay far less than the rate others are willing to pay for #Golang, #Python, #Rust, #Elixir, #Java, #Csharp, and #TypeScript developers.
The industry does not value the output of PHP developers.
I'm slowly progressing with my #Java#SpringBoot project, which I started to learn how to use the framework. But I'm a bit worried about #EclipseIDE eating most of my 8 GBs of RAM each time I run the project. It's a very simple one so far... Does a Spring project really need to use so much resources (this never happened, not even close, with "vanilla" Java), or is Eclipse having a memory leak?
Probably, an unpopular opinion, but hear me out: Java needs developer tools that are lightweight and built with native performance in mind. The existing ecosystem is solid, but slow and inefficient.
We can start with a simple formatter built in Rust, which takes nanoseconds to format your codebase, and does it relentlessly, without relying on you giving it any configuration options at all. Think, gofmt, rustfmt, Ruff’s Black-compatible formatter, etc.
It was surprisingly easy to port all my custom fish and git config to home manager. The next big thing I need to figure out is how to manage multiple java versions and assign their directory to environment vars. Currently using @asdf_vm but it doesn‘t seem to work on @nixos_org. #linux#nixos#homemanager#java#fishshell#git#asdfvm#shell#dotfiles
Going through a #Python course and finding it interesting that the instructor recommends using double quotation marks for strings (instead of single) because “it’s the most popular form of quotes across all programming languages.”
Yes, I’m brushing up on my Python and #Java right now, for job-searching reasons.
Tales from the jar side: JVM Weekly is great, AI tools for Java devs, Spring office hours, and the usual assortment of toots and skeets, by @kenkousen #Java#AI#GPT#midjourney#spring
I do not, in principle, hate the concept of checked exceptions that #java uses. It's standard type theory: an "exception" is just saying "this type can return an error that looks like so." It's not my favorite pattern, but I don't hate it.
But I despise how it is used in practice in the JDK, especially in the older corners of the JDK.
#introduction
GREETINGS MORTALS AND ALL FEDIVERSE OWNERS
I'm Codixer, also known as Stefano or u/TCOOfficiall. I am the owner of the @Enshittification server and hope to bring a whole new community to the Mastodon space for everyone to enjoy!
I code, do systems administration and enjoy working on projects like this Mastodon instance. If you have any questions, feel free to DM me!
I enjoy working with #linux and #java and explore a multitude of OS projects.
I'm playing with #python just now (never done anything serious in it) and I had setup my #java environment recently as well (playing with different options for a linux/windows GUI that didn't need different code for each).
I saw a language speed comparison chart that listed a formula used to calculate Pi to a given accuracy. It showed a 10x difference in speed in favor of Java.
As a little end of work day jolly I thought I'd recreate that on my local machine and see.
I wasn't familiar with the formula so I used #chatgpt to get the formula. That took some clarification to get the correct formula out, but it got there in the end ( -1 to the power and not -1 times).
I wrote the Python version first, and then wrote the same thing in Java.
Running the test I came up with a 5x difference in Javas favor (24s for Python, 5s for Java).