There have been multiple accounts created with the sole purpose of posting advertisement posts or replies containing unsolicited advertising.

Accounts which solely post advertisements, or persistently post them may be terminated.

programmer_humor

This magazine is from a federated server and may be incomplete. Browse more on the original instance.

itsraining , (edited ) in Pure Evil

Technically I don’t think any Greek layout uses a different Unicode codepoint for the question mark. In fact, the ordinary semicolon symbol is used, so what the meme describes would probably not happen IRL.

Does all this make it any less funnier? No. It’s still brilliant.

luciferofastora ,

In Unicode, it is separately encoded as U+037E ; GREEK QUESTION MARK, but the similarity is so great that the code point is normalised to U+003B ; SEMICOLON, making the marks identical in practice.

Source: en.wikipedia.org/wiki/Question_mark

I’m still curious whether it would be accepted by the code interpreters / compilers of various languages. I’m not bold enough to assume they all normalise properly.

itsraining ,

Wow, thank you, didn’t know of that.

nxfsi ,

Unicode should have enforced the principle of using the same encoding for similar looking characters like they did with CJK instead of allowing bullshit like the Cyrillic “o” or the Greek question mark.

yum13241 ,

1,000% percent.

d_k_bo , in Unpaid community work is best!

ForgeFed is an ActivityPub Extension to allow cross-forge (git server) issues, pull requests etc. without having to create an account on each server. Forgejo (a Gitea soft-fork) is actively working on this integration.

lars ,

Whoa! I didn’t even know I could wish for such a future.

DrDeadCrash ,

Check out codeberg for a non-profit host for (instance of?) Forgejo.

redcalcium ,

Having this feature would be very useful. Many big open source projects run their own gitlab instance, which add extra frictions for contributing because you need yet another gitlab account just for those projects.

d_k_bo ,

Exactly, I think I have ~5 gitlab accounts and ~4 Gitea/Forgejo accounts.

tetris11 , in 0.30000000000000004
>>> 0.1 + 0.2
0.30000000000000004
>>> 1e16 * (0.1 + 0.2)
3000000000000000.5

Yes.

maniel , in 0.30000000000000004
@maniel@lemmy.ml avatar

Python?

magic_lobster_party ,

IEEE 754

newIdentity , in Pure Evil

Who uses semicolons in Javascript?

BearJCC ,

Old habits die hard. Learned JS, CSS and C++ all the same year about a decade ago.

seitanic ,
@seitanic@lemmy.sdf.org avatar

Programmers who care about best practices. Here are a couple of scenarios where

newIdentity ,

