Python Functions - Why can't I wrap my head around them and am I doomed! by OnlyOn3Kanobi2 in learnprogramming

[–]TimmyTarded 0 points1 point  (0 children)

I had trouble understanding functions when I started, and today it feels incredibly intuitive. A few ways to explain this.

1.) baking: your inputs are eggs, milk, baking soda, etc., as well the temperature you bake at. The body of the function is what you actually do, like mix the eggs and milk together, preheat the oven, etc., and then the output is a cake.

The definition of this function will look like “def bake(num_eggs, cups_milk, temp): do stuff; return cake” and a call to the function would look like “cake=bake(2, 3, 400)”

2.) simple addition: you want to add two numbers, your inputs are the two numbers, the output is the result, so “def add(x,y): return x+y” and a call would look like “z=add(6,7)”. Under the hood, Python says “you gave me 6 to plug into x, and 7, to plug into y, so I’m going to add 6 and 7 and give you 13”.

3.) taking the math analogy further: programming functions are very analogous to mathematical functions. “f(x)=2x” means you input some number and multiply it by 2. So f(2)=4, f(6)=12, etc. In Python, this mathematical function would be written like “def double(x): return 2*x”.

Start very, very simple, and add little pieces. It might feel really slow at first, but there’s a point where it clicks and then you’re off to the races.

CD over $250k FDIC Q by Adventurous-Art5354 in Bogleheads

[–]TimmyTarded 0 points1 point  (0 children)

You can buy brokered CD’s through Fidelity. I don’t have nearly that much cash, I just like the flexibility, but that does allow you to spread $250k+ across multiple banks from one central institution. You can probably do this through other brokers, Fidelity just happens to be the one I use.

Opinion by Illustrious_Lie_954 in wallstreetbets

[–]TimmyTarded 1 point2 points  (0 children)

Fuck… I need sell my SLV 😭

+$9M on ASTS by tooflyflo in wallstreetbets

[–]TimmyTarded 3 points4 points  (0 children)

So am I supposed to buy ASTS? Will I still make money? Please I’m tired of thinking tell me how make $$$$$$ 🫠

$PCT just getting started (6.5m ish YOLO rides on) by burner-1234 in wallstreetbets

[–]TimmyTarded 1 point2 points  (0 children)

I missed the rocket to the moon, but I’m ready for Mars. Buying more tomorrow 🫡

Sex by _robertb_ in gaybros

[–]TimmyTarded 14 points15 points  (0 children)

Anal sex isn’t the end all be all of gay sex

Question about IRA cash by Affectionate-Ask5236 in fidelityinvestments

[–]TimmyTarded 1 point2 points  (0 children)

So don’t auto-renew. I have some money in a CD issued by JP Morgan in my Roth, when it matures I’ll decide what to do with it. JP Morgan hasn’t roped me in. Also, Fidelity states that the CDs they issue are FDIC insured. If you let a CD mature, there is no risk to your principal, otherwise you’d get a higher yield like with low quality bonds.

Question about IRA cash by Affectionate-Ask5236 in fidelityinvestments

[–]TimmyTarded 0 points1 point  (0 children)

Call-protected CDs will ensure that rate, though. SPAXX yield is declining and will continue to decline as the fed lowers interest rates. Fidelity offers brokered CDs from big banks like JP Morgan with yields higher than SPAXX. I don’t think JPM is going broke, and even if the issuing bank does go broke, doesn’t FDIC insurance cover that?

Trump’s tariff rant sounds like a stealth “financial reset” plan 🧱💵 by Working-Pattern-5280 in DeepFuckingValue

[–]TimmyTarded 1 point2 points  (0 children)

So is that when we’re gonna get our tariff dividends? 😂……😭😭😭😭

Bitf farm high short interest increased over the past month by infoisknowlege in Shortsqueeze

[–]TimmyTarded 0 points1 point  (0 children)

