[ad_1]
5450 points, 388 comments.
[ad_2]
Humor | ReportWire publishes the latest breaking U.S. and world news, trending topics and developing stories from around globe.

[ad_1]
Matt inherited some C# code that reads from a JSON config file.
public ServerJsonLoader(string configFile)
{
using (StreamReader reader = File.OpenText(configFile))
{
JObject config = ...
if (config.GetValue("inputs") != null)
{
this.mixedConfig = config;
var inputs = ...
if (config.GetValue("outputs") != null)
{
var outputs = ...
}
}
else
{
if(config.GetValue("inputs") != null)
this.serverConfig = config;
if (config.GetValue("outputs") != null)
this.clientConfig = config;
}
}
}
We open the file as a stream, and then hand it off to a JObject, which handles the parsing for us. Then, if it has a value "inputs", we store the config as mixedConfig, and handle the inputs. Then, if it also has "outputs", we also process the outputs.
If we don’t have an "inputs", we go down the else path, where we check: if we have "inputs", we store the config in serverConfig, and if we have "outputs", we store the config in clientConfig.
It pains me to say that this convoluted logic isn’t useless. It may not even be wrong. In the case where there are no "inputs", but there are "outputs", we’ll store the config in clientConfig.
What we have here is a terrible way to write a simple concept: if we have only outputs, we must be a client. I suspect that they once wanted it to also be true that if you had only inputs, you were a server. And if you had both, you were “mixed”. Then, something changed about their rules or their config, and the server-only configuration became a little vestigial branch off this chain of ifs, never to be executed again.
[ad_2]
Remy Porter
Source link

[ad_1]
The Department of Transportation ordered Southwest to pay $140 million in fines for its operational failure over the 2022 holidays that stranded more than 2 million passengers, with DOT secretary Pete Buttigeig saying, “This is about the entire industry, sending a signal that you should not be cutting corners.” What do you think?
“Let this be a warning to any other multibillion-dollar company that can easily absorb a nominal fine.”
Lance Guaracci, Patio Consultant
“I’m eager to see how these fines are passed on to passengers.”
Ken Villamarzo, Restaurateur
“But I count on Southwest to ensure I don’t see my family over the holidays.”
Amanda VanSickle, Cat Kenneler
[ad_2]

[ad_1]
“My senior picture. When my friends asked me what the deal was, I said, ‘I liked to lift weights in high school, and my dad was a photographer. That’s all I got, I honestly have no memory of doing it.’”
(submitted by Jason)
The post Lifting With Lasers appeared first on AwkwardFamilyPhotos.com.
[ad_2]
Team Awkward
Source link

[ad_1]
“Glamour shots at Zellers in the mid nineties. My sister kept blinking when they took the photo so they told her to keep her eyes open.”
(submitted by IG @spaghetti_policy)
The post Wear & Stare appeared first on AwkwardFamilyPhotos.com.
[ad_2]
Team Awkward
Source link

[ad_1]
“This photo was one pose in a series of shots my family had taken in about 1981. The photographer told the rest of my family to just stare at me while I tried to look dignified.”
(submitted by Ben)
The post Here’s Looking At You, Kid appeared first on AwkwardFamilyPhotos.com.
[ad_2]
Team Awkward
Source link

[ad_1]
Impressive as these achievements are, they are only the latest in a long line of awards for Luckovich. He was a runner-up for the Pulitzer in 1987 before garnering the 1995 win. In 1989, he won the Overseas Press Club’s award for the “Best Cartoons on Foreign Affairs for 1989,” and in 1991, he was awarded the National Headliners award for editorial cartoonists. In 1994, a Luckovich cartoon was selected by voters in a Newsweek magazine poll as one of the four best editorial cartoons of the year.
After freelancing and selling life insurance to make ends meet following his graduation from the University of Washington in 1982, Luckovich landed his first cartooning job at the Greenville News in South Carolina. After nine months at the News, Luckovich was hired by The Times-Picayune in New Orleans, where he stayed for four years before moving on to Atlanta.
Luckovich’s cartoons, syndicated nationally by Creators Syndicate, appear in more than 350 daily publications, including The Washington Post,The San Diego Union-Tribune, The Denver Post, Newsday, New York Post, The Cleveland Plain-Dealer, The Dallas Morning News, the Boston Globe, the Seattle Times, the Los Angeles Times, the Chicago Tribune, the Nashville Tennessean and the Houston Chronicle, and are reprinted regularly in Time, Newsweek and the New York Times.
Luckovich and his wife, Margo, have four children. His hobbies include exercising and collecting unique ties.
[ad_2]
Mike Luckovich
Source link

