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.

ChaoticNeutralCzech , (edited ) in average day in NPM land

If you think is-number can be replaced with a one-liner, you don’t have the enterprise code mindset. What if the world gets more inclusive and MMXXIV, ½ and ⠼⠁ become recognized as numbers? 𒐍𓆾 were numbers in the past but what if people start assigning numeric value to other characters? Are 🖐🔟💯🆢🂵🀌🁅 numbers of the future???
/s

I’m not even all kidding, Regex implementations are split on whether “٣” matches d.

Contravariant ,

It’s simple ⅯⅯⅩⅩⅣis a number, MMXXIV is not.

ChaoticNeutralCzech , (edited )

You may argue that writiing 2024 as “MMXXIV” and not “ⅯⅯⅩⅩⅣ” is a mistake but while typists who’d use “2OlO” for “2010” (because they grew up using cost-reduced typewriters) are dying out, you’ll never get everyone to use the appropriate Unicode for Roman numerals.

oo1 ,

Even if they did use unicode, any codeset , glyph or language changes over time , ulimately they emerge out of communication, not the other way round.

If some culture decides they want to use the glyph “2” to mean a word “to”, they can and will, and no codeset is going to stop them. And if they get their message to their intended audience it doesnt matter that somebody else’s isnumber fuction get’s it wrong.

A person, community or standard codeset or dictionary cannot deny the accuracy or content of encrypted communication just because they can’t decipher it.

Put another way a more robust isnumber() should maybe have a second argument to specify the codeset being used, and maybe whether written words - in some defined languare - are also to be converted

On the other hand “1/4/12” is not a fucking date.

ChaoticNeutralCzech ,

“1/4/12”

Excel is going to have a Date with you, and it’s not asking further questions. If you didn’t wish to consent to have your col’n shattered, you should have preceded it with a '.

oo1 ,

yeah, I’ve been rohypnolled by both microsoft and oracle, and general cloud shit , and various co workwers so many times now i barely even notice.

Hilariosly excel has recently started asking now, I think it says something like: “I’ve just fucked up several columns in your csv that you went to the bother of enquoting.” “Do you want me to reload it and i’ll try to un-fuck a few of those columns? ( whispers to audience - but probably not all of them - tee hee).”

I think my employer just needs to employ 25-50 more “delivery” managers and empower them to spend millions on a prettier barrel for us to bend over, that’ll solve it. Maybe it’ll have flufffy handcuffs.

Contravariant ,

Wouldn’t surprise me if even Unicode advices against using Roman numerals depending on meaning.

It was mostly a joke (though frankly if you try any implementation more complicated than that joke you’re going to have a bad time).

bitfucker ,

So the only valid digits are arabic numbers but arabic script numbers are not a valid digit? If we want programming to be inclusive then doesn’t that make sense to also include the arabic script number?

ChaoticNeutralCzech , (edited )

So the only valid digits are arabic numbers but arabic script numbers are not a valid digit?

Some people writing Regex implementations have that opinion. I’ve refrained from saying mine.

If we want programming to be inclusive then doesn’t that make sense to also include the arabic script number?

Maybe. IMO, number tests should be chosen/implemented based on the project’s requirements. If you want to include every Unicode character or string pattern anyone’s ever used to convey a numeric value, that would be a long and growing list. Arguably, it’s impossible: the word “elf” means a number if interpreted as German for “eleven” but not if interpreted as English for 🧝.

bitfucker ,

Yeah, but “elf” are not digits. Digits are a symbol abstracted from the language itself. Does 5 and V convey different meanings in the context of digits? And yeah, I can see why they would argue about the implementation because inclusivity is important. Especially when designing a language implementation. If you are designing it wrong, it will be very hard to extend it in the future. But for application level implementation, go nuts.

Cort ,

But elf=B=11. Kinda depends on context if 11 is a digit

bitfucker ,

As I said, a digit is a symbol. Much like how we use letters to compose words, digits are used to construct numbers. When you start to repeat or reuse the symbol then it is no longer a singular symbol (what regex \d does). Hence my comments on why arabic script are one of the understandable debates since i18n is a valid concern as much as a11y is.

