“AI” is just another productivity tool, copilot let’s you remove some of the tedious patterned work you do, like writing all those asserts in Unit tests, it’s decent at guessing html structures too.
So basically it makes a developer faster, but then so do stuff like a good IDE, good plugins for your workflow, etc.
i saw somewhere an interesting take, even if AI could generate all the code for all the edge cases, you’d still need people to translate what business wants for the AI to understand properly.
Writing code is already a small part of a developers job, completely eliminating it won’t eliminate a developers job.
“So, with AI writing code for us, all we need is an unambiguous way to define, what all our business requirements are for the software, what all the edge cases are, and how it should handle them.”
.NET Core is highly multiplatform. Windows still gets preferential treatment but there are few obstacles to .NET development on Linux. It’s a nice ecosystem that’s increasingly open source. All that said, obligatory fuck Microsoft.
All this multiplatform stuff is bullshit according to my experience. The dotnet CLI is slow, files still use CRLF line ending, I also remember CLI autocompletion was not great. C# has only one working LSP server implementation that sucked ass in VS Code and Neovim. It’s kinda like Java DX, but at least with Java the DX is equally isn’t great on any OS. Maybe I like C# more than Java as a language, but I hate everything else. I also hate Java, btw.
Const keyword means constant, a value that won’t change after the application has been compiled; this allows for certain optimizations.
Let keyword is a JavaScript variable that is safely scoped down to the method or function level.
Var keyword is generally discouraged in JavaScript, because it’s a global declaration. The value of it could be available anywhere in the application, and the app might have collisions.
So, the meme is, shifting from a constant, unchanging gender, to the middle where gender is defined and scoped to a local level, to the extreme, where gender is variable globally.
In JavaScript, a const variable is an immutable constant that you cannot reassign. Similar to how many conservatives think of gender, an intrinsic fact of a person that you can only read, but never change.
The “let” keyword declares a variable in a local scope, the nearest surrounding curly braces. It can be changed in that scope, but does not exist anywhere else. I assume this is meant to concede that gender is a spectrum and your presentation can kind of wiggle, such as between “very manly” and “not as manly” but still a man. Like, a stereotypical lumberjack and a stereotypical twink are both men so there isn’t “one way to be a man” but a conservative might say " but they are still men, you can change how you present but you can’t change sex".
The “var” keyword lifts the variable definition to the top of the function, or “hoists” it up. A variable declared with var can be accessed and modified anywhere after the block it was declared in. Gender is a spectrum and it can be reassigned anywhere, at anytime, to anything.
The “var” keyword lifts the variable definition to the top of the function, or “hoists” it up. A variable declared with var can be accessed and modified anywhere after the block it was declared in. Gender is a spectrum and it can be reassigned anywhere, at anytime, to anything.
I interpret it a bit differently. After all, a variable declared with var isn’t really more capable of being rebound, or bound to more values, than one declared with let. However, it is possible, with var, that setting a variable in one place could change it unexpectedly in another, so Rose Noble coming out as trans could cause Jordan Peterson to also suddenly be a woman.
There are two kinds of “null” that are often called out as mistakes, you may be thinking of. One is the null reference, as found in languages like C and Java, which Tony Hoare, who created it for ALGOL back in the sixties, has called his “billion dollar mistake”. The other is the three-valued-logic of null in SQL, which is almost as bad.
There’s nothing wrong with “null”, necessarily, in other contexts, although I do think a more clear name for whatever it means in any given context might be better.
yeah it uses this really neat semantic rendering programming language for serving structured documents across servers
It’s a bit tricky, but anyone with at least a Masters in CompSci should be able to parse some of it enough to get the gist. Bear in mind that the “source” is abbreviated to src, and “image” similarly. The rest is coding that gives the computer instructions, you’ll also need to replace FILENAME in the code with the actual filename. It goes like this
I’m just being a silly billy it’s not directed at you.
It’s more like “ah if only there was a simple solution that could’ve been used.”
All images are hosted somewhere, I would consider an intern fresh out of college know how to correctly add an image to an email, or at least only be told once if somehow they had never seen this before.
Multi-part MIME containing inline images is actually what you’re looking for and it’s fairly easy to implement.
Here’s an example. They handwave over the html section that actually refers to the inline images that they embed, but that’s the basic layout you need.
At least with labview there’s all sorts of NI proprietary shit which makes instrumenting labview equipment slightly less torturous. Matlab is literally just expensive Python inside the world’s worst GUI and one indexing so it’s annoying to port algorithms out of it
Kotlin is the wave of the future. I still use Java, but I’m transitioning into using Kotlin for backend services. The devs are my work have been moving the app codebase to Kotlin for a couple of years (over a million lines) and it’s pretty nice. You reduce a lot of boilerplate and the code can be a bit more dense.
I don’t know if this is the proper definition but I think of boilerplate as the code that’s not directly related to business logic. An example I can think of in Java that’s a lot nicer in Kotlin is setting all the instance variables in the constructor.
The names and types of the variables are important and useful for understanding the business logic but the actual constructor definition doesn’t tell you anything if it’s just assigning the constructor parameters.
The whole one size fits all approach to projects is such a waste of time. You spend just as much maintaining it as you do actual work. Hive and those apps can kiss my derriere.
Source: I moved on from an abusive relationship with JavaScript to a healthy not-at-all-controlling equal partner relationship with Python. And four spaces makes perfect sense, once I really considered Python’s point of view…
Yes. However, The same cannot be said for every other dev on the project.
Typescript helps a lot but JS still lacks a lot of the functionality, and especially the tooling, available in other frameworks.
Going from ASP.Net Core to NestJS is like digging holes with a shovel instead of a backhoe. It feels like a huge downgrade. And then half your time is spent dealing with the incredibly finicky dev environment.
Interesting! I have built several projects entirely in TS or with react/next frontends and I enjoy the DX a lot now that I have the experience with the overwhelming breadth of options out there. It was very frustrating and overwhelming for me at first though. I found Dockerizing to help with consistency and finickiness.
Just curious, what are you missing most from asp.net core?
I did a bootcamp for Java, and lucked into a junior Android dev role, and man, I’ve really grown to love Kotlin. It really does have all the things I liked about Java, like type safety, but it’s so much more concise. It was pretty confusing at first, a lot of Kotlin is just syntactic sugar, and you kinda need to know what Kotlin is cutting out to make sense of things. But once I got into it, it just feels so much faster and expressive than Java.
I’m really happy when I see Kotlin being adopted outside of Android, like in backend services and such. But that rarely happens.
programmerhumor
Active
This magazine is from a federated server and may be incomplete. Browse more on the original instance.