• 7 Posts
  • 9 Comments
Joined 2 years ago
cake
Cake day: June 21st, 2023

help-circle

  • Love this. Always interesting to see novel ways of querying data in the terminal, and I agree that jq’s syntax is difficult to remember.

    I actually prefer nu(shell) for this though. On the lobste.rs thread for this blog, a user shared this:

    | get license.key -i
    | uniq --count
    | rename license
    
    This outputs the following:
    
    ╭───┬──────────────┬───────╮
    │ # │    license   │ count │
    ├───┼──────────────┼───────┤
    │ 0 │ bsd-3-clause │    23 │
    │ 1 │ apache-2.0   │     5 │
    │ 2 │              │     2 │
    ╰───┴──────────────┴───────╯
    
    











  • Like many others here, at the company I work for you get nothing.

    I do one on-call shift as primary per week and one as secondary. I then also cover a week every six weeks or so.

    If shit really hits the fan, them work is pretty cool about taking some time back, but we’re far from micromanaged as it is, so we can just kind of make it work.

    I’d say an incidency probably occurs on around half of my primary shifts (and I’ve yet to ever do anything as secondary), and nearly always it was something I could resolve within one hour.

    Every dev at the company is on the rota once they’ve got a few month’s experience.

    Based in the UK.




  • I asked ChatGPT to summarize from the video transcript:

    “In the video, the presenter discusses a challenge in object-oriented programming related to changing the runtime type of objects. Using the example of invoices in a bookstore application, they demonstrate how the State design pattern is commonly used to address this issue but comes with limitations. They introduce the functional programming approach as an alternative, emphasizing the creation of types rather than classes and the use of abstract records and extension methods. The functional programming approach simplifies the implementation, avoids the need to change runtime types, and offers advantages such as shorter code. The presenter encourages viewers to consider adopting functional programming principles, especially with the evolving nature of languages like C#.”

    I’m not entirerely sure I agree with his premise. I totally see the merits of functional programming (either pure or blended with traditional OOP), but I don’t think his example really solves the ORM problem any better than if he’d not used a deliberately contrived OOP example intended to make make his point look better.