deleted_by_author

  • Loading...
  • seitanic ,
    @seitanic@lemmy.sdf.org avatar

    ~95% of the JS code you see on the Web has semicolons. Apparently, a lot of programmers think it’s worth that extra keystroke to avoid these types of bugs. I agree with them. The difficulty with programming isn’t “Arrgh, there are too many keystrokes, my hands are tired!” It’s “Arrgh, HTF did this bug get in here?!?”

    tryagain ,

    I don’t even bother typing them because I like having eslint do it for me.

    rockSlayer ,

    They made it a named function, but this is literally how you format anonymous functions in js, a key feature that usually gets called with stuff like an onclick or onload call in the html domain.

    tkarika ,

    Every real programmers

    psud ,

    In that sentence, we use “programmer” singular, because “every” is singular, though referring to many

    All real programmers

    Every real programmer

    Each real programmer

    No real programmer

    It’s pretty arbitrary

    Perfide ,

    People who like minimizing the amount of bug fixing.

    manapropos ,

    I use prettier which by default adds semicolons. Coming from predominately doing backend stuff (mostly in Java) I don’t really mind, especially when the formatter adds them for me

    newIdentity ,

    That’s what I do too, but i don’t manually add them

    NegativeLookBehind , in Pure Evil
    @NegativeLookBehind@kbin.social avatar

    Something similar happened to me a while back. I was copying some code from a Mac to a remote Linux host. For some reason the Mac was using a thing called an “en dash” which is slightly longer than a regular hyphen - and was really fucking frustrating to figure out.

    pthaloblue ,

    I don’t know why I’m here commenting about this, but I love type, so:

    Hyphen (-): the short one, used for hyphenated words. fire-eaters. Close-up.

    en-dash (–): slightly longer, traditionally the length of a lowercase"n" in the typeface. Used between for things like a timeframe. 10–11:30, August–October

    em-dash (—): the longest of the three, and the length of a lowercase “m”. Used as a punctuation mark to denote a side comment or to abruptly cut off a sentence. “It’s a great punctuation mark—in fact I overuse it—but it’s still useful.” “Hey where are you going with that giant—”

    I didn’t bother to double check the definitions, so there might be more specific rules, but these are my rules of thumb.

    Spiralvortexisalie ,

    Dictionary source for possible particulars: merriam-webster.com/…/em-dash-en-dash-how-to-use

    pthaloblue ,

    Ah this is nice!

    Chemical ,

    Thank you. I have learned something new today!

    lobut ,

    Some mac apps have some quirks, the default note app was probably not meant for pasting code in, but when you do it changes the quotes and makes them all fancy. Drives me up the wall and there’s nobody to blame but me.

    NegativeLookBehind ,
    @NegativeLookBehind@kbin.social avatar

    I blame Steve Jobs.

    Gullible ,

    Let’s dig him up and put him on trial. If it’s good enough for the pope, it’s good enough for him.

    jadedwench ,

    I was looking for this. Some text from webpages end up pasting that way too, even on non-mac systems, and it is utterly infuriating. Nothing I hate more than having to paste something into notepad++ so I can fix all the stupid quotes from some online tutorial that is giving you things to paste into a command prompt.

    AlexWIWA ,

    Ah, my favorite character. I abuse the hell out of the em-dash.

    psud ,

    For someone who abuses it, there is a remarkable absence of em-dashes in your comment :—)

    superfes , in 0.30000000000000004

    Of all the garbage I was happy to not see on Lemmy…

    MonkderZweite , in Programming Languages as Essays

    Unpopular opinion: Ruby is too widely used, because it’s the least performant language.

    Sometimes even for stuff, where performance matters (Asciidoctor).

    lars ,

    Yeah I usually run my backend in Asciidoc too. The level of its performance might surprise you.

    Quill7513 ,

    Ruby’s popularity in the early 10s thanks to Ruby on Rails feels like it happened by accident. The language is hard to read and low performance, but Rails is completely automagic. But this is also the worst thing about rails. You create your app fast, but then maintaining it is expensive because you can’t onboard new developers easily. Even if they’re familiar with rails’ automagicisms, it will take them quite some time to parse what the hell the code is doing.

    Meanwhile I seem to recall Ruby’s creator finding the situation of his language being popular because he’d created it as an experiment and never thought it would be used in production grade environments

    AnomalousBit ,

    language is hard to read

    
    <span style="color:#323232;">for item in array do
    </span><span style="color:#323232;">  puts item[:name]
    </span><span style="color:#323232;">end
    </span>
    

    Whew, iterating and working with data in Ruby is so hard. How does anyone read this stuff.

    low performance

    Ruby is a syntax-sugar-loaded C-wrapper, just like Python and countless other languages that don’t compile straight to machine code. If anything other than C and Rust are slow to you, then sure, maybe Ruby isn’t a good fit for your project (but Crystal might be).

    create your app fast

    Damn right, I’m two or three times as productive as I ever was in C#/Razor, Java/Spring or kludging through the countless JS boilerplate-heavy web frameworks.

    but then maintaining it is expensive

    As with any app that grows into something successful and widely used, technical complexity becomes exponential. I’ve found once web applications grow to a certain number of models and controllers, the relationships between them start to grow exponentially as well. This means one small change can ripple throughout your application and have unintended consequences where you least expect.

    This is not even remotely a unique problem to Ruby. It’s happened across every project I’ve seen that grows beyond 30 models and a couple of dozen controllers, regardless of language. This is why unit testing is so important.

    But, specifically you mentioned you can’t “onboard new developers easily”. I don’t see how. I’ve taken two CS grads straight out of college and had them adding features with tests within a couple of days on Ruby projects. Ruby was designed to be most friendly to humans, not the compiler. If Rails is what is tripping you up, imagine trying to learn a new web framework on top of an even more complicated language than Ruby. I just don’t see this argument at all, from my experiences.

    Ruby’s creator finding the situation of his language being popular because he’d created it as an experiment

    Pretty sure most any language that was created by an individual and not by BigCorp™ is a feat in and of itself. This speaks more widely to a language’s capabilities and value if it can reach popularity without corporate backing. This argument seems to imply that because of it’s origin, it will always be some kind of experimental toy that was never intended for wide-use.

    Meanwhile, Linus Torvalds:

    I’m doing a (free) operating system (just a hobby, won’t be big and professional like gnu) for 386(486) AT clones.

    Things have to start somewhere, I guess?

    I kindly ask you to be more constructive in your criticism of Ruby. It’s a great, powerful language with a low barrier to entry. There’s no reason to spread FUD about it.

    morrowind ,
    @morrowind@lemmy.ml avatar
    
    <span style="font-weight:bold;color:#a71d5d;">for</span><span style="color:#323232;"> item </span><span style="font-weight:bold;color:#a71d5d;">in</span><span style="color:#323232;"> array </span><span style="font-weight:bold;color:#a71d5d;">do
    </span><span style="color:#323232;">  </span><span style="color:#62a35c;">puts</span><span style="color:#323232;"> item[</span><span style="color:#0086b3;">:name</span><span style="color:#323232;">]
    </span><span style="font-weight:bold;color:#a71d5d;">end
    </span>
    

    What’s with the weird syntax, isn’t idiomatic ruby

    
    <span style="color:#323232;">array.each </span><span style="font-weight:bold;color:#a71d5d;">do </span><span style="color:#323232;">|item|
    </span><span style="color:#323232;">  </span><span style="color:#62a35c;">puts</span><span style="color:#323232;"> item[</span><span style="color:#0086b3;">:name</span><span style="color:#323232;">]
    </span><span style="font-weight:bold;color:#a71d5d;">end
    </span>
    

    (or the shorthand version)?

    AnomalousBit , (edited )

    First time I’ve ever heard someone call a for loop “weird“. They’ve been around for 50 years 😂

    The whole point was on readability, not trying to make rubocop be quiet. Sure, .each is great, but I’m not sure about it being shorthand. What did you save? Like 3 characters? I find the for loop more readable unless I’m method chaining.

    morrowind ,
    @morrowind@lemmy.ml avatar

    Not in ruby, the for loop was initially put there to make it friendly for people from other languages and is discouraged. It’s just syntax sugar on top of each.

    By shortand version I meant

    
    <span style="color:#323232;">array.each(</span><span style="font-weight:bold;color:#a71d5d;">&</span><span style="color:#323232;">amp;</span><span style="color:#0086b3;">:to_s</span><span style="color:#323232;">)
    </span>
    

    (although in this case I’m not calling puts anymore)

    edit: lemmy keeps putting the &amp; there, but you know what I mean

    AnomalousBit ,

    Not in Ruby

    It’s valid syntax, it’s part of Ruby. It’s easy to read and familiar across many languages. Write what you want to write, I’m not sure why you feel the need to finger wag.

    larouxn ,

    Was about to say as someone who’s been using Ruby for over a decade, 8 of which professionally, I’ve never once come across a for loop. each on the other hand, all day every day.

    Slimy_hog ,

    “ruby is hard to read” is a really strange take…

    snowe ,
    @snowe@programming.dev avatar

    Yeah there’s multiple people in here saying that and it seems like maybe they’ve never actually written Ruby. I don’t think Ruby is a good language for writing business apps in, but it’s incredibly easy to read. Way easier than pretty much every single language out there.

    Now if you start including shit like rails, sure. But that’s not Ruby. That a framework and just like Spring or Django or Boost or whatever, it has its own semantics and can be incredibly difficult to read. That has nothing to do with the language though.

    morrowind ,
    @morrowind@lemmy.ml avatar

    It’s as performant as python which is way more widely used.

    MonkderZweite ,

    No, there circulated a performance list a while ago. Python was in the lower third while Ruby was bottom.

    morrowind ,
    @morrowind@lemmy.ml avatar

    Which benchmark are you talking about? The most common I know of is the computer language benchmarks game, here’s a nice implementation of it.. You can see ruby is actually a decent bit faster.

    It’s an annoyingly persistent myth that ruby is significantly slower than python.

    Thyrian , in Apple donation

    Was propapbly an emberassed employee paying it out of his own pocket, just pretending his company would even care a tiny bit.

    TheTetrapod ,

    The last time this was posted, people were speculating that Apple does donation matching for employees, so they only did this unconsciously.

    Schmeckinger ,

    Last time this was posted someone said apple matches employee donations and someone probably donated 24 and apple matched it.

    PP_BOY_ ,
    @PP_BOY_@lemmy.world avatar

    $5-24*

    But yeah, this is 100% the case of Apple matching an employees donation

    RustySharp ,

    Or, someone donated 2.5-12, Apple matched it and filed the whole thing under their corporate account.

    magic_lobster_party , in Programming Languages as Essays

    Unity: handing me over the essay is going to cost you extra.

    Typescript: is this a declaration of war?

    captain_aggravated ,
    @captain_aggravated@sh.itjust.works avatar

    GDScript: This is plagiarism. You can’t just write “extends essay2d.”

    backhdlp , in Unpaid community work is best!
    @backhdlp@lemmy.blahaj.zone avatar
    onlinepersona OP ,

    He presented the issue with gitlab very well. Setting up an entire new account is the major reason (besides time) I don’t contribute to projects on other gitlab instances. For some reason Gitlab management didn’t think it important at all (maybe even considered it a feature).

    FarraigePlaisteach ,

    Their documentation has been frustratingly outdated at times too. But since GitHub is MS owned there are better options. I prefer codeberg for having an actual account on.

    janAkali , (edited )

    Actually, Librewolf team set up recently a poll “should we move to Codeberg?”. And this was one of the reasons for migrating.

    P.S. other privacy/convenience issues with gitlab:

    • gitlab.com seems to require credit card information for new users signing up, which is not really great if people just want to report bugs.
    • gitlab.com uses Cloudflare, which for a few weeks locked out LibreWolf users from accessing gitlab.com in the past.
    • GitLab requires Javascript even to just look at issues, which is not the case for Codeberg

    P.P.S. They did move their codebase to Codeberg as a result.

    twistypencil ,

    Not true, I just tried to sign up:

    https://lemmy.world/pictrs/image/292a7658-41f1-4f2b-a063-899782cf5cc3.png

    Appears to be optional, if you don’t want to use a phone number.

    isVeryLoud ,

    Yeah, been using GitLab semi-professionally for a while and have accounts on multiple instances, it never asked me to have a credit card on file, and I just don’t put in a phone number. Saying that it requires it is sensationalism.

    odium ,

    It requires it in countries other than the US

    isVeryLoud ,

    I’m Canadian

    odium ,

    I guess Canada also doesn’t need credit cards. But as you can see from this comment, there are countries in which credit cards are required: lemmy.one/comment/3041845

    janAkali ,

    From what I remember, they require a credit card info for people outside of US. Here’s my sign up screen with Netherlands VPN:
    https://lemmy.one/pictrs/image/ecc78420-4b82-4f22-9423-74fb244e9dd9.png

    sbv , in Apple donation

    freebsdfoundation.org/our-donors/donors/?donation…

    $250-$499 range.

    Meanwhile BlackBerry donated in the $10k+ range. 🤣

    Aatube ,
    @Aatube@kbin.social avatar

    but blackberry doesn't donate or make systems anymore...

    sbv ,

    Apparently they have cash enough to donate. 🤷

    Aatube ,
    @Aatube@kbin.social avatar

    <del>No, I'm saying they aren't in the donors list either</del> Oh wait I just saw they're in the partners zone, nevermind!

    ledtasso , in It's a mass extinction event

    Hot take (maybe?) C# looks like a great language, better than Java. I wish I had an excuse to use it.

    bi_tux ,
    @bi_tux@lemmy.world avatar

    Tbh it’s just microsoft java with worse support on GNU/Linux

    The only reason I used it were the unity libraries

    brezelradar ,
    @brezelradar@feddit.de avatar

    Tbh it’s just microsoft java

    Microsoft made so many javas (remember Visual J++ or J#?), C# is the only one that survived. Well, Microsoft now also ships OpenJDK, apparently.

    Hawk ,

    Use it on Linux daily, no issues here.

    deveaux ,

    If this were ten years ago, sure.

    Mananasi ,

    There’s many reasons to dislike C#, but this is just plain wrong

    Elderos ,

    Java feels archaic compared to C#. I am not sure what problems you’re having on Linux? This sounds like a very outdated take tbh.

    locuester ,

    Definitely not the case. I’ve been doing C# for over 20 years. For the last 6 years I’ve used it to write Linux services exclusively.

    The “Java” relation was true 20 years ago, and the “Linux” argument was true 7 years ago. But neither hold any water anymore. It’s a great language and framework to write a wide variety of software with.

    Matthew ,

    I’m not the best judge, as I’ve not exactly explored a ton of languages, but I love C#.

    Pipoca ,

    Being a much better language than Java isn’t exactly a high bar.

    MrClayman , in Programming Languages as Essays

    LaTeX gang rise up

    tiredofsametab , in me_irl

    Can't sleep, the borrow checker will eat me
    Can't sleep...

  • All
  • Subscribed
  • Moderated
  • Favorites
  • [email protected]
  • random
  • lifeLocal
  • goranko
  • All magazines