sleeplessone

joined 11 months ago
[–] [email protected] 2 points 3 hours ago* (last edited 3 hours ago)

It's the face she makes when she gets super rowdy and starts jumping on me. She starts making these silly growling noises and tries to mouth my hand.

 
[–] [email protected] 5 points 1 day ago (1 children)

"Gadzooks!"

"Egad!"

 
[–] [email protected] 32 points 4 days ago

A jihad against the Zionist Entity is a jihad I can get behind.

[–] [email protected] 9 points 1 week ago

Gotta hit the mandatory puppygirl quota \s

[–] [email protected] 1 points 1 week ago* (last edited 1 week ago)

Oh no, not muh Tinyman Square! We authoritarians are so owned! That guy totes got squished by the tank.

You can even see it in this video.

[–] [email protected] 5 points 1 week ago (1 children)

Annnd which one of these is viewed as “good”?

None of them are viewed as much of anything because nobody ever brings them up. Yet if someone has the gall to claim that the Soviets fought (not even beat) the Nazis, fuckers like you come in to harp on about muh Muhluhtov-Ribbenslop pact.

[–] [email protected] 3 points 1 week ago (3 children)
 

A story from my day job. I submitted it to the Daily WTF. Fingers crossed that they'll accept it.


In order to facilitate development of frontend apps that rely on my employer's antediluvian monolith codebase, a team of developers at the company came up with a backend for frontend (BFF) service that would allow developers on other teams (such as mine) to quickly make frontends that use the monolith's logic and data. The service uses a schema-driven UI approach, where developers make forms by specifying the input elements (along with some related layout and validation logic, also schema-driven) using JSON schemas. This also includes specifying classes on the element for styling purposes. Who wants hot reloading when tweaking styles for a frontend app when you can instead make a JSON schema in a separate DotNET codebase that needs to be compiled (this is sarcasm)? As gross as that aspect is though, it is not today's WTF.

Right after lunchtime today, I saw a post from one of my colleagues in the team's Teams channel saying (verbatim) "I am gonna take off this afternoon. The BFF has fried my brain and I need to unwind a bit." Curious to see what he was talking about, I went to the company's BitBucket to review the PR he just made. While looking through the schema he made, I saw a strange validator he had to use:

{
    "type": "eventValueBetweenValuesValidator",
    "eventType": "CalendarYear",
    "minValue": 1900,
    "maxValue": 99,
    "isCalendarBasedMaxValue": true,
    "message": "CalendarYear must be between {% raw %}{{minValue}}{% endraw %} and {% raw %}{{maxValue}}{% endraw %}."
}

When I was reviewing the PR, I thought this was a bug. The max value is obviously lower than the min value. A closer look at the schema seems to support this idea:

  • The value for the type field implies that the value for the input must be between 2 different values, presumably minValue and maxValue

  • The eventType field value, "CalendarYear", implies that the accepted value must be, well, a calendar year

  • isCalendarBasedMaxValue being set to true suggests that maxValue should be a calendar based value (and none of our customers were born nigh 2 millennia ago)

  • The message would produce the patently absurd "CalendarYear must be between 1900 and 99."

Considering all of this, surely setting maxValue to 99 must be a bug in the validation logic. It certainly is for the logic that produces the error message. However, upon asking my teammate who paired with the dev that opened the PR, I learned that the max value is actually the number of years in the future relative to the current year. What the schema is actually saying is that valid values for the year selected must be between 1900 and 2124 (99 years after the time of this writing).

This is its correct usage. This is not a bug. It was designed to be this way. It was at that moment that my mind also melted.

I couldn't come up with something more counterintuitive if I tried.

[–] [email protected] 7 points 2 weeks ago (1 children)

Regarding the markdown point for lemmy-ui, I think part of the issue is that we don't use a markdown parser tailored to our purposes. We use markdown-it, and our custom (non-common mark, so stuff like the spoiler blocks) stuff uses plugins for it like this one. One of these days I'd like to make a markdown parser specifically for Lemmy.

[–] [email protected] 13 points 2 weeks ago

Chilling in the morning before I start my day job.

[–] [email protected] 14 points 2 weeks ago

I get a chuckle out of the "Tankie Triad" talking point some people keep using. It sounds like a villain organization from a Saturday morning cartoon.

[–] [email protected] 3 points 2 weeks ago

Yes, it's the commies who are the naive ones. \s

[–] [email protected] 3 points 2 weeks ago (1 children)

I do use blame and reflog though.

I keep reading ref-log as re-flog.

 

You have been visited by the catfish of good fortune. Many upvotes and new users will be bestowed upon you, but only if you reply "happy fedding" to her message.

 
 
 

Saud dust

 
 
view more: next ›