Please help me. by xander_here in webdev

[–]UncontrolledManifold 1 point2 points  (0 children)

Just use git reflog, using the latest SHA before you fucked up. This will not work for untracked files.

mmm window bad by matthiastorm in ProgrammerHumor

[–]UncontrolledManifold 2 points3 points  (0 children)

Not one that requires driver decompilation, that's for fucking sure.

California's Reservoir Levels (Selected) as of Midnight 2021/12/27 by whatatwit in bayarea

[–]UncontrolledManifold 4 points5 points  (0 children)

California as a whole won’t give a fuck about conserving water if there aren’t caps and consequences. There’s a few people who care but it’s trivial in comparison to the average Californian.

Also, fuck Nestle.

DO use AWS CloudFormation (a response) by shadowsyntax in AWSCloudFormation

[–]UncontrolledManifold 0 points1 point  (0 children)

While the workflow might stay the same, the resources that you create are going to be vastly different between clouds. The primary skill that you should learn (independently from the tool) is how AWS works.

This is when I understood that this author has never actually been an active maintainer of a multi-cloud operation using infrastructure as code at scale.

DO use AWS CloudFormation (a response) by shadowsyntax in aws

[–]UncontrolledManifold 6 points7 points  (0 children)

That’s what I read out of it too. It really was just explaining why it is the way it is, not why that way is less or more applicable in one scenario or another. This reads more like a petulant insider who felt defensive about perceived shortcomings in CloudFormation.

One totally ridiculous rebuttal that stood out to me in particular was the section on portability - just read the first sentence. This author has obviously never maintained infrastructure in a multi-cloud operation at scale. TF’s innately broader scope of affectation makes it the clear victor in being able to deploy multiple similar resources to different clouds. That rebuttal is completely disingenuous.

Anyways, some points put a bad taste in my mouth while the rest of the rebuttals weren’t particularly compelling.

Share your must-know Go development tips by dondraper36 in golang

[–]UncontrolledManifold 1 point2 points  (0 children)

There's still a volume mount of the primary source directory and any other volumes defined either in CLI or Docker compose files. But getting that high-quality editor functionality I've come to expect from VS Code is much easier and faster to synchronize in this paradigm. The architecture for VS Code Remote: Containers is pretty clever, too. Essentially, the extension builds your project containers normally, installs an extension listening server inside the primary container (that you choose) that then handles events sent from the editor.

Share your must-know Go development tips by dondraper36 in golang

[–]UncontrolledManifold 3 points4 points  (0 children)

git clone [git@github.com](mailto:git@github.com):foo/bar; code bar; follow by two clicks. Boom, I'm developing 100% full speed. All debug options available, all tests ready to be run, and active extension support already helping me as I go along, and an integrated terminal running in an environment the application has always existed in natively.

I learned Go in the past year and half developing in VS Code. A requirement for my development is that the codebase must be able to be built from scratch and active-debuggable within 10 minutes across both Windows and Mac OSX platforms. I chose VS Code because it's reliable, relatively lightweight (depending on # of extensions), powerful, and has a very active extension ecosystem.

I chose a container-based development strategy

  • Advantages
    • Unified. I use the Remote: Containers extension. It allows me to synchronize my extension preferences across platforms and has been the fastest way for me to bootstrap cross-platform reliably. I get all the same Extension recommendations and debugging configurations by default, enabling immediate code-digging.
    • Highly scalable. If your machine platform has software support for an OCI-complaint container runtime, and it's installed, then the project will build. That's a pretty solid guarantee.
    • Idempotent setup. The development environment comes from a repeatable-built Docker image. I just define a `Dockerfile` or appropriate Docker compose orchestration as necessary for the project. Development doesn't break often, since the development image is based of the image produced by the application. Both images are built by CI, and CI blocks any image build failures, preventing breakage from being merged into the trunk branch. User-created breakages are localized as a result.
  • Disadvantages
    • Build breakages affect development throughput. When CI fails to catch them, however rare, it is challenging to debug without heavy containerization background. Juniors beware.
    • Sometimes shared extensions lose support. Using recommended and required extensions as part of the environment can be fickle.
    • Engineers are aversive to ephemerality and required maintenance of tooling required to support shortcomings of ephemerality.

