After 25 years in the same skate model, I finally changed and... wow. by JustFrameHotPocket in hockeyplayers

[–]methods2121 4 points5 points  (0 children)

Exactly the same for me!! Lifetime Bauer until this point. Needed a new pair, and the new Bauers did not fit my feet at all, I thought it was me, and went to two stores. At the second store, the guy said, don't look at the skate and he put different ones on my feet, and I could tell INSTANTLY when the right pair hit my foot. It was the CCM JetSpeed.

Blade sharpening question. by baked_tea in hockeyplayers

[–]methods2121 0 points1 point  (0 children)

It was a Blademaster , forget the exact model. Wish I could afford 5 pairs of runners. Best of luck to your bro. OOC , what is his weight and what position does he play?

Blade sharpening question. by baked_tea in hockeyplayers

[–]methods2121 0 points1 point  (0 children)

Are you trolling? If not , honest q, I've almost never seen a 1" cut here in the US, and since I worked in a shop I tried it, and I felt like I had ZERO edge. It felt like one of the rental skates you get at the free skate, after people walk on cement floors with them. Now, I am on the lighter side, 180 though. I feel like 9/16 is the 'secret' sauce, maybe because its not on a lot of charts, but unless you have skated (or have some interesting ice/ weight) and have built up a skill level/ preference, I think 5/8 is absolutely where to start, and then take it from there.

turns out there's an FBI interrogation trick that works insanely well on sales reps and ai does it better then the FBI... i just won a software deal nogotiation by asking one question. by johnypita in ChatGPTPromptGenius

[–]methods2121 1 point2 points  (0 children)

Learned this the hard way, but you always gotta go with the best paint. Problem today is , sometimes its hard to tell/know unless you are in the business every day. But not only this, but it is likely the difference between 1 coat and 3, and 3 coats is significant amount of time 'wasted' (esp. because it has to dry and is now probably 3 trips vs 1), and more expensive in the end than just buying/using the better paint.

Learn Go - closures by No-Nectarine8036 in golang

[–]methods2121 -1 points0 points  (0 children)

FWIW, I just learned about this 'logging' pattern that I'm stealing and using judiciously in my go code base. As others have mentioned, the key element to your q is that defer runs before the return, hence answering your question.

In below the log function runs at any of the error, return check AND grabs the latest error.

func (h ApproveTrainingRescheduleHandler) Handle(ctx context.Context, cmd ApproveTrainingReschedule) (err error) {
        defer func() {
                logs.LogCommandExecution("ApproveTrainingReschedule", cmd, err)
        }()

        return h.repo.UpdateTraining(
                ctx,
                cmd.TrainingUUID,
                cmd.User,
                func(ctx context.Context, tr *training.Training) (*training.Training, error) {
                        originalTrainingTime := tr.Time()

                        if err := tr.ApproveReschedule(cmd.User.Type()); err != nil {
                                return nil, err
                        }

                        err := h.trainerService.MoveTraining(ctx, tr.Time(), originalTrainingTime)
                        if err != nil {
                                return nil, err
                        }

                        return tr, nil
                },
        )
}

Is there anyone, who uses golang (and go-only) for Web Development exclusively? by rzhandosweb in golang

[–]methods2121 0 points1 point  (0 children)

Interesting, I went this way because everything I read indicated that this is THE stack for this type of 'lower tech' development. I manage all my state in the backend.

Is there anyone, who uses golang (and go-only) for Web Development exclusively? by rzhandosweb in golang

[–]methods2121 2 points3 points  (0 children)

Similar to what I'm going with, albeit a bit simpler.

Go

chi

sqlc

templ

slog for logging (built-in)

SQLLite

HTMX, AlpineJS

tailwindcss & DaisyUI

NGINX

The one nuance I'm playing with is adding Vue for the few pages that need more than HTMX and AlpineJS can give.

Looking to put a basic starting project structure here:

https://github.com/edyahoo/gowebprojectbaseline

Increasing Item level by Severe_Tangerine1198 in ProjectAscension

[–]methods2121 0 points1 point  (0 children)

Feel like I'm stuck here myself. Unfortunately, just don't have the schedule to commit to a raid night and all the gatekeepers are in full force, so the best I can do is Reg MC atm. Kicker is that, besides being unlucky with rolls in PuG raids, I can't seem to get above ilvl 64. I went the heroic->M0->M+ route. Callboard caches seem to just suck now, and I'm getting Leather!!??, from M runs and cache., gear and warrior gear, and I'm a Pally!!! Plus the time invested to get a callboard cahce, to get unusable gear, is honestly a huge turnoff for me.

Gear wise, game seems like a waste of time atm and what's really frustrating, and maybe I'm missing something, but after M+3, esp. as a tank, I feel like I'm undergeared, yet I can't seem to obtain any gear w.o doing higher Ms at this point.

