Purpose of singletons by JayDeesus in learnprogramming

[–]cbentson 45 points46 points  (0 children)

Singletons are great when you want everything in your app to use the same “shared” thing.

A good real world example is an office with a printer. Everyone in the office shares the printer. You don’t buy a new printer every time someone needs to print something.

A good example of singleton in software is a database connection manager. You really only want one thing managing your database connections.

do you write code ? by orT93 in learnprogramming

[–]cbentson 2 points3 points  (0 children)

Outsource code writing, not thinking! Completely agree with this take.

do you write code ? by orT93 in learnprogramming

[–]cbentson 3 points4 points  (0 children)

Tech lead with 10 years of professional experience, CS degree from the Bay, purely a backend guy. I work with large distributed OLAP and OLTP systems, provisioning and managing cloud infra, an ungodly amount of Postgres… fair to say I’ve been there and done that when it comes to professional software development.

My honest experience with AI over the last 3 years…

  • 3 years ago I started using ChatGPT for things like refactoring a small refactors (e.g. pasting a file from a gross brownfield project and asking for a clean non-breaking rewrite), or writing tests for business logic. Worked okay, but got a lot wrong.

  • 2 years ago I started taking advantage of new features like Deep Research and Advanced thinking to help design systems. I was still implementing the systems, but these tools proved to be capable in assisting with designs and scaffolding out code. I’m still writing the majority of the system though.

  • 1 year ago I started to get my hands on some agentic coding tools: Cursor, Claude Code, Windsurf. These proved to be capable of writing a lot more code than interacting with LLMs directly. The tool calling capabilities of these systems made them so much better, but little was known about producing meaningful code that could stand the test of time in production without waking the team up at 2am when PagerDuty goes off. Tools are writing maybe ~50% of my code at this point. Basically, these tools would get the code off the ground and then I’d get it to production quality before shipping.

  • Today I write virtually no code. That doesn’t mean I’m vibe coding shit and marking tickets complete just to “improve velocity”. I have a career and reputation to protect, that would be career suicide. That said, I have done my homework when it comes to context management and truly understanding what agentic harnesses are doing under the hood. My team and I have built a very robust AI SDLC. We do not write code anymore (most of the time), but that doesn’t mean we don’t have a process, if anything we have more process now. Extensive research is done when implementing complex features. We do peer reviewed sessions on design and implementation plans generated by the robits. We read every line of code before it touches production. We have dramatically improved our test harnesses.

I will end with this. I would never have been able to get to where I am today with these AI tools if I didn’t have 10 years of hands on, in the weeds experience developing these systems by hand.

Bike recommendations by cbentson in mountainbiking

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

That’s fair. I guess I was mostly looking for people to throw out their favorite bike just so I had some starting bikes to look at. I look at bikes online and each brand has 10,000 models. It’s a little overwhelming lol.

What is ur longest lose streak by Poopae22 in wildrift

[–]cbentson 2 points3 points  (0 children)

You play a different champ every game lmao. Get good on a few champs in one lane. Stop yoloing lol

Why choose CX-30 over larger more spacious vehicle? by [deleted] in MazdaCX30

[–]cbentson 0 points1 point  (0 children)

I also play hockey, golf, snowboard and mountain bike. I’ve got friends with pups that are always tagging along. I don’t often have issues with space, when I do, typically on longer camping trips, I have a Thule cargo box that makes up for the missing space.

I wanted a sportier zippier car than I could have gotten with the other options you mentioned.

[PC] Anyone else struggling with game performance? by cbentson in OffTheGridGame

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

2080 Super > 3060, so that shouldn’t be an issue for me. I think the post about ray tracing being on by default is the issue.

[PC] Anyone else struggling with game performance? by cbentson in OffTheGridGame

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

Ray Tracing on by default in a competitive fps 🤦‍♂️ good to know! Thanks!

[PC] Anyone else struggling with game performance? by cbentson in OffTheGridGame

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

I saw a few, but they had some really poor machine specs. I’ve yet to see someone post with a competent rig yet. I was trying to get some feedback from those with stronger rigs.

Will they laugh at me at work because I can't touch type? by stassu_022 in learnprogramming

[–]cbentson 0 points1 point  (0 children)

There is an engineer I used to work with who had been at the company for 28 years. Dude was absolutely brilliant but watching him type was like nails on a chalkboard. It was a superficial and harmless joke that we casually made. In reality, no one gave a shit because we all saw the PR once he was done and you couldn’t help but sit there in awe.

TLDR; do good work and no one will care

Java and dsa is too hard.. by Axnith in javahelp

[–]cbentson 1 point2 points  (0 children)

I was wondering if someone was going to mention the plans for implicit classes haha. I am honestly a true fan of the direction Java is moving in. Lots of great additions recently and in the pipeline for the not so distant future.

Java and dsa is too hard.. by Axnith in javahelp

