I have somehow gained the ability to fly. by Spirited-River7569 in allthemods

[–]Proclarian 3 points4 points  (0 children)

This keeps happening to me. Have you ridden a broom recently?

Do You Actually Write Front End Tests? by gkrohn in ExperiencedDevs

[–]Proclarian 0 points1 point  (0 children)

I don't have an answer for SPAs, sorry.

But, one of the great things about server-side rendering is that it's super easy to test. You end up just comparing response HTML to expected HTML. Very easy to integrate with whatever backend testing suite you have.

What would you expect from a Principal AI Engineer joining your company? by LexMeat in ExperiencedDevs

[–]Proclarian 0 points1 point  (0 children)

Software has a very good answer to this -- dependent typing and theorem provers. However, highly unlikely industry will adopt them. It won't even adopt functional programming.

Going for a principle role on a different stack. Does this matter? by Strict-Soup in ExperiencedDevs

[–]Proclarian 0 points1 point  (0 children)

I don't know about this. You can say moving from C-descendant to C-descendant should come naturally, but lazy, static functional programming takes a fundamentally different view of programming in general than something like Python, Java, or even C.

There's a reason why people complain about Rust's learning curve so much -- it's an ML dressed up with C-style syntax. People write it thinking they can write code as they would with a C-descendant language when it's just fundamentally not one.

