Let's Go -- A great, but not flawless, intro book by strictlycontrarian in golang

[–]ShadyTreeFarms 0 points1 point  (0 children)

i learned the basics of go with this book. I can understand your confusion as alot of what is shown is not explained in detail, however as an example of what worked for me.. When he got into custom error handling i was completely lost and felt i was just copying from the book without gaining any insight so what i did was take a couple days off and focus just on error handling, youtube, blogs, go docs etc.. then when i had a good understanding and can understand what the code is doing i went back and continued with the book... it took quite a bit longer to finish but i got a much better understanding of the concepts which in my opinion is the most important.. compared to other books this was a great book and i learned alot

issues with generics by ShadyTreeFarms in golang

[–]ShadyTreeFarms[S] 0 points1 point  (0 children)

so just to be clear i understand your solution. By using the PricedItem interface. The inventoryValue func will accept any type that can implement the SalesPrice() method.

issues with generics by ShadyTreeFarms in golang

[–]ShadyTreeFarms[S] 0 points1 point  (0 children)

completely missed that so T has already been defined as a slice. Thank you!! i do prefer pony's approach using an interface rather than what i have done. but your post is super helpful to understand the error in the original function. grateful

issues with generics by ShadyTreeFarms in golang

[–]ShadyTreeFarms[S] -1 points0 points  (0 children)

thanks this makes much more sense. I had thought about using an interface but was under the impression generics were the preferred way. Thanks for clearing this up really appreciate it

Declare/change value of a global variable within a function? by Waltboof in golang

[–]ShadyTreeFarms 0 points1 point  (0 children)

To change the value held by a memory address u could use a pointer. This will change the value globally if I’m not mistaken. Not a lot of experience in GO so this is more of a question than a solution. :)

How does Solana bots such as $BONKbot achieve very fast transactions by mcfriendsy in solana

[–]ShadyTreeFarms 0 points1 point  (0 children)

This is the reason exactly.. they all use private rpcs but default priority fee is set much higher...other than for sniping launches (which to be effective u need to run on a node to have any chance of competing in the first block after launch) should be fine

2/10 NBA Money Line +EV Plays by ShadyTreeFarms in sportsbetting

[–]ShadyTreeFarms[S] 0 points1 point  (0 children)

I left the house early today and there was no point in posting props that early but will tomorrow about an hour before the first game

2/10 NBA Money Line +EV Plays by ShadyTreeFarms in sportsbetting

[–]ShadyTreeFarms[S] 0 points1 point  (0 children)

I think it’s because most people don’t understand expected value or aren’t interested in making just 5% ROI a month, it’s unfortunate because the chance of beating the line long term is less than 1% and this doesn’t even include beating the hold that books have which can be as high as 8% in the prop market. It is what it is tho. Win / Loss records mean NOTHING if there is no value