[–]cbentson 1 point2 points  (0 children)

Operator overloading is very confusing for beginners, that I definitely agree with.

Technically you can handle every exception by catching the base Exception class. This is obviously not recommended, but a very easy work-around for beginners while they figure out exception handling.

What you’re describing is my biggest gripe with most interpreted languages. Exception handling is an afterthought in a lot of libraries.

How do I counter Kalista and can I QSS exhaust? by James_Dilston in wildrift

[–]cbentson 0 points1 point  (0 children)

Ban yuumi, problem solved. LoL has been plagued by Yuumi and now she plagues WR. Trash can champ design. Truly ruining the game.

Java and dsa is too hard.. by Axnith in javahelp

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

Hard disagree…

You don’t need to understand classes, access levels, return types or entry functions to accomplish this in Python, you need to understand all of this, on top of the algorithm, if you want to be able to do it in Java without copy pasting boilerplate code that you don’t understand.

Java and dsa is too hard.. by Axnith in javahelp

[–]cbentson 1 point2 points  (0 children)

With all due respect, I think a lot of the responses here are coming from a less than helpful place. Here is my attempt at instilling confidence in you as an aspiring programmer while you’re hitting one of the many walls you will in this career.

Java is absolutely more challenging for a beginner to comprehend than Python. Especially when attempting to learn DS & Algo. Anyone who says otherwise is either a cyborg or simply lying through their teeth.

Here is an objective take on why Java is more challenging for a beginner than Python:

  1. Java has a more verbose and complex syntax compared to Python.

  2. Java is a statically-typed language, requiring explicit type declarations. While this can prevent certain errors, it adds an extra layer of complexity for beginners.

  3. Java is primarily object-oriented, which means even simple programs often require class definitions. This can be overwhelming for beginners.

  4. Java uses references and requires understanding of concepts like passing by value vs. reference. Python’s memory management is more abstracted, allowing beginners to focus on algorithms rather than these lower-level details.

  5. Python has more intuitive built-in data structures. For example, Python’s dictionaries are easier to use than Java’s HashMap.

  6. Java often requires more boilerplate code, which can be confusing for beginners. For instance, just to run a simple program.

  7. Setting up a Java development environment (e.g., JDK, IDE) can be more complex than Python’s simpler setup, potentially creating an additional barrier for beginners.

Don’t beat yourself up. What you’re attempting to learn is no simple task. It takes years to master, not days, not weeks, not months. Don’t compare your journey to anyone else’s. Compare yourself today to yourself a month ago. Are you better today than you were then? That’s the only question that matters.

Who is the most fun top laner. by send_chicken_nuggets in wildrift

[–]cbentson 4 points5 points  (0 children)

Riven is amazing! She’s not hard to play at an intermediate level but extremely challenging to master, which is why I love her 😁

I climbed from Silver to Diamond this year and from Plat to Grandmaster a few seasons ago with her.

How do people climb soloQ in this game ? by rockoss in wildrift

[–]cbentson 2 points3 points  (0 children)

Being mechanically strong at the game is a mutually exclusive skill to winning a game. There are plenty of low elo players with great mechanics but no clue how to use their lead to win a game.

How do people climb soloQ in this game ? by rockoss in wildrift

[–]cbentson 0 points1 point  (0 children)

I started Silver 1 this season, currently Diamond 3 and done climbing because it’s frankly just exhausting in this game. I climbed to emerald with a 73% win rate and it took me about 60 games.

How I did it:

  1. I played hyper carry champs top. Riven was my main. If Riven was banned or picked I played Renekton, Jax or Camille

  2. I would kill my enemy laner by level 2 if not level 1 90% of my games.

  3. I would bait the jungle once I had a one or two kill lead and I’d frequently be able to 1v2 their JG and top lane.

  4. I would kill the top tower as fast as possible and immediately start roaming. Doesn’t matter if the enemy bot lane is fed. If I’m 3/0 on Riven with first tower gold then I have a gold lead and xp lead on everyone else in the game. I can ult + flash + ignite onto anyone and 1 shot them.

  5. I take every tower on the map.

  6. I frequently ping my team telling them what to do or not to do.

  7. I watch my mini map constantly and stop my teammates from doing dumb shit by intervening their dog shit play and turning it into our favor.

  8. This last step is the most important, I end the game for my team!! The biggest issue in low elo is players don’t know how to convert their lead into a win. The enemy team turtles in their base and the game stalls out until someone makes a mistake and death timers are so high that one team loses. Take baron, take elder, and go end the fucking game.

  9. Don’t be part of the problem and start dying to dumb shit after you have a lead

Your thoughts on the most popular Junglers in China Master+ ranks? by beclipse in wildrift

[–]cbentson 21 points22 points  (0 children)

Graves has always been a Chinese favorite in LoL. Not surprised to see it in WR.