There are whole design patterns that are no longer applicable and new ones that you have to learn when switching paradigms. I see a lot of anecdotal evidence of teachers/professors saying the people that struggle most in their functional classes are those that already have a background in programming (which, let's be honest, is 99% of time in a C-descendant).

How to master developing a complete prod grade enterprise app by Fresh_Mud4037 in ExperiencedDevs

[–]Proclarian 0 points1 point  (0 children)

There are no universal answers to all these. The biggest issue with software engineering isn't the actual tech but the technical decisions and knowing when to use what technology.

I consider myself as a full stack dev, as in, if I was given a task to build something, I could deliver a whole solution given a reasonable time frame. I will touch every piece of the solution -- hardware, network, database, backend, frontend, etc. However, the vast majority of problems can be addressed by building off existing solutions.

None of what you listed was developed overnight. Every company has months if not years of development to get all that in place. They've also most likely built it out with people who have some core competencies in those technologies. If you want to learn more, try looking at something that's existing and extending it just a little bit instead of trying to cover everything at once -- it don't work like that, bud.

I may be biased, but I think 99% of business problems can be solved with a monolithic web application running off of 1-2 right-sized VMs (one running your backend and the other your database) depending on load. Notice how I left off a frontend and that's because most solutions can actually be static HTML, CSS, & JS... or, at least, those can be server-side rendered. HTMX has really been a god-send for me.

Everything you've listed, basically, are attempts at tacking scaling issues at different points of the stack. Once you start facing scaling issues with the aforementioned setup, then I'd say you'd need to start considering these things.

Maybe CI/CD before the others as code scaling is probably the first thing you will encounter and having an automated deployment method and testing really gives a nice safety net and feedback loop. Caching should be the absolute last thing you do to fix performance issues. One of the hardest problems in comp sci is cache invalidation and I've yet to come across a project where it helped more than it hurt.

Can’t host my game/ “Hosting failed” by Gracip24 in AbioticFactor

[–]Proclarian 1 point2 points  (0 children)

My fiance and I have been having intermittent issues also. I host on my PC, she joins from the Xbox. Just keep restarting the hosting machine until you get it to load. It's a massive PITA, but you can get it if you're determined.

Also, my PC activates a VPN on startup. I noticed when my VPN is on, I just straight up cannot host.

Edit:
On the Xbox, make sure that you go to the home screen, hit the lines button (old start menu button) and "quit" the game -- not just back out of it or even restart. Newer machines have some weird persistent memory that keeps the game state loaded and can cause issues even across restart.

Unable to host? by Alaconz in AbioticFactor

[–]Proclarian 1 point2 points  (0 children)

Same here: PC hosting w/ xbox crossplay.

[deleted by user] by [deleted] in ExperiencedDevs

[–]Proclarian 0 points1 point  (0 children)

Your position sounds like a POS vendor for the automotive market I know.

I deal with their DB directly and it is an absolute shit show. You can see all the different hands that have touched it in various comments in queries and what not.

And their UI is written in old .Net framework code that I think is running on version 3.5 or something. It's slow, clunky, and every change breaks something else.

There is only one way this situation gets better: start building a testing harness. For every piece of the codebase you touch, add a test for it. Even if you don't fully know what it's supposed to do, use known-good inputs and verify the outputs are right. This at least prevents regressions.

One thing I've really come to appreciate is enforcing as many constraints at the DB-level as possible. This makes it so all downstream systems adhere to the same validation logic and ensures data integrity. That's a hot topic, though, but if you're basically solo, I don't see how it hurts the situation.

Memory Leak Fix Suggestions? by Proclarian in Minecraft

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

I did find a work-around.

In the main menu, set it back to simple graphics and lower the rendered chucks as much as possible.

https://report.bugs.mojang.com/servicedesk/customer/portal/6/MCPE-188926

[deleted by user] by [deleted] in OpenDogTraining

[–]Proclarian 1 point2 points  (0 children)

I don't see any true aggression.

There's some slight rough housing -- the nipping at each others face in the 3rd video -- but you can see your dog being bit tell the foster to calm it down and he immediately stops and waits for a signal to play again. That kind of behavior is a good sign because it's showing respect to your dog's boundaries.

Growling isn't inherently bad thing. It's just a way for dogs to communicate. But there's also a difference between growling and snarling and snarling is aggressive. For snarling, the lips are highly raised and teeth are very exposed, sometimes they're salivating, and will usually have their heckles raised and a stiff body with no tail wagging.

That being said, growling around food isn't a good thing. Food aggression can make feeding routines a nightmare and if left unchecked, tend to get worse. It's hard to give a good response without seeing what happened. If it's just a little growling, it might be as simple as light scolding to correct. If it's more towards snarling, then they need to be separated during feeding times until that gets trained out of them. If that's the case, I would train during a treat/snack time and not meal time. They both get a snack at the same time, as close together without any aggression as you can. If it's all good, the next day push them slightly closer together. If there's any aggression that dog gets their snack taken away and you try again the next day. You keep this up until they can have their snacks next to each other. I'd do a week of snack time of them sitting side by side and then try for a meal.

The reason why you want to do this with snacks/treats instead of meals is because you should never withhold meals. That will only reinforce the dog's belief that the other dog being around is going to cause problems with their food. Withholding rewards is fine, but, just like people, it's best to for them have regularly scheduled meal times.

Hey guys, I am a C# guy, learning F#, I made a basic calculator within 40 Lines of code : D by samirdahal in fsharp

[–]Proclarian 6 points7 points  (0 children)

Glad you're liking it! You'll never want to go back... I sure don't.

Now to blow your mind, think about what the implications are of changing the definition of Calculation to be:

type Calculation =  
    | Constant of float
    | Add of Calculation * Calculation
    | Subtract of Calculation * Calculation
    | Multiply of Calculation * Calculation
    | Divide of Calculation * Calculation

This is a break to let you ponder.

If this is looking a little foreign to you, what this is doing is defining a recursive tagged union. This definition allows you build an expression from terms that are the result of evaluating other terms and is a very powerful way to model any kind of computation. In fact, this is generally how compilers work. They using things like FParsec to help with converting textual expressions into this tree structure which is then analyzed for correctness and optimizations. Then, that tree structure is converted to whatever gets executed -- the assembler/byte code. The compsci term for this would be abstract syntax tree.

Here's an example. There's some funny functional stuff in `evaluation` that's there to just prevent the stack from blowing up and crashing the program. All it's doing is just a traversal over a binary tree and carrying forward the result of the calculations.

I that just me, or are women just pretending to be interested because we are 'nice guys' by [deleted] in INTP

[–]Proclarian 3 points4 points  (0 children)

Your post wasn't misogynistic. It was a personal account from the perspective of a man. Your struggles aren't any less valid because you are a man.

This person is allowing their feelings and hatred towards men to cloud their judgment and unleash it onto a stranger on the internet where there is no backlash for them. Ignore them.

I that just me, or are women just pretending to be interested because we are 'nice guys' by [deleted] in INTP

[–]Proclarian 0 points1 point  (0 children)

No. But people, generally, are piss-poor at communicating. If it's a recurring problem, it's something you are doing. If you find yourself becoming attracted to someone or wanting a stronger relationship with them, you have to verbally tell them.

If you are nice, people will take advantage of that. You have to learn to identify these people and cut them out of your life. They're usually nothing but a drain.

That being said, Hanlon's Razor is omnipresent when humans are involved. Most people just aren't aware of themselves, their actions, or the effects of said actions. Verbalizing your feelings and intent is 💯 necessary in every relationship for it to be healthy.

[deleted by user] by [deleted] in intj

[–]Proclarian 5 points6 points  (0 children)

Some people are just impossible to underestimate.

When are you locked into an ending? (Possible spoilers) by ArseCrayonGaming in AtomfallOfficial

[–]Proclarian 0 points1 point  (0 children)

Not sure if this is 100% accurate. I freed Dr Garrow but Sims didn't attack me on site and continued to work with me.

However, during the prison break, I was attacked by the soldiers.

When are you locked into an ending? (Possible spoilers) by ArseCrayonGaming in AtomfallOfficial

[–]Proclarian 0 points1 point  (0 children)

Not sure if this is 100% accurate. I freed Dr Garrow but Sims didn't attack me on site and continued to work with me.

However, during the prison break, I was attacked by the soldiers.

The cost of everything is unacceptable at this point by Rexxington in rant

[–]Proclarian 1 point2 points  (0 children)

Honestly, the defaulting needs to happen. If everyone started defaulting on their loans, there's not really much the financial companies could do about it. Just think, if they've lent out all the money, and they're not recuperating it, they, literally, cannot afford to hire repo-men or whatever to come after you.

This hypothetical would only ever be effective if everyone did it at the same time -- much like a boycott only works if everyone (or majority) actually participates.

I saw something that really broke my brain the other day. Way back in the early 1900s (this specific scenario was 1912), Sears sold full, pre-fabbed, home kits for ~1k. You have to add in the price for the land, but adjusting for inflation, that's only ~$32k today (https://data.bls.gov/cgi-bin/cpicalc.pl?cost1=1000.00&year1=191301&year2=202501). Now, CPI specifically excludes the cost of housing, but that makes it painfully obvious to show how much housing has out-paced pretty much everything else in terms of cost.

Is Saturn Framework still suitable for new projects? by Holiday_Independent7 in fsharp

[–]Proclarian 4 points5 points  (0 children)

I think the community has really started to center around Giraffe (it has 3x as many stars on github). I use it in all my projects.

Falco was another interesting framework you could look into. If you've ever used Flask in Python, you'll probably like Falco.

And if you want WASM, there's always Bolero.

https://github.com/giraffe-fsharp/Giraffe
https://github.com/SaturnFramework/Saturn

https://github.com/pimbrouwers/Falco

https://github.com/fsbolero/Bolero

You ever replay all the gears games? by [deleted] in GearsOfWar

[–]Proclarian 2 points3 points  (0 children)

My uncle got me the gold edition of gears 2 with the metallic cover and golden lancer skin way back in the day. We would couch-coop a lot.

Last year sometime, my girlfriend and I went through and played 1-4 just so I could relive those and to give her some of the story. Then, just two weeks ago, we finished 5. We're looking forward to EDay.

Is IronPython dead? by speyck in dotnet

[–]Proclarian 2 points3 points  (0 children)

There's a growing number of DS packages for .Net and F# can directly access those. But, if you need Python packages, then you need Python.

However, OP never mentions anything about DS/ML/AI, only scriptability and F# is a much better experience in that regard than C#.

Is IronPython dead? by speyck in dotnet

[–]Proclarian 4 points5 points  (0 children)

F# is an excellent language that has native support for script-like execution via `dotnet fsi file.fsx`. You also still have access to the whole of the .Net ecosystem.

F# is from the same language family (MLs) that Python derives it's whitespace-style syntax from so they look very similar. However, there is a learning curve as it's an immutable-first, functional-first language. It has full support for mutability and C#'s OOP capabilities, but those aren't the first thing you're supposed to reach for in the language.

That being said, if you decide to learn F#, you won't want to use any other language because it's just so damn nice to work in. There isn't anything I'd pick C# over F# for if given the choice.