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

help-circle
  • sarjalim@lemm.eetoProgramming@programming.devNodeJS vs Go
    link
    fedilink
    arrow-up
    13
    ·
    edit-2
    1 year 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.






  • What are you on about, we were asked to have face masks on public transport, in grocery stores, in hospitals etc. Lots of selfish people refused to have the decency to protect others from themselves, but still.

    We had worse outcomes compared to Norway, Finland, Denmark. Not necessarily due to the inability of people like you to wear masks, but nothing to brag about.

    As a swede: your opinion is in the minority, and it’s embarrassing that you have to invoke some sort of “Swedish superiority” mentality. Please stop importing the very worst ideas from the US.


  • Sure, that’s technically an issue, but not something that will probably ever become an issue in practice. Prosecutors who get a police report on their table evaluate the merit of the case and choose whether to dismiss it or prosecute it. So while this law could be abused because of a fuzzy definition of “creed”… It would have to be a very elaborate scheme where you’d have to fool both the public and the police that your case is within the spirit of the law, a prosecutor, and then finally a judge and five jurors (Sweden doesn’t have a jury system with regular citizens), for extremely little gain? Swedish courts tend to be conservative with punishments and fines. Just wildly guessing here, but a normal fine amount for this type of crime could probably range from $500 to $5000, and this is not awarded to the defendant. There can be damages awarded as well, though damages are generally very unimpressive in Sweden and of similar amounts to fines. There are other problems with the wording of this law that I think are more egregious, I’m not under any illusion that it’s a perfect law even though I agree with the sentiment and spirit.

    The full law run through Google Translate:

    Chapter 16, 8 § Anyone who, in a statement or in another message that is disseminated, threatens or expresses contempt for a national group or another such group of persons with allusions to race, skin color, national or ethnic origin, creed, sexual orientation or gender-transcending identity or expression, is sentenced for incitement against a national group to imprisonment for a maximum of two years or, if the crime is minor, to a fine.

    Remember that, while the translation is actually very accurate imo, there are words that have a slightly different nuance in Swedish, and some words here that exist in Swedish but don’t have a full equivalent in English. “National group” isn’t very correct here as a translation of folkgrupp, and “creed” is an ok but not 100% translation of trosuppfattning. “Contempt” is close, but the nuance is a bit different in the original missaktning.

    Some other issues: What is a “message”? What does “expresses contempt” mean here, what constitutes expressing contempt? Is a Quran burning a message, or does the context of the Quran burnings imply a message in this case? Where is the line drawn for “expressing contempt”?

    Courts are very protective of the Swedish constitutional right to free speech, which is why the recent Quran burnings are characterized by many legal experts as legal and valid religious critique. But others instead argue that the main intent here was not to critique religion, it was to incite, provoke and disrespect.

    It’s a fuzzy line to walk, but there is a pretty high bar for sentencing something as incitement under the cited law, when it stands in opposition to the constitutional right to free speech.


  • I agree. You shouldn’t be persecuted or harassed regardless of your religious beliefs, you should be equally protected regardless of if you are a Satanist, Wiccan, or whatever.

    The actual wording of the law when translated from Swedish is closest to the English word “creed” I think, not “religious belief” as I wrote in my original comment, but I thought religious belief was a smidge clearer. I’m obviously not a native English speaker so I do my best.

    And to further adress the “but what if I believe in My Little Pony would that count”, I mean… the spirit of the law does matter to the judges, you’d have to make a very strong case as to why you and your three friends should count as a protected “group” and why dismembering My Little Pony figurines is necessarily incitement against your group. I’m 99% sure no prosecutor would take you seriously. But I don’t know, I am not a legal practitioner. It’s up to the prosecutors to decide if a case seems to have merit, and then it’s up to the court to try what should and shouldn’t count as incitement under the law.


  • Two reasons:

    The law regulating what the police are allowed to forbid is very limited. They can deny permission for a demonstration due to traffic disruption, but not threats of terrorism or international relations. It’s currently being debated in the Riksdag (the supreme legislative body).

    Secondly, the police are in their rights to deny permission for protests/demonstrations that are clearly illegal for some reason. The legislation regulating incitement against ethnic groups (which Muslims are covered under) is fuzzy however, and this is mostly uncharted territory. Context matters for the letter of that law, in legalese the law forbids certain “verbal statements or messages” with a purpose to incite ethnic groups. But is burning the Quran a “message”? Arguably yes (imo) in this context, but it hasn’t been tried.

    There was a dismissed case tried in court with a Quran burning, but the context there was different. There have also been some police reports regarding other Quran burnings that were never prosecuted, because the prosecutors only put forth cases to trial that they are convinced that they can win (this is how the system is designed).

    What we are waiting for is a case that fulfills, or seems to fulfill, the letter of the incitement law with regards to context, that will be prosecuted and tried in courts all the way up to the supreme court.

    The previous Quran burning might fulfill those criteria (burned Quran outside a mosque during Eid). It has been reported to the police and we are waiting to see if the case will be brought to trial.


  • Copied my comment response from another post because I think it’s relevant to nuance the debate and combat disinformation:

    I personally don’t think it should be allowed to actively provoke and incite hatred against an ethnic group. Sweden already has a law specifically against this (incitement against ethnic group), which lists religious belief as a group covered by the law. However, there has only been one case that went to the courts trying specifically a Quran burning, and the context was a bit different so it was dismissed. The Quran burning previous to the one in the article has been reported to the police, and imo it should go to trial so we can test the limits of the incitement law. That Quran was burned directly as a statement outside a mosque, during Eid, which is a context that could be illegal under that law.

    To clarify, people should be able to burn whatever books and symbols they want and express whatever vile or justified opinions they have under freedom of speech in Sweden- but not in every context and forum everywhere, as direct provovation and incitement. This is actually the majority opinion of Swedes (source in Swedish).

    But we’ll see what happens. I discussed this with a lawyer I know, who agreed that it should be prosecuted and go to trial so we can see how it fares in court.


  • 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.



  • Yes, and I answered that I think there are more factors, but that tax burden is a big reason?

    An American company which has 100 employees located in America and 2 employees located in Europe will have a smaller total tax burden as a company, than a European company with 102 employees located in Europe. Same number of employees, very different bottom line tax burden. The American-based company can thus afford to pay their few European employees more, to outcompete European companies on salary on the labor market.


  • I couldn’t tell you why individual American companies in Europe pay more, but I’m guessing a big part of it is the difference in tax burden for companies based in Europe vs America. American companies have the majority of their employees in the US, and for these employees they pay much less into the system than Europe based countries so are able to pay more for a few European employees.

    For example, payroll taxes/social fees (the fees and taxes your employer pays on your behalf) and corporate taxes are much higher in North Europe than in the US. Sales tax/VAT is higher in Europe and, while it’s technically paid by customers, companies have to take the sales tax surcharge into account when setting the prices for their goods and services to be competitive on a global market. That means they can’t afford astronomical salaries.