[ad_1]
If you have internet access and enjoy using social media, chances are you are familiar with the term “Karen”, and just reading the name will probably trigger some sort of deep-rooted anger in you.
For those who don’t know, a Karen is slang referring to a middle-class white woman who is perceived as entitled or demanding beyond the scope of what is normal. To give an example, Karens are often associated with the kind of person who demands to “speak to the manager” to belittle the service industry.
Stereotypically sporting an asymmetric bob haircut with chunky highlights, Karens are also commonly associated with behaviors that stem from privilege, resulting in racist bias, such as calling the police when they see a person of color walking in their neighborhood.
Image credits: booking
Image credits: karensbrighton
In other words, Karens aren’t likable figures, and have sparked many memes on the internet in recent years.
Nevertheless, a business has somewhat managed to profit from the despicable behavior Karens are infamous for, with the opening of Karen’s Hotel.
There, guests are able to experience verbal abuse, bad manners and public ridicule after a date at Karen’s Diner, before taking a probably very stressful nap at Karen’s Hotel.
Image credits: karensbrighton
Image credits: karensdinerofficial
@mica__young Besties @karensdinerofficial #karensdiner #grandmasoftiktok ♬ original sound – micayoung
Following their viral restaurant chain Karen’s Diner, renowned for serving a serious attitude, the Australian-American firm behind the concept have partnered with The Hadley Hotel in Barnet, North London, UK to launch Karen’s Hotel.
The hotel promises “an absurdly fun experience” where guests will be greeted by “rude hotel staff and waiters” before being taken to a room where they’ll “never know what they will find”.
Image credits: Eddie Hall The Beast
Image credits: Eddie Hall The Beast
According to its official website, the Karen’s Hotel and diner experience includes the room for your stay, your meal at Karen’s diner (drinks not included), and your breakfast the next morning.
Prices start at £179 ($228 USD) for the package for two people per room. “Please note that your booking is not confirmed until we call you and F’ing confirm it, and for the love of Karen, don’t ask to speak to the manager,” the website further states.
Eddie Hall – better known as The Beast and former World’s Strongest Man – decided to take his young son Max along for a night away at the questionable stay, vlogging his experience for his YouTube channel.
Image credits: Eddie Hall The Beast
Image credits: Eddie Hall The Beast
In the video, Eddie revealed that he had not informed his son that this was a Karen’s Hotel, thus surprising Max with the brutal encounter.
After less than 24 hours in the place, Eddie dubbed it the “craziest overnight challenge he has done”, as per Unilad.
The father and son were first seen walking into the establishment’s reception and politely asked to check in. They were subsequently greeted by a sour-faced receptionist who asked them: “What do you want? Are you going to tell me your name? How many are staying?”
Image credits: Eddie Hall The Beast
The receptionist went on to hilariously ask Eddie if his 10-year-old son was his “pet sperm?” before showing them to their room and adding: “Do you need any help with your bags? Ah, that’s a shame. Carry them yourself.”
After giggling at the receptionist’s unhinged behavior, Eddie and Max went on to walk into their room only to find one of the hotel’s staff members lounging around their unmade bed watching Squid Game.
Another employee was seen emerging from the toilet. “This is where we take our breaks, but you know, you’re here now, so,” one of the Karens angrily admitted.
Further into the video, the dad and son realized that their pillows were just filled with styrofoam, while the TV was stuck in a foreign language.
Later on, Eddie was forced to sing Let It Go on karaoke at 10:30 pm, before being disturbed again at 2 am by music blasting outside in the corridor.
The stressed father was then woken up at 7:30 am with a megaphone and a glass of water over his face. He went on to admit: “We got what we paid for, didn’t we? The hotel was nice, food was nice, the service was absolutely f***ing awful, I’ll give them that.”
[ad_2]
Donata Leskauskaite
Source link

[ad_1]
“My sister and her three kids live 2,000 miles away from my family and me. They wanted to make a gift for my mom, their Nana.”
(submitted by IG @amanda_deang)
The post Hands On appeared first on AwkwardFamilyPhotos.com.
[ad_2]
Team Awkward
Source link

