Skip to content

u/upper_bound

In this archive from Apr 2020 to Dec 2026

3
posts
403
comments
2
media
1.2k
score
2 saved before deletion

Top posts

Top comments

What were requirements of said job? More than likely it said "degree in CS", yes?

The bar for entry level programming jobs is a 4-year CS degree (or equivalent). That's the direct/on-rails path.

The choose your own adventure path is to distill down exactly what CS programs teach and go learn that from other means. You also need a plan to demonstrate you learned all those topics, since you don't have a recognized independent entity vouching that "yes, you took all these classes and passed".

It's great you learned how to code. It's a great first step. There's a mountain of additional knowledge necessary to turn that into a career. I thought I was a great programmer in high-school. Again in college. Again after getting first job. Again after promoted to "senior". I still have lots to learn and the code I write today is better than code I wrote last year. I've been doing this for 20 years and still improving.

The point is, knowing basics doesn't mean you're ready to jump into doing it professionally.

164 points
  1. A lot of people like the animations and theatrics.

Civ plays much faster with combat animations disabled, yet it defaults to enabled. To go slippery slope, most strategy games don't really even need character models, levels, 3d environments, animations, etc. You could play X-com on a simple 2d grid (with height) and simple icons for cover, ladders/doors, and enemy positions/types.

There's a reason there aren't shelves full of $60 ASCII strategy games for sale.

23 points

Removing new Random() and using a "global" RNG is likely a *much* larger optimization than removing a branch and unnecessary Vec3 initialization, and also likely more correct for the intent.

Avoiding multiple instantiations

On the .NET Framework, initializing two random number generators in a tight loop or in rapid succession creates two random number generators that can produce identical sequences of random numbers. In most cases, this is not the developer's intent and can lead to performance issues, because instantiating and initializing a random number generator is a relatively expensive process.

Both to improve performance and to avoid inadvertently creating separate random number generators that generate identical numeric sequences, we recommend that you create one Random object to generate many random numbers over time, instead of creating new Random objects to generate one random number.

https://docs.microsoft.com/en-us/dotnet/api/system.random?view=net-6.0

21 points

Subreddits

Keyboard shortcuts

Move and act

jork
Next / previous post or comment
Enteroro
Open the post
f
Open the media viewer
s
Save
h
Hide (the toast has Undo)
Tab
Right after an action: the toast's Undo
x
Collapse the comment
v
Next layout: cards, compact, grid

Go to

/
Search
gthenh
Home
gthena
All
gthens
Subreddits
gthenl
Library
?
This list
Esc
Close a menu or this list

In the viewer

←or→
Previous / next file
↑or↓
Previous / next post
korj
Previous / next post
Space
Play / pause
m
Mute
z
Zoom
s
Save
o
Open the post (on its own page: back to it)
Esc
Close

Keys do nothing while you type in a box.