ChaoticNeutralCzech , (edited )

You are right, “elf” is a stretch, it does not make sense to parse it as a number. But in some languages, the string “15 240,5” is just how a number is written (yes, that’s a U+2009 THIN SPACE, you can’t stop me from using it as a thousand separator in German). Obviously, despite having a , on their numpads, German programmers still expect computers to parse numbers with decimal dots and interpret commas as list values.

bitfucker , (edited )

Alright, maybe you misunderstood the term digits with numbers. When parsing a digit, you do not attach semantic yet to the building blocks. A \d regex parser does not care that the string “555” is not equivalent to “VVV”. All it cares about is that there is the digit “5” or “V”. In the same vein, regex parser should not try to parse IV as a single symbol.

ChaoticNeutralCzech , (edited )

It’s not just digits. Nobody is expecting it to understand language yet but the parser is-number still returns true for “2e3” or “0x0F”. It tells you whether the string can be interpreted as a real numeric value.

bitfucker ,

Yeah, hence is-“number”. But we were talking about regex are we. A number representation can use digits but it can also not. Much like how you make a number using the word “elf”.

Aqarius ,

I feel like there shoul be an ISO/DIN to define this.

ZarkleFarkle ,

Lisp code is already like this. That’s why I keep trying to explain it to programmers. Try reading the book SICP, published decades ago by MIT computer researchers.

invidious.privacyredirect.com/watch?v=a3t3IKlXqFU

oo1 ,

Are you asking for treefiddy upvotes?

ChaoticNeutralCzech ,

How many upvotes does 💲🄄Ƽ᱐ buy, really?

ICastFist ,
@ICastFist@programming.dev avatar

At least one from the loch ness monster

oo1 ,

someone fix that goddamn islochnessmonster() function

modeler ,

All junior devs should read OCs comment and really think about this.

The issue is whether is_number() is performing a semantic language matter or checking whether the text input can be converted by the program to a number type.

The former case - the semantic language test - is useful for chat based interactions, analysis of text (and ancient text - I love the cuneiform btw) and similar. In this mode, some applications don’t even have to be able to convert the text into eg binary (a ‘gazillion’ of something is quantifying it, but vaguely)

The latter case (validating input) is useful where the input is controlled and users are supposed to enter numbers using a limited part of a standard keyboard. Clay tablets and triangular sticks are strictly excluded from this interface.

Another example might be is_address(). Which of these are addresses? ‘10 Downing Street, London’, ‘193.168.1.1’, ‘Gettysberg’, ‘Sir/Madam’.

To me this highlights that code is a lot less reusable between different projects/apps than it at first appears.

sxan , in Just a dad helping out
@sxan@midwest.social avatar

That’s either a professional level dad joke, or holy wow, does he not know how much you make?

That said, I’ll build anyone a website for £500, no matter how large. But that’s the base model. It’ll be a template taken from a catalog, and Hugo. My maintenance fees are only £250 per hour.

FuglyDuck ,
@FuglyDuck@lemmy.world avatar

I’ll build anyone a website. I’ll do it for 450.

No refunds, though. (don’t tell them this, but they won’t be very happy with the product.)

variants ,

It’s a pretty good racket. My friends boss saw us building ourselves a site one time when he let us use his shop on the weekend and he got intrigued.

So as payment for letting us use the machine shop we took over his business website from some expensive marketing company that charged a ton we got him down to a domain and a basic weebly plan. We took photos of the shop and just used their shop colors for the text and slapped on all the contact info he wanted.

Then his bookkeeper saw his site and wanted one so we did the same for her, then her son saw the site and wanted one for his friend who’s a plumber. Next thing you know we are turning down jobs because everyone and their mother wants a $500 website from us haha. It became a better business than what we borrowed the machine shop for to begin with

sxan ,
@sxan@midwest.social avatar

Very nice. I don’t think there’s anything better than being your own boss.

Fabulous , in What it's like to be a developer in 2024

Wait until you see the AI generated blog posts being top results…

jol ,

For certain languages and frameworks, LLMs are horrible right now because of this. Many answers I get are a Frankenstein of different versions.

MentalEdge ,
@MentalEdge@sopuli.xyz avatar