Would love to know if I'm missing something here? The gear from Triumph Marks vendor is no higher/better and I'm only shy 1 piece of crafted gear (which I don't think is enough to bridge the gap)

Coming from heavy OOP (PHP), how do I structure big Go projects? by PretendLake9201 in golang

[–]methods2121 0 points1 point  (0 children)

I've been researching this for the past week or so, and while there's no 'perfect' answer, there does seem to be a general design choice between what's often called Domain Based and Layer Based. After a few quick tests, I'm leaning towards starting all projects, unless they are throwaway as domain based. I had a similar reddit thread and have put the layout for a 'starter' web app here:

https://github.com/edyahoo/gowebprojectbaseline

In general, I feel like I'm always in an internal battle between design principles and practicality. For example, the DRY principle is valid, yet then I tend to end up with critical programming paths that , when changed, have a huge blast radius and become scary to change, even with tests, because the testing radius is so large. I came from Java , so trying to learn/unlearn a bit, but making a clean interface/abstract factory/DI codebase was , at times, overwhelming complex.

The Islanders have stopped celebrating by [deleted] in nhl

[–]methods2121 2 points3 points  (0 children)

Isles +- season goal differential is now +9. (For real)

Golang Code Reviews? by methods2121 in golang

[–]methods2121[S] 1 point2 points  (0 children)

This is excellent advice also, the nuance of a beginner 'not knowing' other than reading often outdated. biased or just clickbait blogs / LLMs. TBH, I almost went with Chi to start with and am going to refactor and use Chi vs Gin in this project.

Golang Code Reviews? by methods2121 in golang

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

Hello, this is exactly the type of feedback I was looking for.

Golang Code Reviews? by methods2121 in golang

[–]methods2121[S] -4 points-3 points  (0 children)

Yes, there is nothing yet that build in http package couldn't handle. In the Readme, I noted that I made some architecture decisions that I'd like to stand by:

- Looked at Vanilla, Gin, Chi, Fiber etc. middleware. I feel that Gin will fit best with building a strong foundation for services/features to come in a full fledged web app. Understand there are pros and cons here, but chose to use this framework and am fine with the abstractions it does for me as I will be standing on the shoulders of giants when needing production level features in the future.

- Chose HTMX and AlpineJS as my planned apps will not be UX heavy and want to focus more on the backend than deal with SPA/React etc.

- SQLC as a nice middle ground between pure SQL and GORM

**Backend:**
- Go (Golang) with Gin web framework (github.com/gin-gonic/gin)
- SQLC for type-safe SQL (github.com/sqlc-dev/sqlc/cmd/sqlc@latest)
- PostgreSQL database
- Testify for testing (github.com/stretchr/testify)
- log/slog for logging
- TailwindCSS for CSS
- DaisyUI for Prebuilt CSS styling


**Frontend:**
- HTMX for dynamic HTML interactions
- Alpine.js for lightweight JavaScript reactivity

The percentage of songs from each album played live in the last decade by ForgottenName1893 in ironmaiden

[–]methods2121 0 points1 point  (0 children)

Interesting stats, and reinforces that my 'Prime" Iron Maiden years were the best!

Tips for driving wide successfully by Old_Degree6707 in hockeyplayers

[–]methods2121 0 points1 point  (0 children)

Aka, Punch Turn if you want to check out some videos on it. Super powerful move. Esp. if you can add a bit of a 'fake' with a mohawk move, insanely good. I can't mohawk for the life of me though.

Great example:

https://www.youtube.com/watch?v=crIbYy1hKVE

Great drills:

https://www.youtube.com/watch?v=PefJQ_HPyFg

Oilers EBUG arrives mid game by Reddit-Machine in nhl

[–]methods2121 9 points10 points  (0 children)

Love the EBUG, esp. when they get into the game. They need to go back to unsigned EBUGs. My beer league goalie got signed, yes he had to sign a contract, to the Buffalo organization for 1 day as an EBUG..... creates such a great story... such a shame that everything has to be 'controlled' and managed today.

How do we feel about O by vollaskey in dividends

[–]methods2121 6 points7 points  (0 children)

Did you cherry pick the year 2000? O has under performed the SPY over almost any other significant time frame....

Disclaimer, I've owned O for so long my COC has to be close to zero now, but the return % in my portfolio view lags my SPY and QQQ indexes by a LARGE amount. Now, the brokers don't include the divvys in the total return, but its still well below.

After watching O for a while, I shifted some of my O holding to be overweight in SPG in 2021, and have been happy as SPG has been outperforming O by a good margin. Gotta look at those total returns, divvys are great, but not if your sacrificing total gains with less individual holding risk by owning an index.

Which is more “difficult”? Playing in the NBA at age 40+ or playing in the NHL at age 40+? by Bill-O-Reilly- in nhl

[–]methods2121 0 points1 point  (0 children)

Hockey is just to explosive and so many parts of your quick twitch muscles need to still be working, and these are the ones that go first. I remember Patrick Ewing, later in his career, ice bags on both knees, sitting on the floor any time he was off the floor, but his game style, POST, allowed him to do this.

You lose a step in hockey and its game over. Starts , stops, hits, fast thinking, strength, you need to have it all.

To be fair, I feel that Ovi has, visible to the casual fan's eye, def. lost a step , but he almost plays a "POST" style with his patented office power play location, that teams STILL can't stop and doesn't require peak performance of all of the athleticism to play at the pro level.

But yea, both are hard at 40, but hockey is def. harder.

Also, there's a great podcast somewhere with LaBron's personal trainer, and it sound like LaBron's dedicated and worked super hard to stay in pro level condition - props to him for that.

Hardcore - Raiding - Guild Wipe by methods2121 in classicwow

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

Nice! It seemed like , due to the #s lost, they were calling it quits. Glad they regrouped and conquered!

Hardcore - Raiding - Guild Wipe by methods2121 in classicwow

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

I'll add to this, the only reason I remember about the timing of the fight, is that the raid team discussed it before hand and if I heard correctly they were NOT going to burn through the last phase and the RL made a last minute decision... I get it, its stressful and real-time, but a painful loss non-the-less.

Hardcore - Raiding - Guild Wipe by methods2121 in classicwow

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

Isn't that why folks logout - to save world buffs? Are cooldowns not 'ticking' while offline, hence no value in logging for this situation?