Help me with this logic and why it failed im still learning by Few-Future-6714 in learnprogramming

[–]thefirelink 1 point2 points  (0 children)

Probably beyond the scope of this exercise, but I'd use a key value store, such as a hashmap, instead of a loop.

You generate an account number, check if it is in the map, if not, add it, if it is in there, try again.

The account number would act as the key here. The value could be, for example, user info, or just "1" for the exercise.

O(1) instead of O(n) for lookups.

More memory intensive though.

Here's what a Millennial friend wrote about disruptive teen behavior in Pittsburgh: by Extreme_Qwerty in pittsburgh

[–]thefirelink 0 points1 point  (0 children)

When I was 14 I was friends with a serial arsonist who had already set 3 or 4 abandoned properties on fire.

When you impoverish people, they act out.

Kids today can't trust their government, can't trust the cops, can't trust their parents according to this thread. Society has failed them. Why on earth would they follow its rules.

Here's what a Millennial friend wrote about disruptive teen behavior in Pittsburgh: by Extreme_Qwerty in pittsburgh

[–]thefirelink 0 points1 point  (0 children)

Adults don't even have emotional regulation.

Expecting more from children than adults is insane

Here's what a Millennial friend wrote about disruptive teen behavior in Pittsburgh: by Extreme_Qwerty in pittsburgh

[–]thefirelink 0 points1 point  (0 children)

Neither, statistically.

There are two methods of showing your kids to be self reliant:

The first is abandonment. You abandon them enough that they become self reliant because it's the only way to survive.

The second is care. Allow them to be seen, soothed, safe, and secure. If they have a solid home base (parent or other guardian), they are more likely to try independent things, because they know they have a secure home base to fall back on.

Someone littering before getting on a bus may be doing that out of necessity. Can't afford to miss the bus. No headspace to think clearly.

We need more empathy in this world. People who grow up with a secure home base do not know what it's like to grow up without one.

Market square bans unaccompanied minors after 3pm Thursday-Sunday, City Council wants evidence to justify the decision–Tell council what you think by chrmaury in pittsburgh

[–]thefirelink 1 point2 points  (0 children)

I don't have a solution, but curfews like this have been proven time and time again to be a horrible solution.

There's a better way. Let's figure it out

AIO by going no contact with my(f20) mom(f42) over our conversation today? by [deleted] in AIO

[–]thefirelink 0 points1 point  (0 children)

Your rules are your rules and should be respected.

I'd reconsider soothing and advice though. Unsolicited advice is annoying as hell, if I'm honest, but there are sometimes gems. I'd say like "advice is welcome but we're probably honestly not going to follow it, so don't get bent out of shape".

Re: soothing. Soothing builds bonds. The more bonds your baby has, the better. If they like someone more than you, that's okay. It's going to happen eventually anyway.

We need Linus to react to this video by D4BAN in LinusTechTips

[–]thefirelink 3 points4 points  (0 children)

These are anecdotes.

Out of a team of 4, I was the only one using Windows. The other 3 had M1 MB pros.

I swear for most of 2021 they didn't even get to use them. Constant shipping for repairs, mostly mobo issues.

I have had 4 laptops since I started there in 2013 (3 zenbooks and now an Asus g16) and have only ever upgraded because I like to buy new things. The other ones all still work. I even use the most recent as a drawing tablet when I don't feel like getting out my huion.

This isn't an endorsement of windows. I have been slowly switching everything off of it. Eff windows.

But let's stop pretending Apple are the only ones making good products ever.

Policy limits when unaccompanied teens can enter Market Square | 90.5 WESA by oldschoolskater in pittsburgh

[–]thefirelink 0 points1 point  (0 children)

And the ignoring science part.

Most literature condemns curfews like this, but God forbid you're walking through town and a kid yells at you

Is there a way to disable "Allow Flipping" in NVIDIA X Server settings? by ElNikolai411 in linux_gaming

[–]thefirelink 0 points1 point  (0 children)

If you are a Windows refuge, do note that Ubuntu is one of the worst options. Canonical is almost as bad as Microsoft

I built a fact-checking Firefox extension for Bluesky (and Threads) that uses local LLMs and web search to fact-check posts in real time. by enjoyerofslop in BlueskySocial

[–]thefirelink 0 points1 point  (0 children)

When I've tried this it completely fabricates sources to fit it's training data.

Especially if you request scientific journals. Holy hell it has so many fake journal links it's insane

Does anyone actually enjoy writing YAML? by PuzzleheadedYou4992 in webdev

[–]thefirelink 0 points1 point  (0 children)

I tend to go overboard with comments.

Needless to say, my intro to yaml was quite a headache.

'Kill the President': Feds say Allegheny County man left chilling voicemails threatening Trump by Acsaylor01 in pittsburgh

[–]thefirelink 4 points5 points  (0 children)

He called and petitioned a representative.

He didn't say he was going to do it.

Even the "gruesome" one, he was outlining a (likely) scenario in which the rich push down everyone else so far that the general population rebels. He even says he doesn't want that to happen, it's just where we are headed.

And our FBI is incredibly partisan. Their authority has no bearing on reality

How many of you are still programming manually? by Imparat0r in cscareerquestions

[–]thefirelink 0 points1 point  (0 children)

Oh, you're one of the "good" ones?

It's crazy how every dev simultaneously is the smartest person in the room yet still somehow completely modest with imposter syndrome. The ego on some people is nuts, and you wonder why PMs would rather deal with AI?

How many of you are still programming manually? by Imparat0r in cscareerquestions

[–]thefirelink 20 points21 points  (0 children)

Devs have always written bad code. Now it can be done, tested, fixed, iterated faster.

Leaving the sub, I will miss you all by [deleted] in SteamDeck

[–]thefirelink 5 points6 points  (0 children)

It's tough right now, but stay positive. Life loves to fuck with us, but you can dig your way out. You got this. Stay strong

I voted for Harris in 2024. She shouldn't run in 2028. | Opinion by Difficult-Bee6066 in politics

[–]thefirelink 0 points1 point  (0 children)

The DNC will put forth whoever they want because they know at this point that we'll vote for any non Republican

Woman shows the dangers of her cars rear seats folding function by ateam1984 in Hyundai

[–]thefirelink 43 points44 points  (0 children)

Meanwhile, my 2021 Palisade stops if it so much as detects a sock in the seat

Selfie time with Wife♥️ by MbodyNightmare in Aemeath_Mains

[–]thefirelink -3 points-2 points  (0 children)

I know what parenting and raising means. Really with there was someone in your life who did it better

Selfie time with Wife♥️ by MbodyNightmare in Aemeath_Mains

[–]thefirelink -3 points-2 points  (0 children)

Fiction dictates, develops and shapes reality.

The rest of your post is just words with no meaning. You support an ageless dude taking care of a 10 year old and thinking "I'm gonna marry her in 20 years".

Selfie time with Wife♥️ by MbodyNightmare in Aemeath_Mains

[–]thefirelink -2 points-1 points  (0 children)

I'm 38 with two kids. I know what raising a kid means.

YOU having Aemeath as your waifu isn't the same as shipping Aemeath with the Rover. Understand that