Hah!

No.

Soon enough the result will be an AI generated “blogpost”, generated by the search engine, in response to your query.

SuddenDownpour ,

I’m sure all this nonsense waste of energy is exactly what we needed just to stop climate change.

Sir_Kevin ,
@Sir_Kevin@lemmy.dbzer0.com avatar

That’s already been happening for about a month now… perhaps only for some users? Often the AI results are straight up lies.

xmunk ,

I’ve seen some fucking hilariously wrong AI math.

MalachaiConstant ,

It showed up for me about a month ago. I put up with it for about a week and then broke down and finally switched all my browser search engines to duckduckgo.

The funny thing is, I tried making this same switch a couple years ago. I legitimately had a harder time getting the results I needed and ended up switching back to Google.

Google is worse than useless to me now.

SpeziSuchtel ,

I was looking up some tips for Baldurs Gate missions and these fking AI generated pieces of shit with hallucinated fake playthroughs ruined the whole experience.

kamen ,

There has been something similar for years: a page that basically says “Yeah, nah, we don’t have any information for that, but you might be interested in a totally irrelevant something else”, but phrased in a way that gets it high in the results. What’s astonishing is that Google doesn’t punish those pages.

barsquid ,

Why would they punish pages that help them serve more ads? There are ads on the search, ads on the useless result, ads when you refine the query.

kamen ,

Yeah, you have a point, but then it’s a bit hypocritical of them to even have criteria for putting pages up in the results.

RustyNova ,

The worse part, you enter the blog, it looks legitimate enough at a glance, go straight to the code, then find out it’s bullshit.

We need ai blog blockers now…

rimjob_rainer , in FLOSS communities right now

Discord separates and controls possibly useful information from the public internet. It’s one of the worst platforms to use.

zarkanian ,
@zarkanian@sh.itjust.works avatar

Are you against IRC for the same reason?

kilgore_trout ,

IRC allows archiving

zarkanian ,
@zarkanian@sh.itjust.works avatar

How so?

T156 ,

You can easily log and archive things that happen on an open protocol, not so much a proprietary one like discord.

xenoclast ,

Is it possible to have a server/channel bot publicly export channel activity?

kilgore_trout ,

meta.wikimedia.org/…/Publicly_logged_channelswww.w3.org/2002/03/RRSAgent

Wikimedia and W3C log their chats with bots developed by themselves. I admit though that I am not expert in this topic, but I know that LiberaChat’s policies forbid logging.

zarkanian ,
@zarkanian@sh.itjust.works avatar

You can’t search an IRC channel for previous conversations, though? Isn’t that what we were talking about?

oshu ,
@oshu@lemmy.world avatar

Nobody considers IRC to be a substitute for documentation.

AMDIsOurLord ,

IRC archivers just idle on a server and record anything that comes by. You can do that with Discord. Matter of fact, I keep regular archive backups of a server we have that’s full of news

drndramrndra ,

You never saw an IRC chatroom archive?

rimjob_rainer ,

IRC isn’t controlled by a single (shady) company

EngineerGaming ,
@EngineerGaming@feddit.nl avatar

Servers can be hosted by anyone; there is usually no account needed to join the chat; it would not randomly demand a phone number or an ID; it does not get pissed over people not using a very specific piece of bloated spyware… So nope, not against.

optimal ,
@optimal@lemmy.blahaj.zone avatar

also, IRC logs are usually public and searchable. that’s actually how we got hunter2

HipsterTenZero , in Programming: The Horror Game
@HipsterTenZero@dormi.zone avatar

From what i’ve heard of the game industry, being a gamedev is already survival horror.

noobdoomguy8658 ,

I had a friend doing mobile gamedev, making near unheard-of money for their then city of residence, had everything going well for them… except the job was soul-crushing and draining, eventually giving them severe depression.

When I was getting my first dev job, they said I’d be really sorry about doing outsource, and I just thought that out of us two, I’d be the really happy one, even making much less than them.

hperrin , in Not mocking cobol devs but yall are severely underpaid for keeping fintech alive

Something that maybe a software engineer union could solve.

WhatAmLemmy ,

