Skip Navigation
Stop Using `<>` for Generics
  • You call things the way they were defined. Problem solved.

    What?

    I’m kinda confused, because this is the second time now where your attempt at making a counter argument is actively supporting my point. Is this intentional at your part?

    We are ultimately arguing about subjective preferences. I favor of certain syntactic sugar because I believe it improves readability while you seem to be arguing for strict consistency above all else.
    So by what metric are we measuring our points?

    No we don’t. If your point relies on Turing-tarpitting the whole discussion … then you have no point.

    I admit, that was hyperbolic, but I don't see what syntax for data manipulation other than functions would be left in your ideal language.

  • Rentnerin fährt nicht in Dinge - Zu langsam mit Auto auf der Landstraße gefahren: Seniorin hat mächtig Ärger mit der Polizei
  • Nun solle geprüft werden, ob die Seniorin ihren Führerschein behalten darf oder ihn abgeben muss.

    Wer Fußgänger überfährt weil er 50 km/h zu schnell fährt oder medizinische Probleme hat, kommt davon, aber wer aus medizinischen Gründen 50 km/h langsamer fährt beeinträchtigt ja Autofahrer und wird aus dem Verkehr gezogen.

  • Stop Using `<>` for Generics
  • Some functions also don't have any parentheses, like field access or infix operators.
    Who wants to write

    sqrt(p.x*p.x+p.y*p.y)
    

    when they could write

    sqrt(p.getX().square().add(p.getY().square()))
    

    or even

    sqrt(add(square(getX(p)), square(getX(p))))
    

    We could follow this line of thinking further and arrive at an ugly haskell-like language without pattern matching (because that is an artificial distinction between data in a record and data that can be derived from a record) or operators and barely more enjoyable to write that lambda calculus.

  • What’s blocking students from building real-world projects in college?
  • It's the real world part.
    I have written a SMTP-Server in C and some crud services in java, but everything ran on localhost.
    If I wanted to expose them on the web I would have to ensure the code is actually secure, ensure compliance with data protection regulations, moderate user generated content, get ssl certificates, a domain and server hosting.
    Half those steps are one minor mistake away from a large bill.

  • Pilze und Bakterien auf Fassaden können Häuser kühlen und Straßen beleuchten
  • günstigen Bedingungen könnten Cyanobakterien bis zu ein Kilogramm CO2 pro Quadratmeter und Jahr

    Ein Mensch atmet 1kg CO2 am tag aus und verursacht gut zehnmal soviel durch fossile Brennstoffe.

    Wenn tatsächlich viel gebunden ist, stellt sich die Frage:
    Wer geht das regelmäßig Ernten, bevor es abstirbt und wieder als CO2 freigesetzt wird?

    Oder wird hier (wie im verlinkten hydrogel artikel) über Kalk Bildung geredet? Dann möchte ich wissen wo das nicht-gebundene Calcium herkommen soll.
    Aus der Natur bestimmt nicht, da es da bereits CO2 bindet.

    Das ganze ist wie ein paar Bäume pflanzen um den Klimawandel aufzuhalten, es ist viel zu wenig und nicht geklärt wo der Kohlenstoffs langfristig gelagert wird. Stadtdessen muss einfach weniger ausgestoßen werden und dafür brauchen wir systematische Veränderungen.

    eines Tages sogar Straßenlaternen ersetzen

    Straßenlaternen die nur nach unten zeigen verursachen bereits genug Lichtverschmutzung, wieso wollen wir welche die in alle Richtungen strahlen?

  • Keine deutschen Namen? Streit um Hütten in Südtirol
  • Im Artikel steht nur, dass die Hütte Südtirol gehört, nicht wer sie betreibt und wenn wenn sie von einer italienischen Sektion betrieben wird würde ich mich freuen, wenn die Hütte nach dieser benannt wird. Wenn sie von Südtirol direkt betrieben oder an privat verpachtet wird, ist es mir egal, solange es nicht verwirrend ist.

    Ich habe meine allgemeine Meinung zu einer allgemeinen Meinung beigetragen, welche sowohl in Deutschland als auch in Italien gelten kann.

  • Keine deutschen Namen? Streit um Hütten in Südtirol
  • Ich als Wanderer finde es praktisch wenn ich nicht vor einem Wegweiser stehe, an dem dreimal der gleiche Hüttennamen steht. Wenn man sei nach orten im Tal benennt gehen schnell die Namen aus und Spitzen/geographische Besonderheiten sugestieren dass sie sehr nah sind oder auf dem besten weg dahin liegen.

    Das die Sektionen die die Hütte betreiben etwas Wertschätzung bekommen ist auch schön, aber ich könnte mir auch Namen örtlicher Alpinisten oder anderer Personen mit besonderer Beziehung zu den Bergen vorstellen.

  • Kulturfreitag
  • Wir waren bei der Langen Nacht aufgrund Zeitmangels nur im BESSY Elektronenbeschleuniger in Adlershof, aber es war die richtige Entscheidung.
    Dieses Wunderwerk der Technik aus der Nähe zusehen ist schon etwas besonderes und die Experimenten die damit betrieben werden sind vor allem Bio und Chemie, also ist für alle etwas dabei.

  • Rule 🦅
  • Nah, capital controls the US. Israel is just useful to fight a forever war and funnel money to the MIC.
    Shutting down critics under the guise of antisemitism is just a nice bonus.

  • C++ Encounters Of The Rusty Zig Kind
  • Rather than dealing with this ‘cargo’ remote repository utility and reliving traumatic memories of remote artefact repositories with NodeJS, Java, etc., we’ll just copy the .rs files of the wrapper directly into the source folder of the project.

    [forgets to copy some files]

    [complains about compiler error]

    This guy is a moron of the first order!

  • Sticker @feddit.org anton @lemmy.blahaj.zone
    🟤🠲🟢

    PS: Ich habe erst beim Verfassen dieses Post gesehen, das da Schächten und nicht Schlachten steht. Schächten ist rituelles Schlachten, wie es im Judentum und Islam praktiziert wird. Da es oft ohne Betäubung durchgeführt wird, wird es von Tierschützern kritisiert. Das Verbieten von Schächten war eine der ersten Formen der Diskriminierung Nazis gegen Juden, jetzt wird es gegen Muslime ins Feld geführt.

    0
    If you thought missiles were disruptive to trade, wait til you see what policy can do

    cross-posted from: https://lemmy.ml/post/27833143

    context

    transcript

    DISRUPT INTERNATIONAL SHIPPING NOW!!

    OGEY

    Niche ocean carrier Atlantic Container Line is warning the fines the U.S. government is considering hitting Chinese-built freight vessels with would force it to leave the United States and throw the global supply chain out of balance, potentially fueling freight rates not seen since Covid.

    “This hits American exporters and importers worse than anybody else,” said Andrew Abbott, CEO of ACL. “If this happens, we’re out of business and we’re going to have to shut down.”

    [...] U.S. is no position to win an economic war that places ocean carriers using Chinese-made vessels in the middle. Soon, Chinese-made vessels will represents 98% of the trade ships on the world’s oceans.

    Hey, Abdul-Malik Badr Al-Din Al-Houthi, how'd I do?

    Thank you Mr. President, that's exactly what I meant. But why-

    Another day, another banger

    2
    ich📜iel

    Bildbeschreibung:

    Magie Karte mit Titel Sitzungsvorstand

    Textblock: {t}{1} Ordnungsruf: Plaziere einen Ordnungsrufzähler auf einer Karte auf dem Feld. Wenn eine Karte 3 oder mehr Ordnungsrufzähler hat, kann sie nicht angreifen und keine Fähigkeiten aktivieren. {t}{X} Sitzungsausschluss: Verbanne eine Kreatur mit Kosten X oder weniger, für X Runden. Wiederspruch X: diese Fähigkeit kann für X gekontert werden.

    4
    [Feature Request, workaround exists] Add to the list of instances opened in app

    Sometimes I come across links to communities or posts on instances that are not in the list of links the app recognizes as lemmy. Instead they open a browser tab. Given lemmys growing and decentralized nature it's unreasonable to expect devs to keep up with that. Please enable users to add to that ever growing list, at least for their own account. I understand that such a feature is may be far in the backlog or may never come at all, in the meantime I would be happy if you added the feddit.org domain to the list as feddit.de seems to be migrating there.

    Workaround: Apparently it works with the ! community @ instance links like !ich_iel@feddit.org but not normal links feddit.org/c/ich_iel

    1
    AutoTL;DR support @lemmings.world anton @lemmy.blahaj.zone
    The bot got stuck on a newsletter sign up form.

    This is what the bot posted:

    This is the best summary I could come up with:

    ---

    The Reuters Daily Briefing newsletter provides all the news you need to start your day.

    Sign up here.

    ---

    The original article contains 18 words, the summary contains 18 words. Saved 0%. I'm a bot and I'm open source!

    2
    InitialsDiceBearhttps://github.com/dicebear/dicebearhttps://creativecommons.org/publicdomain/zero/1.0/„Initials” (https://github.com/dicebear/dicebear) by „DiceBear”, licensed under „CC0 1.0” (https://creativecommons.org/publicdomain/zero/1.0/)AN
    anton @lemmy.blahaj.zone
    Posts 7
    Comments 852