[ad_1]
“This picture is from 1991. Going to the Indy 500 parade. People actually offered my husband money for his pants.”
(submitted by Heidi)
The post Check Mate appeared first on AwkwardFamilyPhotos.com.
[ad_2]
Team Awkward
Source link

[ad_1]
“Me and my two sisters at an Olan Mills studio in Stone Mountain, Georgia in 1976. My mom was trying to get a surprise photo for a Christmas gift for my dad. I think there was a better option, but this was the one they went with. Obviously, we all chose outfits to match our personal style.”
(submitted by IG @sanctuaryphotographyalaska)
The post Spirit Of ’76 appeared first on AwkwardFamilyPhotos.com.
[ad_2]
Team Awkward
Source link

[ad_1]
“I was a big baby and my dad had this great idea of making me look like a monster on my birth announcement.”
(submitted by IG @makispring)
The post Baby Attacks! appeared first on AwkwardFamilyPhotos.com.
[ad_2]
Team Awkward
Source link

[ad_1]
“This was me in first grade. My mom convinced me to cut my hair ‘like Demi Moore in Ghost.’”
(submitted IG @baybeesh)
The post Ghosted appeared first on AwkwardFamilyPhotos.com.
[ad_2]
Team Awkward
Source link

[ad_1]
“This is my oldest brother. When he came to the States , his first obsession was rock & roll, followed by big hair.”
(submitted by Rosa)
The post Higher Ground appeared first on AwkwardFamilyPhotos.com.
[ad_2]
Team Awkward
Source link

[ad_1]
“This is a picture of my baptism. My mom thought it would be great to have a little extra entertainment so two of her friends dressed up as clowns. They used whatever my mom had in her house. I think that’s my moms red shirt and red pants. If you look closely, it looks like the clown on the right has blood on his checkered scarf…”
(submitted by Paola)
[ad_2]
Team Awkward
Source link

[ad_1]
Whenever your friends tell you: “Don’t worry, you’ll find someone! There are plenty of fish in the sea.” Just reply: “Sure there are. Sadly most of them look like this.” And then crawl into your bed and cry yourself to sleep.
The post When Friends Say: “There Are Plenty Of Fish In The Sea” first appeared on Crazy Funny Pictures.
[ad_2]
liver
Source link

[ad_1]
This Sisyphus meme shows what happens when you don’t listen at school and spend all your time looking at dumb TikTok dances instead.
The post Sisyphus Meme: Are You Familiar With Syphilis? first appeared on Crazy Funny Pictures.
[ad_2]
liver
Source link

[ad_1]
Benjamin doesn’t have a lot of complaints about the project he works on. “There is,” he writes, “no tale of daily woe.” But even an otherwise healthy project isn’t immune to WTFs.
BOOL CCache::CalculateBmpImageSize(SIZE BackgroundControl, SIZE& NewImageSize)
{
BOOL bRes = TRUE;
try
{
NewImageSize = BackgroundControl;
}
catch(...)
{
bRes = FALSE;
}
return bRes;
}
In this C++ code, SIZE is a struct containing width and height. This function, then, is just handling an assignment: copying the size of BackgroundControl into NewImageSize, which is helpfully passed as a reference.
This is an operation that isn’t going to throw an exception, and if for some reason this operation fails, mere exception handling isn’t going to recover the program. And then there’s the entire “take structured exception handling and turn it back into return codes,” which is also likely not the best choice.
“Who knows,” Benjamin writes, “maybe tomorrow this assingment will need to be replaced by a complex mathematical equation.” That, or I suspect that the developer responsible for this got burned by overloaded operators in the past, and has become overly cautious about them.
Sometimes a cigar is just a cigar, but sometimes an = is actually a complex operation written by a developer who wanted to be “clever”.
[ad_2]
Remy Porter
Source link

[ad_1]
Making the decision to see a therapist is hard enough. Digesting the information and advice that they give you, and using it to better yourself is something different altogether. It’s always a process, and it definitely doesn’t happen overnight.
As harsh as some of these may sound, therapists are usually spot-on when it comes to pointing out things that we ourselves maybe can’t (or don’t want to) see.
[ad_2]
Zach Nading
Source link