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

help-circle
  • Yes, agreed, some of it is probably just bluster to seem like they’re doing something.

    However, even if we agree that more police resources are necessary, I don’t know how we should get more of competent, educated police in the short term unless we involve military (who do have some education at least). The last thing I want is for us to rapidly employ new “police” (ordningsvakter) with only weeks or a few months of training - that’s how we get additional problems with US-style police violence on top of the gang violence problems…


  • I agree that the current government is implementing exactly 0 long-term strategies to help deal with the root cause of the problems, like strengthening and financing social services and welfare, healthcare and mental healthcare, schools and social programs, decriminalizing some drugs etc, to curb influx of underage criminals into the gangs and remove some of the economical incentives. The opposition is coming out with good suggestion after good suggestion, and the right-wing (by Swedish standards) government has basically just slashed welfare across the board in practice. They are going for only the hard-on-crime approach, which as far as I know has no real scientific proof of long-term efficacy unless paired with social/community interventions.

    However, I think many swedes agree that the police need more resources - particularly people watching possible targets of future bombings and just more eyes on the gangs. We have one of the lowest number of police per capita in Europe, slightly higher than the rest of the Nordic countries tbf, but with much bigger problems with organized crime and violence.

    I’m also horrified at this general societal development, but I can see the merit of involving some of the military in more eyes-on-the-ground kinds of operations for a few years until we have more of a grip on the gang situation. I prefer that to visitation zones, harsher punishments and more generalized surveillance of non-suspects being allowed.

    But maybe I’m just naïve to the implications.




  • sarjalim@lemm.eetoProgramming@programming.devNodeJS vs Go
    link
    fedilink
    arrow-up
    13
    ·
    edit-2
    11 months ago

    As someone else already said, don’t overthink the language choice aspect in general. If you learn almost any imperative language with C-like syntax (Go, JS/TS, C#, Java etc), picking up another one in the same “family” to a usable degree will be a very minor hiccup done within a very short time (hours). Sure, there are quirks and special syntax and different collections of built-in features for each one, but as a developer you will likely switch between several anyway and need to look up syntax from time to time - you know that something can be done, but the details how are a bit fuzzy.

    For instance, I code mostly in C# and JS/TS, but we have legacy applications written in VB.NET so I often google VB syntax for things that I know how to write in C#. I also occasionally code in C, have dabbled in Fortran, Python and PHP and I’m sure I’m forgetting one or two. SQL and LINQ syntax too of course. What you learn on your developer journey is that something can be done, but remembering the specific implementation in a specific language might be a job better suited for your search engine. That said, of course it’s good to start with one language that you know pretty well, but it seems like you’re already there with Python.

    The real challenge is learning the methodology of building applications, philosophy of OOP, patterns and program/application architecture and frameworks. Language choice is very much secondary to those areas of expertise imo.

    Personally though, I am partial to JS/TS as I’ve used those the longest, they are extremely versatile and frontend development is my favorite area.



  • I’m honestly not necessarily a BEM fan as class names become literally huge if you don’t rely a bit on nested elements (targeting nested classes is not very BEMmy - but SASS makes it so convenient). But haven’t found a naming convention or “framework” that does the job better. BEM also doesn’t address how you should organize the style library for maintainability. I just use my own simplified structure based on ITCSS now.

    I just wish that someone could make a methodology or an architecture of building style libraries that felt obvious and was more plug-and-play, I hate that I feel like have to revisit the style library organization and naming convention for each new project to reevaluate if it makes sense for the scope of the project.

    Then again, I work as a fullstack dev in a small team of more backend-focused fullstack devs, so I don’t do frontend as often as I’d like and don’t really have anyone to discuss these issues with.




  • If I understand correctly (and I’m not 100% sure I do), localhost in a Docker container lives in it’s own little network which is not the host’s network.

    The container is its own localhost, which has its own ports (which is why you have to map an internal localhost port to a host PC localhost port for every container you wish to access). This means that Prowlarr in your case, has no idea what localhost:4666 should be since in Prowlarr’s localhost universe there exists nothing on that port. To access what the host knows of ports (instead of the container), you have to write the host’s address from inside the Prowlarr container.

    I hope that wasn’t impossible to follow 😅

    Now that I think about it (haven’t tried myself though) you could possibly add the mapping of port 4666:4666 to the Prowlarr Docker compose setup and then use localhost:4666 to access qBittorrent from inside Prowlarr.




  • sarjalim@lemm.eetoSweden@lemmy.worldLemmy och kommunisterna
    link
    fedilink
    arrow-up
    5
    ·
    edit-2
    11 months ago

    Håller med skaparen av lemm.ee (min heminstans) om att defederering på instansnivå helst inte är önskvärt utom i sista hand eftersom det skapar åsiktsbubblor. Jag kollar aldrig något annat flöde än mina egna subscribed communities, så har inte sett något alls från Hexbear eller Lemmygrad ändå förutom när jag själv har gått in och kikat pga nyfiken. (Så ja, jag bor ändå i en bubbla…)

    Snart kommer man ju tydligen också kunna defederera från/blocka en Lemmyinstans direkt med sin användare som jag fattar det, och då finns det betydligt mindre värde i att ens heminstans ska ta beslutet om vad som ska vara federerat eller inte tycker jag.

    Med det sagt så håller jag med om generella kritiken gällande Hexbear och Lemmygrad i många communities där. De är ofta märkligt, aggressivt propagandistiska och defensiva när det gäller Kina, Ryssland och Sovjet, och anti-Ukraina. Nu tycker jag kanske inte att väst och Nato och USA och västmedia alltid är helgon som sitter på Sanningen™, men Hexbear/Lemmygrad är som att titta på sin konspirationsteoretiska högerextremistiska farbrors Facebookflöde (eller r/conservative på Reddit) fast i uppochnervända världen. Då är jag politiskt vänster, men jag har väldigt svårt att hålla med om takes i trådarna där.


  • Håller med. Dessutom, om jag ser att jag kanske behöver betala returfrakt så brukar jag göra som man inte ska göra, dvs beställa flera storlekar av varje grej och samtliga/fler modeller som ser liknande ut och kanske kan vara bättre i passform eller utseende i verkligheten. Dvs det blir då garanterat en returfrakt, som jag istället kallt räknar in i priset. Men eftersom jag beställer “alla” storlekar (kanske S och M t ex, eftersom jag ligger emellan) och liknande modeller så behöver jag inte beställa igen, och slipper då ytterligare returfrakt.

    Men det är såklart ett förkastligt köpbeteende ur miljöhänseende.


  • Det hade varit väldigt intressant att se även som konsument, för att kunna rannsaka sitt eget beställnings- och returmönster i jämförelse med andra. Jag köper en hel del online (0-4 beställningar i månaden) via Zalando, och är ibland orolig att jag returnerar “för mycket”. Då beställer jag inte 3 olika storlekar av varje plagg alltså, utan beställer de kläder eller prylar jag vill ha i en storlek jag tror ska passa. Men har väl inte “modellkroppen” som kläder sys upp för (jag är kort och kurvig, inte lång och rak) och rätt ofta passar det inte storleksmässigt eller stilmässigt helt enkelt. Är också såklart petigare med passform av dyra plagg/skor, eftersom det då är mer pengar det handlar om.




  • I’ll admit I got annoyed that OP seemed to almost deliberately misunderstand or discount other perspectives or answers. It makes their pretty open question seem disingenuous. I assume people ask questions because they’re interested in other people’s perspectives on a topic, rather than just wanting to hear that they are right?

    Possibly OP just failed to communicate why they feel as they feel with regards to the relative value of welfare systems, taxes, and salary (they clarified somewhat later in another thread), but it’s frustrating to see other people’s well thought-out answers being discounted or strawmanned without actually being refuted. That rings my troll warning bell, or imo is a sign of someone who can only see the world through one particular lens.


  • No problem. My impression (based on an extremely small sample size though) is that there are some trade-offs to working for American companies in Europe, like your American managers not understanding that there are strong labor laws here giving you the right to take cohesive vacation, sick leave and parental leave. Work hours (meetings booked in the late PM for us) and 24/7 availability expected and degraded work-life balance. Essentially that some of the American work culture bleeds over across the pond.

    That probably varies a lot from company to company, manager to manager and job description as well though.

    The US companies do seem reward talent and performance (or the appearance of talent and performance) with great pay. On the flip side they will also drop you in the blink of an eye of you have a period with mental or physical health problems, or aren’t getting good KPI metrics for a while due to circumstances outside of your control (poor management, bad KPIs, being inbetween projects etc).

    I guess what I’m getting at is that American jobs are more “big risk, big reward” (but they will discard you the moment you aren’t as useful) and European companies don’t really work like that.

    But I do personally agree with you in general, that European companies both can afford and morally should pay better. However, I feel that that conversation is a different one than the European-American work culture and pay divide.