Something that a union would definitely solve. What are the banks gonna do? Fire every veteran and hire a team of underpaid newbs to manage their critical systems? If they were dumb enough to do that, let them save themselves millions a year by facing billions in losses… I’m sure that’ll work out well.

bearwithastick ,

Banks: Hold my beer!

And later blame it on the workers that unionized.

aksdb ,

It only needs to work long enough for the current management to cash in on their savings. Then it’s their successors problem.

r00ty Admin ,
r00ty avatar

The thing is, this type of job never needed a union previously. It was niche enough for a long time, that you were sought out and rewarded well. But yes, I think we're moving into an era where we do need union representation.

Oddly enough, with my experience I am sought out still. Just for bizarre startups who clearly never checked my previous work history. Some of the messages I get on Linkedin for example are just weird requests.

PhlubbaDubba ,

If only there was one, I wish I had one just so I wouldn’t have to do all the fucking social hoops just to get my resume noticed by an actual human before the HR’s “I don’t want to do my job!” machines filter me out for not going to an Ivy League School like apparently everyone else did.

HairHeel ,
@HairHeel@programming.dev avatar

Nah, they’re going to “solve” it by paying web developers less, not paying cobol developers more

RedWizard ,
@RedWizard@lemmygrad.ml avatar

Something a union could solve…

hperrin ,

Yes, workers unions are famous for fighting to lower the wages of the workers they represent. Very much. Indeed.

HairHeel ,
@HairHeel@programming.dev avatar

I think the problem is that unions are famous for fighting for equal pay across the board for the workers they represent regardless of individual competency or market demand. For this example they’ll give COBOL developers a raise to 120K and give web developers a pay cut to 120K.

Or best case scenario they give the COBOL developers a short-term raise to 150, then raises across the industry stagnate in coming years to offset the fact that employers feel like they’re overpaying for some people. But sure, a few years later the union can come in to look like a hero arguing for a fraction of the raise the web devs could have already gotten.

Logh , in Malware As A Service

Funny how CrowdStrike already sounds like some malware’s name.

dmention7 ,

It literally sounds like a DDoS!

bruhduh ,
@bruhduh@lemmy.world avatar

Botnet if you will

SkyNTP ,

Not too surprising if the people making malware, and the people making the security software are basically the same people, just with slightly different business models.

Eylrid ,

Classic protection racket. “Those are some nice files you’ve got there. It’d be a shame if anything happened to them…”

Excrubulent ,
@Excrubulent@slrpnk.net avatar

Reminds me of the tyre store that spreads tacks on the road 100m away from their store in the oncoming lanes.

People get a flat, and oh what do you know! A tyre store! What a lucky coincidence.

JackbyDev ,

It sounds like the name of a political protest group.

StrongHorseWeakNeigh , in It's time to mentally prepare yourselves for this
whotookkarl ,
@whotookkarl@lemmy.world avatar

Based on a completely superficial review there are three almost guaranteed ways to become unhinged; studying infinities, refactoring legacy code, and working with timezones.

Hazzia ,

I’ve done 2 of those things already. If I ever have to tac on the timezones I will actually break.

lea ,

I think it’s time for a refactor of my legacy code that deals with infinite timezones. :/

oce ,
@oce@jlai.lu avatar

That’s a good idea! Instead of discrete timezones, let’s have continuous timezones!

zerofk ,

I’ve been a proponent of this for ages. It makes no sense to cross some imaginary line and suddenly time shifts. Time should change constantly as you move east or west, up or down. Everyone has their own personal time, which is constantly updated.

Bonus: no more daylight savings switch.

oce , (edited )
@oce@jlai.lu avatar

How do you agree on a meeting time with a group of people who all live in different places of your country?

zerofk ,

That’s another benefit: no more meetings.

oce ,
@oce@jlai.lu avatar

Not even to spend good times with friends?

barsoap ,

That was kinda the situation in the past: Every town would have its own time, synced to the local noon every once in a while as the precision of the church or townhall clock demanded. That stuck around until railroad operators and passengers got sick and tired of dealing with the timetables that produces.

dan ,
@dan@upvote.au avatar

