Join devRant
Do all the things like
++ or -- rants, post your own rants, comment on others' rants and build your customized dev avatar
Sign Up
Pipeless API

From the creators of devRant, Pipeless lets you power real-time personalized recommendations and activity feeds using a simple API
Learn More
Feed
All
Post Types
- Rants
- Jokes/Memes
- Questions
- Collabs
- devRant
- Random
- Undefined
Cancel
All
-
Well, dR just disappeared for a bit but glad it's back, but I can see that recent rants are gone (because I was trying to catch up on missing rants)
https://devrant.molodetz.nl/Screens...2 -
I'm trying really hard to like Swift but every time I open the hood on this bird, it takes a shit on my windshield.
For example:
struct ContentView: View {
var body: some View {
let kFontPointSize = 25.0
var theFont: Font = .system( size: kFontPointSize )
theFont = .custom("Helvetica", size: kFontPointSize )
Text("Hello, World!")
.padding(.horizontal, 20.0)
.font( theFont )
}
}
... in spite of how wonderfully self documenting (🐂💩) Swift is, that dirty bird converts the 'var' to a 'let' and "theFont" cannot be reassigned after declaration.
3 things:
1. invisibly converting the 'var' to a 'let' and not indicating 'var' can't be used... really?! Suppose to just "know" these obscure inconsistencies? (sloppy design)
2. then the error Xcode presents on "theFont = ..." line is : "Type '()' cannot conform to 'View'"!? How about "can't use a 'var' here"? God forbid it should make sense. (sloppy design)
3. "var" means variable and "let" means letstant? If you are going to use "var", better use "const", or be consistent and use "set" and "let" instead of "var" and "let" (sloppy inconsistency)
4. and ".horizontal", who owns that? Self documenting?. It is owned Edge Set aka Edge.Set.horizontal and effectively a "global".
5. And reading the Swift coder's mind... No, you should NEVER NEVER NEVER use "25" as a constant literal passed like .system( size: 25 ). (magic numbers not aloud)
Have all best engineering practices been simply tossed out the window? Rule #1 in software "engineering": Globals are BAD. Corollary: magic numbers earn you a one-legged A on your project.
I am so incredibly disappointed in the Swift community right now. Swift designers are honestly earning a "script kiddy" badge of dishonor.6 -
asphalt is the only 99.9% recycleable construction material. When they need to renew an asphalt road, they just scrape it off, reheat it and lay it right back on. Bitumen that glues rock content together gets melted, essentially making what's indistinguishable from brand new asphalt.2
-
I think I'm now a tabs person, it's the only character where the width can be easily adjusted for different devs without changing the underlying file's data24
-
TIL: mechanical click of a touchpad is now managed by os in new lenovos. Suspend os and you can no longer click your touchpad.
Not tap. Click.
Wtf..6 -
My boss published someones resume online to make fun of it because it was handwritten. He at least blurred out that persons name but not the past jobs & other info...
It took me 30 minutes on linkedin to find the person that I believe it is.
Isn't this a GDPR violation lol6 -
Week: 93 (Year 1 )
The weekend is here. Planned already?
Question: What are the signs your body tells you that you shouldn't ignore?
last Weekend : https://devrant.com/rants/1748983516 -
Found this ancient, forgotten task that was basically a QOL improvement.
Given that the feature would shorten the time of testing from some 10-15 minutes to 2, I left a comment mentioning that it would be immensely helpful.
!too long after, the report started seeing some traffic && the feature got actually implemented.
Checked the implementation as soon as I could.
- Speedup worked well regardless of platform.
- Slowdown /* which was never actually mentioned in the task as it wasn't crucial */ was also implemented, but the mobile phones were omitted, since the implementation would be too complex for the time allowed for the feature implementation. I was perfectly fine w/ it, as this wasn't actually necessary for those.
I left a proper comment, thanking for the feature implementation.
...then the lead tester chimes in, bitching about the lack of implementation of the slowdown on mobiles.
Got the same explanation as I mentioned earlier - too complex for the time allowed. Plus, the feature had other platforms in mind. Having it working on mobiles was just gravy.
Good call, lead, now - ask for another favor.
I'm sure it'll go well, since you can't be satisfied w/ getting what you need. You need that special pampering, too.
/s2 -
In my company I now have 3 browsers.
Chrome for company stuff that only works in Chrome.
Safari for company stuff that only works in Edge or Safari.
And Firefox for actual work.
🤡30 -
So while on vacation there was this party boat doing roundtrips on the lake. Apparantly someone ordered pizza to it. Like, damn! How did they manage to time it right and get the pizza place to actually understand what they wanted with the music on blast.1
-
Everything development related I see recently are related to LLMs and I’m starting to get sick of it :(3
-
If anyone needs a casual game that's not long, and that you can play after you put the kids to bed, I recommend Neva. It's a fun, indie, left-to-right platformer.
My full review: https://battlepenguin.com/gaming/...3 -
I collect my fingernails to glue them together with transparent epoxy into very cursed micarta and use it on my diy kinfe's handle.
You don't want to know what the blade was quenched in.7 -
My wife went to do some work for a charity. They "got her the best computer available". It was a poor mangled MacBook whose better days were somewhere in the dawn of the last decade.
She tries to type anything... and only gibberish appears on screen.
She comes to me, absolutely me puzzled. I try to type anything... gibberish. I boot up in safe mode, everything is OK.
I look around for system configs... there is a custom keyboard mapping enabled by default.
We check the weird stains on the keyboard... they are regular and in all keys. Like if there used to be adhesive stickers on the keys, and those stickers were later removed.
I boot up again... and type "q". It becomes "a". I type "w". It becomes "b". I dread typing "e". Sure as bug, it becomes "c".
By the love of byte, someone asked for a custom keyboard layout... IN FUCKING ALPHABETICAL ORDER.
It was easy enough to change the layout after that, but the weirdness continues: my wife asked around, and apparently the laptop used to belong to some old dude... who was convinced there were characters missing from his keyboard. Apparently he could never find them in a regular QWERTY layout.
I wish I could give some encouraging words for the kid who came up with the solution. Working around technophobes is a drying art, that needs to be rewarded.10 -
Anyone ever tried Embedded Swift?
I should have posted this as a joke but, guess what Apple does NOT use when developing Embedded Swift stuff for their Secure Enclave firmware...
Yep, they don't use Xcode! 🤣🤣🤣🤣
(ok, I know, not surprising, but love the irony!)12 -
What I’d give for a modern version of gladiator fights. And no, not to watch people die. The belief that they massacred themselves in the arenas is hollywood propaganda. Many fighters werent even slaves. And had pretty high status3