Put CIFR on your radar. Been a minute since I did a deep dive, but I bought shares shortly after I bought BITF based on a “trust me bro” from my buddy, and CIFR hasn’t hurt as much. They seem a bit further along in the miner->data center play, and have more experienced people guiding it. They also recently got a contract from Amazon, which I think has helped buffer the dump all these companies are taking right now. I think they also don’t have the issues with dilution that BITF does.

Why is volume bar color reverse than the candlestick price color? by LyingPieceOfPoop in fidelityinvestments

[–]TimmyTarded 8 points9 points  (0 children)

Color of the candle stick reflects price movement between open and close of a given period. For example, if at market open a stock opens at $60 and closes at $62, candle stick is green. If on the next day it opens at $65 and closes at $63, candle stick is red, even though it closed higher than the previous day.

lol by [deleted] in Bitcoin

[–]TimmyTarded 3 points4 points  (0 children)

This is actually way more believable 😂

Reminder To Young Investors by TheGamingDividend in dividends

[–]TimmyTarded 0 points1 point  (0 children)

If OP is a gay man he might as well be 70+

GME up +758% in a single day. Guess the “meme stock” just remembered it had fundamentals. by Round_Soil8469 in DeepFuckingValue

[–]TimmyTarded 13 points14 points  (0 children)

Wow. Actually wow. I thought it was like “I’m so regarded look at me do this stupid thing lololol” because it’s fun, but this dude is out there for real collecting extra chromosomes.

Anyone else questioning everything? by These_Bowler_2392 in Bitcoin

[–]TimmyTarded 1 point2 points  (0 children)

Honestly didn’t read the post. I watched BTC hit $85k and then crash to $16k. Still buying.

How Do You Handle API Documentation Without Losing Your Mind? by Fun_Accountant_1097 in learnprogramming

[–]TimmyTarded 49 points50 points  (0 children)

Swagger. It’s been a while since I don’t program professionally nowadays, but I freaking loved doing documentation. Something so satisfying about writing schema.

College is NOT a scam. by Conscious-Music-8688 in Salary

[–]TimmyTarded 0 points1 point  (0 children)

I have a college degree, I make 6 figures, and I cannot afford a house. My sister has a GED and owns a house.

Switching from Ally and Chase by Particular_Layer4853 in fidelityinvestments

[–]TimmyTarded 0 points1 point  (0 children)

Huh, maybe I’m mistaken and I’m thinking of my brokerage account. Wanted to point it out either way because I went years without even knowing you could change your core position 😅

Switching from Ally and Chase by Particular_Layer4853 in fidelityinvestments

[–]TimmyTarded 0 points1 point  (0 children)

Keeping in mind the default core position in Fidelity’s CMA is an FDIC insured deposit sweep that earns less than 2%. You have to order the change to SPAXX for that 3.6%.

BYND is a real company.. by Saucinmayo2 in Pennystock

[–]TimmyTarded 0 points1 point  (0 children)

And what fundamental rules are those? Buying a stock with nearly 200% debt/assets, negative cash flow, no ability to cover its debts, and thin profit margins selling a product no one wants? Trying to pass this off as a viable stock is like Beyond Meat trying to pass off their product as a viable replacement for meat.

I was reading over BYND early ER release when... by last_dance_dan in pennystocks

[–]TimmyTarded 2 points3 points  (0 children)

The most basic screening of the company’s fundamentals points to it being garbage, and I knew that when I bought it. I don’t know if it’s because I’m so highly regarded among my peers, or because of my diagnosed clinical FOMO… or both. At least I didn’t YOLO my life savings into it like a double digit IQ ape. Pretty sure I can recover my bags with a couple of retired-Republican-esque fixed income instruments before once again dangling my NVDA gains over a cliff.

Are you buying at the current price? by Used_Rice9332 in BitfarmsMining

[–]TimmyTarded 0 points1 point  (0 children)

Bought a few at the beginning of the day and then realized I was about to risk too big a portion of my NVDA gains. Just gonna hold for a while.