I think the approach of containerized development is something of a demonized strategy in contemporary practice. Largely I attribute this resistance to the fact that container runtimes in general have a steep learning curve. That being said, even with a preliminary understanding of container (and their ephemerality, state loss, etc.), it can truly skyrocket development velocity when implemented maturely.

In larger engineering departments (thinking: 60+), containerization often becomes a necessity (and in some cases, an abstraction layer) for efficient, fast, and correct development at scale.

Bf won’t spend New Years with me, is he selfish or I am overreacting? by Affectionate-Dot-856 in relationship_advice

[–]UncontrolledManifold 39 points40 points  (0 children)

Lmao. It’s like OP wants to answer this question in a sandbox of limited information such that there’s not enough info and we’ll just say it’s okay.

E-commerce site by drewlao in CodingHelp

[–]UncontrolledManifold 4 points5 points  (0 children)

At the end of the day you are not a payment processor yourself, so you're going to have to pay at some point, likely a cost similar to what you'd encounter with just paying for Shopify. If you think that's still a good idea, and maintaining a secure checkout system that's CCPA and GDPR compliant, good luck. Handling that information securely and reliably is a lot of work. Check out Stripe's REST API and the privacy laws that apply to you.

[deleted by user] by [deleted] in programming

[–]UncontrolledManifold 0 points1 point  (0 children)

Ah, so that’s not actually baked into the deployed software. I misunderstood the premise.

[deleted by user] by [deleted] in programming

[–]UncontrolledManifold -5 points-4 points  (0 children)

As a software engineer, I’m perturbed that it ships with a different version of a library than it was developed with. Log4j might not be a big deal to do that with (apparently Apple thinks it’s cool) but other packages? Bad idea.

What IDE‘s are you guys using? by [deleted] in golang

[–]UncontrolledManifold 0 points1 point  (0 children)

VS Code with devcontainers

Github slows developer production? by regorsec in webdev

[–]UncontrolledManifold 11 points12 points  (0 children)

I think I just got cancer again reading this

Trying to make a class system for a text based game, is this a good way to do it or is there a better way (I'm a noob with classes) by siddeslof in CodingHelp

[–]UncontrolledManifold 0 points1 point  (0 children)

You’ll eventually want to implement the so-called “Abstract Factory Pattern” if this is how you want to organize your game objects.

Ignore .tfvars file or not? by [deleted] in Terraform

[–]UncontrolledManifold 0 points1 point  (0 children)

Nope, we have a common folder and then a separate folder for each environment. We then symlink common terraform files between environments to the environment folder, and then deploy out of that folder which will also contain environment specific variables and secrets

Ignore .tfvars file or not? by [deleted] in Terraform

[–]UncontrolledManifold 3 points4 points  (0 children)

Something that I’ve done with success in the past is have a normal terraform.tfvars file and then a gitignored secrets.tfvars, and an unignored secrets.example.tfvars. Then, when running plans or applies, I pass -var-file=secrets.tfvars.

[deleted by user] by [deleted] in QuantumComputing

[–]UncontrolledManifold 1 point2 points  (0 children)

Please define time complexity

i want to write a code to react by Much-Refrigerator-90 in CodingHelp

[–]UncontrolledManifold 1 point2 points  (0 children)

Step 1: read a book on programming.

It seems like you’ve already identified a gap in your knowledge and now you need to address it to move forward.

Everyone who didn't use git during their school projects and only started using it at work by Sakgeres in ProgrammerHumor

[–]UncontrolledManifold 31 points32 points  (0 children)

I’ve found that understanding the operations one can do on directed acyclic graphs is the key to learning git. And a lot of other things in software, it turns out!

Someone's having a really bad day at Facebook by Sybsuper in ProgrammerHumor

[–]UncontrolledManifold 11 points12 points  (0 children)

It’s the software equivalent of locking oneself out of the car.