• 0 Posts
  • 32 Comments
Joined 2 years ago
cake
Cake day: July 1st, 2023

help-circle

  • arc@lemm.eetoLemmy Shitpost@lemmy.worldCommon British L
    link
    fedilink
    arrow-up
    4
    ·
    edit-2
    1 month ago

    Stole it? I think adopted is more apt. And curry isn’t one thing and varies from region to region in India. But Britain loved it so much that there is an Indian (or Pakistani) restaurant practically everywhere. And while Indian / Pakistani chefs have invented new dishes (e.g. chicken chasni is the best goddamned curry ever), I wouldn’t call it cultural appropriation.


  • British people love curries and other spicy things. For most people curries, biriyanis are going to be in the rotation. Even “traditional” British food will usually have things like black pepper, nutmeg, mace, ginger, cumin, cloves, mustard, bay leaves, juniper berries in it. More recently cumin, paprika, tumeric, coriander, curry powder might be thrown into dishes.




  • arc@lemm.eetoComic Strips@lemmy.worldISO 8601
    link
    fedilink
    arrow-up
    30
    ·
    2 months ago

    The sane way of dealing with it is to use UTC everywhere internally and push local time and local formatting up to the user facing bits. And if you move time around as a string (e.g. JSON) then use ISO 8601 since most languages have time / cron APIs that can process it. Often doesn’t happen that way though…



  • AI is certainly a very handy tool and has helped me out a lot but anybody who thinks “vibe programming” (i.e. programming from ignorance) is a good idea or will save money is woefully misinformed. Hire good programmers, let them use AI if they like, but trust the programmer’s judgement over some AI.

    That’s because you NEED that experience to notice the AI is outputting garbage. Otherwise it looks superficially okay but the code is terrible, or fragile, or not even doing what you asked it properly. e.g. if I asked Gemini to generate a web server with Jetty it might output something correct or an unholy mess of Jetty 8, 9, 10, 11, 12 with annotations and/or programmatic styles, or the correct / incorrect pom dependencies.




  • Linux has made leaps and bounds with usability and ease of installation but it’s no better than any other modern OS - which is a good thing. Installing Windows from a USB stick is not difficult - the simple path is literally, pick a language, select your wifi, choose who is logging in, click install and go grab a coffee. About the only difficulty if you can call it one is that some installs will ask for a serial number because it’s a commercial product.

    Also, the number of questions & buttons during installation is one thing but the certainty of a functioning system is another. Linux is better at supporting old hardware, Windows is better at supporting new hardware. Choose accordingly if that matters.









  • I once developed an electronic program guide for a cable TV company in New Zealand and I’d lose my mind if I had to use timezones. The basic rule of thumb was:

    a) Internally you use UTC religiously. UTC is the same everywhere on Earth, time always goes forward, most languages have classes that represent instants, durations etc. In addition you make damned sure your server time is correct and UTC.

    b) You only deal with timezones when presenting something to a user or taking input from a user

    Prior to that I had worked for a US trading company that set all their servers to EST and was receiving trades through the system which expressed time & date ambiguously. Just had to assume everywhere that EST was the default but it was just dumb programming and I bet to this day every piece of code they develop has time bugs.


  • Rust isn’t really OOP like C#, Java or C++ - it has structs with functions that you could consider an “object” but there is no inheritance. Instead Rust uses traits which are a little bit like interfaces in some languages.

    The way the kernel is using Rust at the moment is to produce safe bindings for modules to be written in Rust, i.e. you can create a module in Rust source which will be correctly loaded up, the code is safe by default and will have access to kernel services via bindings. I expect over time that more of the kernel will become Rust, but the biggest impediment right now is Rust relies on LLVM and LLVM only supports a subset of targets that a kernel could potentially support with another compiler like gcc.