• 0 Posts
  • 6 Comments
Joined 1 year ago
cake
Cake day: June 16th, 2023

help-circle
  • This should be a different post, but it depends on what you’re planning to do with them. Enums are flexible and could totally make do there regardless of semantic cyclical-ness. Remember with enums you’re able to just ignore the values altogether; that’s one of the major reasons to use them. If I have a limited list of flags that I use directly in code, they don’t have to change at runtime, and don’t need additional data associated to them (like ‘number of days’ or something similar), I’ll use an enum.

    If you wanted to actually cycle though them in your code, it might be clearer to use both a manager class with a enum. Inside the class, you could use a something like a CurrentSeason property and have a NextSeason, PreviousSeason method to cycle through them. Using modular arithmetic would allow you to change the number of items to cover future features like seasonal transitions or something without having to modify any of your code.


  • Everyone’s different but I find that if I want to learn something new, I HAVE to find a concrete use case for it first. It’s utterly futile (and I’ll just procrastinate forever) if I just try to only slog through a bunch of tutorials without an endgame in mind. Biting off more than I can chew usually works for me because I’m stubborn AF.

    1. Start blindly flailing like a madlad on a project until I can define a particular gap in knowledge. 2. Research said gap. 3. Rinse, repeat.


  • "It was January 2018, and the company’s engineering team was about to hand over the craft — named Titan — to a new crew who would be responsible for ensuring the safety of its future passengers. But experts inside and outside the company were beginning to sound alarms.

    OceanGate’s director of marine operations, David Lochridge, started working on a report around that time, according to court documents, ultimately producing a scathing document in which he said the craft needed more testing and stressed “the potential dangers to passengers of the Titan as the submersible reached extreme depths.

    Mr. Lochridge reported in court records that he had urged the company to do so, but that he had been told that OceanGate was “unwilling to pay” for such an assessment. After getting Mr. Lochridge’s report, the company’s leaders held a tense meeting to discuss the situation, according to court documents filed by both sides. The documents came in a lawsuit that OceanGate filed against Mr. Lochridge in 2018, accusing him of sharing confidential information outside the company.

    In the documents, Mr. Lochridge reported learning that the viewport that lets passengers see outside the craft was only certified to work in depths of up to 1,300 meters.

    That is far less than would be necessary for trips to the Titanic, which is nearly 4,000 meters below the ocean’s surface.

    "The paying passengers would not be aware, and would not be informed, of this experimental design,” lawyers for Mr. Lochridge wrote in a court filing.

    The meeting led OceanGate to fire Mr. Lochridge, according to court documents filed by both sides. OceanGate has said in court records that he was not an engineer, that he refused to accept information from the company’s engineering team and that acoustic monitoring of the hull’s strength was better than the kind of testing that Mr. Lochridge felt was necessary."

    Sounds pretty sketch. https://www.nytimes.com/2023/06/20/us/oceangate-titanic-missing-submersible.html