I had to refactor legacy date/time code (including timezone code) at work. D:

NerfHerder ,

You poor soul

jballs ,
@jballs@sh.itjust.works avatar

Lmao I love how he just gets more and more flabbergasted throughout the whole video. Truly an accurate depiction of dealing with timezones (which I’m unfortunately dealing with right now!)

Gork , in dotnet developer

No, you’ll need to contact Kim Dotcom. I am merely Kim Dotnet.

DoomBot5 , in Let me just move this project to the "unfinished" folder

You don’t, you just release it as is and call it Early Access

BolexForSoup ,
@BolexForSoup@kbin.social avatar

Don’t forget to shut down your studio days later!

magic_lobster_party ,

“Due the global economic circumstances, we were forced to make the incredibly tough decision to say good bye to one of our staff members, cutting down the work force by 100%”

alexdeathway ,
@alexdeathway@programming.dev avatar

Any resigning version of this?

Kyle_The_G ,

Its a “LiVe SeRvIcE”

bruhduh ,
@bruhduh@lemmy.world avatar

“Quadriple A game right here bois 12/10”

xmunk ,

Just make sure the ingame store is functional so you can sell more add-ons to your vaporware - star citizen is the most profitable video game to ever not be released.

SameOldInternet , in Programmer tries to explain binary search to the police

This post just shows that the police rarely if ever review any video as this method would’ve been learned as a result of repeatedly reviewing video.

brophy , in It’s a game for kids!

Kids get infinite registers and no restrictions on stack ordering. Programmers are constrained to solving it with one register and restrictions on stack put operations.

./insert we-are-not-the-same-meme

joxese3341 , (edited ) in Its not wrong though

deleted_by_author

  • Loading...
  • drcabbage ,

    Thank you. I almost forgot

    scottyjoe9 ,

    Who downvotes this? Chris Sawyer is the GOAT.

    morgunkorn , in JavaScript
    @morgunkorn@discuss.tchncs.de avatar

    On the other hand, I don’t think you should add those ever

    RecluseRamble ,

    Onfuscators probably use it though, so no spec ever will be able to get rid of this crap.

    Windex007 ,

    Can I vote for obsfuscators not holding a language hostage?

    msage ,

    Best I can do is tie your pension to it.

    intensely_human ,

    Only if I can vote for sandwiches not falling apart when I eat them

    firelizzard ,
    @firelizzard@programming.dev avatar

    Sure. But in a sane language doing something totally nonsensical like that is an error, and in a statically typed language it’s a compiler error. It doesn’t just silently do weird shit.

    morgunkorn ,
    @morgunkorn@discuss.tchncs.de avatar

    Agreed! Unfortunately these maddening behaviors were kind of set in stone several decades ago, and it has been (correctly) decided “Don’t break the web”, these weird quirks are kept in modern interpreters/compilers.

    It’s actually quite interesting to read through the logic to follow when implementing an interpreter:

    262.ecma-international.org/13.0/-object.proto…

    leftzero ,

    a sane language

    JavaScript

    Pick one.

    firelizzard ,
    @firelizzard@programming.dev avatar

    I thought it was clear I was saying JavaScript is not a sane language for this very reason

    rhacer , in My wife was unimpressed by Vim

    This relationship can be saved as long as the guy’s wife does not start expressing an interest in Emacs. That would, of course, put an end to the relationship, but if she’s one of those “Notepad is all I need” types, there is hope this can be worked through.

    victorz ,

    Maybe she already evolved past vim to kakoune. 😎

    Jumuta ,

    and evolved past kakoune to helix

    victorz ,

    I actually went, emacs -> vim -> helix -> kakoune.

    Hexarei ,
    @Hexarei@programming.dev avatar

    I went helix -> vim -> emacs -> kakoune -> neovim, super interesting to see how people’s experiences differ

    victorz ,

    You made me look up helix again after a few years and it’s gotten pretty sick actually. I might main it for a while to see how it fairs. It’s fairly similar to kakoune of course, but it’ll take a while to get all the modes into my muscle memory. The similar actions are in different modes and there are many more modes in helix as far as I can tell. But it’s cool, looking forward to experimenting.

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