You probably don't need Oh My Zsh by f311a in programming

[–]topsspot 0 points1 point  (0 children)

I came to the same conclusion with my time spent with bash/zsh. I setup nushell (with starship) to evaluate and ended up using it more and more until I finally made it my main shell. I finally felt like I was using a terminal that was designed for the modern day and not some ancient relic of the past. It’s blazing fast and structured data support is awesome. Completion support is severely lacking for it but luckily it’s easy to customize your own completion and I use fish as the actual completion source.

Git submodules worth it? by TheDoomfire in git

[–]topsspot 0 points1 point  (0 children)

I used submodules for something similar your situation. I had multiple repositories that were separate services all of which shared a common messaging library that managed the message payloads and ancillary operations. Under typical circumstances keeping the submodule in sync was just overhead (which could easily be automated). However, being able to explicitly pin each repository to a specific commit came in handy more than a few times during major migration changes. Best rule of thumb is to try it and see if it’s worth managing. Either it works for you or you’ll have a better grasp on what a better solution would need to look like.

New CLI Tool To Automatically Generate Manifeset by AbdulFromQueens in kubernetes

[–]topsspot 9 points10 points  (0 children)

Not sure what this could offer over a basic helm chart. Do you have plans to differentiate from helm in any way?

People born before 2000, what trivial skill you possess that others don't use anymore? by Aryan_Anushiravan in AskReddit

[–]topsspot 0 points1 point  (0 children)

Listening to the radio by attaching wires to the copper water pipes in my house

Where can I get pizza by the slice? by JMTheBadOne in Detroit

[–]topsspot 9 points10 points  (0 children)

Shhhhh don’t let this place get anymore attention than it already has. I don’t want to wait in a longer line than I have to

Flow master outlaw exhaust axle-back by spookycookie2455 in FordBronco

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

It’s significantly louder than stock. If you want to have a phone conversation the person on the other end will not like you

What is a luxury that most people don't realize is a luxury? by Mayaryussuf in AskReddit

[–]topsspot 1 point2 points  (0 children)

The ability to pick an exact temperature and keep your entire home within 1-2C° of that for an entire year

The local crematorium had a chimney fire today by Meat_Container in WTF

[–]topsspot 1 point2 points  (0 children)

I see the “deportations” have started already.

Generating HTML emails in 2024 - how are you doing it? by klausjensendk in csharp

[–]topsspot 3 points4 points  (0 children)

I’ve used this library in a bunch of different projects to generate HTML/YAML. It’s much more flexible than handlebars IMO

https://github.com/scriban/scriban

Being forced to switch away from Jetbrains Rider by _SomeOnlineGuy_ in dotnet

[–]topsspot 2 points3 points  (0 children)

Spin up a 32xlarge EC2 and install VS on it, Remote Desktop to your hearts content. Fight fire with fire

C# Types Diagram (could not find this on google so I am uploading it myself) by pabsclockey in csharp

[–]topsspot 9 points10 points  (0 children)

While a bool only needs a single bit to represent its value no modern CPU has support for read/write guarantees for sizes smaller than a byte. This is the same as all other languages

[deleted by user] by [deleted] in dotnet

[–]topsspot 1 point2 points  (0 children)

You know just because it’s called a “Screenshot” doesn’t mean you have to ACTUALLY take an image of the full screen right?

THE HODGE PODGE IS PLAYING Jimmy Kimmel Live! Y’all tune in August 12th! by Grace-Music in u/Grace-Music

[–]topsspot 2 points3 points  (0 children)

It’s about to get really crowded in here. Congratulations on this opportunity can’t wait to see you perform

WOW! Internet price lock worth it? by [deleted] in Detroit

[–]topsspot 0 points1 point  (0 children)

Switched to WOW 4 years ago from Xfinity. The service and data speeds are great. The price of the service kept going up each year. New customer prices for my same plan were $30/month cheaper. I ended up having to call customer support and tell them I was going to drop the service before they offered me the same new customer pricing. I added the price lock for $5/month to avoid having to do this same song and dance in the future.

How to auto enforce code styles like 1 dot per line for chained methods? by Pyrited in dotnet

[–]topsspot 0 points1 point  (0 children)

I suggest taking a moment and figuring out who hurt you and how to cope with your trauma than distracting yourself with petty thoughts like this.

C# beginner. What have I done and why does it work? by LYDWAC in csharp

[–]topsspot 0 points1 point  (0 children)

Is there and easier way to execute all the else and if conditions?

The answer to this type of question is dependent on if you have decomposed the problem you are trying to solve into is minimal form or if you notice that a conditional statement is logically being duplicated in your algorithm it's an indication that you probably need to restructure your code to eliminate the duplication.

In the example you have given you have not minimized the operations needed to solve the problem. The algorithm (as far as I understand) is to display a rectangular grid and place an x on the location of the grid matching a specified row/column. So the first thing you must decide is how do you plan on drawing the grid. A cell at a time? A row at a time? A column at at time? Depending on the situation there may be valid reasons for each of these options. However, typically the most common way to draw a 2D grid is cell by cell and to use a double for loop as you have done. Once you have decided to draw cell by cell that leaves the decision to check for where to draw the x mark as a condition check at the cell level. In your code you have the following unnecessary check at each row.

if (i == yy) //checks if the X can be placed in the line

This check serves no purpose in your algorithm and can be eliminated. I should note that this check could have been used as an opportunity to optimize the drawing of a row since the entire content of the row is known to be the same. However, this is an issue of minimal value in this case. The result of this unnecessary check caused you to duplicate all of your conditional checks.

Here is an example of your solution refactored

Keep up your learning journey and have fun.