Programmers hate themselves. They adopted medical testing terminology, even though their tests are the opposite. Medical tests check for presence of disease, so false positive means disease is shown when not present.
Software test check for correctness of functionality. Yet, false-positive here means test failure, when the code being tested works correctly.
[#]programming
=> More informations about this toot | View the thread
Such = 1;
Alignment = 2;
Never = 3;
Works = 4;
StopUsingIt = 5;
[#]programming
=> More informations about this toot | View the thread
If modern programming languages are so great, how come none of them can't get even close to this line of C:
int components = sscanf(version, "%u.%u", &major, &minor);
According advertisements they should be able to do this in 0.1 lines of code or less.
[#]programming #CProgramming
=> More informations about this toot | View the thread
Dogwalk thought: AI coder is a code generator, so the general codegen rules apply.
Codegen is of little value if it's one time. Best usability comes when it's an integral part of a builsystem, but that requires reliable an reproducible result. Given same request the generated code has to have identical behavior each time. The code may differ, but any behavioral differences are no-go for practical usage, even as assistant it is limited to small code chunks.
[#]programming #AI
=> More informations about this toot | View the thread
Spent nearly two day investigating slow app start, to find that it is caused of busy spins in two threads with the third one, that is supposed to do the work that will unblock the other too, is not getting CPU time, because everything runs on device that only has two active cores.
Don't do spinlocks!
Multi threading is hard, transitioning from single to multi is even harder.
[#]programming
=> More informations about this toot | View the thread
You have to be Xcode to:
[#]programming #XCode
=> More informations about this toot | View the thread
With cmd+tab switching apps on Mac, the cmd+q to quit them is not the best usability decision. Try to guess why.
[#]usability #Apple #macOS
=> More informations about this toot | View the thread
Use of operator new to create a value those type is struct is a mistake in C# IMO. It looks like creation of new object, when it isn't. When reading code using it, it isn't obvious that you are working with struct, not object.
I wonder, maybe it isn't too late yet to make "new" optional in this scenario?
[#]programming #CSharp
=> More informations about this toot | View the thread
The template method design pattern has earned my dislike. Multiple times already I've seen how eventually there is that special case that has to do things differently in such a way, that the base algorithm is no longer suitable. Good luck fixing it without breaking anything (there probably will be a child that has some expectation/workaround in it's design).
Inheritance in OOP helps until it doesn't and then you'll have hard time dealing with infinity of children.
[#]programming #oop
=> More informations about this toot | View the thread
In OOP land SOLID should be replaced by SLID.
The Open-Close principle should be abandoned. It is simply not realistic. It leads to over-engineering and eventually still fails and one has to do changes. Which are now much harder to do due to all the over-engineered stuff.
Accept the reality that thing will have to be changed and design in a way that will make it easy to do changes. Small and simple code is easier to change.
[#]programming #oop
=> More informations about this toot | View the thread
On the edge of thinking that #includes in C/C++, usings in C#, imports in Java and similar things in other languages should not compile if they are not ordered alphabetically.
Standard library may stuff may be at the top, directories in #includes is another matter, but dammit, is it that damn hard to order things?
[#]programming #rant #Cpp #CSharp #Java
=> More informations about this toot | View the thread
I keep struggling with such OOP concept as properties.
For one, it's kind of nice: like a public variable you can read and write.
For other, it is natural to use it like variable, while it is not, it's a hidden method call, you don't know what it does nor whether multiple invocations return the same thing or entirely new thing each time, etc.
Besides, relevant programming languages tend to support multiple methods with same name, so one can do without it at all.
[#]programming #CSharp
=> More informations about this toot | View the thread
C++26 gets std::erase: https://en.cppreference.com/w/cpp/container/vector/erase2
Finally!
Better late than never. Though, why std::vector only?
[#]programming #Cpp
=> More informations about this toot | View the thread
Equipment failure left my home without internet and television.
Still have internet on mobile, but discomfort is striking.
And working from home is not an option just when I need some. Hopefully it gets fixed early enough tomorrow.
=> More informations about this toot | View the thread
That moment when you realize you've just pressed an Up key on your keyboard more times than it would take to type the command you've been looking for in you terminal history. Time-wise the difference would've been even bigger.
Then there is time spent to write this toot that wouldn't have been written otherwise...
[#]programming
=> More informations about this toot | View the thread
Aaaand I've confirmed that iOS does have a bug with orientation support that under specific scenario makes app auto-rotate even though the app is portrait-only.
At Unity we go nuts about orientations - an endless source of bugs. Selfish joy we are not alone in this :)
[#]programming #iOS
=> More informations about this toot | View the thread
I think I get why developers working with Apple tech are so pleased with everything.
Been trying to make an app from scratch in Xcode and after less than one hour I'm already on brink of insanity. And they've been doing it for years!
[#]programming
=> More informations about this toot | View the thread
Reminder that browsers do have private mode. You can use that to test whether the link you are about to paste is paywalled or not.
=> More informations about this toot | View the thread
There were some internal reasons at Unity that caused many devs to stop developing new features for a while and go fix bugs. That sucked for us, but it's good news for everyone else - Unity 6 is good release, when it comes to quality. Enjoy!
[#]Unity3D #gameDev
=> More informations about this toot | View the thread
Monday is perfect day for complaints to be ignored, so here's another one, for NUnit:
Invalid signature for SetUp or TearDown method: CollectTrampolines
Thank you very much for doing all those checks and NOT telling me which one of them failed.
[#]programming #dotNET #CSharp #NUnit
=> More informations about this toot | View the thread
=> This profile with reblog | Go to aurisc4@floss.social account This content has been proxied by September (ba2dc).Proxy Information
text/gemini