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.

nikaaa , in new preference war just dropped

I personally prefer dialogs.FileDialog.open()

crispy_kilt , in new preference war just dropped

First of all, it’s spelled dialogue

Sotuanduso ,

Two wars can exist simultaneously.

stufkes ,

OP’s username is in German, so it’s probably half-German-English code

crispy_kilt ,

Germans learn UK English

stufkes ,

Dialogue is UK English. But I just looked it up and apparently ‘dialog’ is a computer term, but should not be used on its own but rather in combination, such as ‘dialog box’.

smeg ,

Americans sadly got there first and defined all the computer terms, that’s why it’s a TV programme but a computer program. I can deal with that though, helps distinguish computer things from real things!

souperk , in Hot Potato License
@souperk@reddthat.com avatar

So that’s the legal equivalent of the guy committing 10k changes the day before leaving the company…

Clent , in Unit Tests

Autist 🙂‍↔️

Autest 🙂‍↕️

nxdefiant ,

Ok, well, if you ever come across a test framework named AuTest, you can blame me, because I’m stealing the shit out of that.

bitfucker ,

Gold test

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

Can’t blame anyone but yourself if you use Google tbh

hglman ,

That’s why I use webcrwaler

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

We need a human-curated Internet search. A wiki of good web content.

InFerNo ,

Back to 90s internet you say?

Wiz ,

Maybe web rings are due for a comeback.

refalo ,

Please.

MonkeMischief ,

I forgot how this worked until I discovered NeoCities. I suddenly remenbered when so many personal websites would have some page that’s like “links” or “sites I love” or “other cool people”, etc. And it was just a curated list of sites the author thought were neat.

And your bookmark function was actually really helpful, because “web surfing” was literally jumping from link to link to link, following rabbitholes and breadcrumb trails across the web.

Nowadays, I bookmark things but I never go back through them. I know Firefox sometimes automatically helps you remember stuff in your bookmarks though.

But there was a time when it felt like finding some niche site was a sort of secret club or cool treasure, and you had to make sure you could find your way back. :)

InFerNo ,

When you didn’t make the bookmark, you were basically trying to backtrack which links you followed and what sites you visited to get back to that one website.

MonkeMischief ,

Totally! And I loved those neat little animated web badges that became really popular, especially on forums.

InFerNo ,

I still have those on one of the forums I occasionally still visit, but it might disappear soon after nearly 2 and a half decades.

blusterydayve26 ,

That is (was) DMOZ: the Mozilla Directory of websites, now curlie.org, after AOL shut it down in 2017.

They have a Patreon if you want to help them maintain it.

blusterydayve26 ,

Oh cool, somebody signed up, they have more supporters today.

gitamar ,

The return of web directories 🤩 en.m.wikipedia.org/wiki/Web_directory

johannesvanderwhales , in “ARE YOU ALL SEEING THIS”

While most people on Lemmy are going to know what this means, the person who wrote this error message was definitely trying to be cute with that phrasing.

dependencyinjection ,

So my first role as a developer I’m working on an application that runs various classes for children, the parents sign up but it’s children they’re booking for.

We use reactstrap and there is a package called buttonasync and it has a method of executingChildren, let’s say I was a little confused.


<span style="color:#323232;">return (
</span><span style="color:#323232;">            <Form onSubmit={onSubmit}>
</span><span style="color:#323232;">				<FormGroup>
</span><span style="color:#323232;">                    <Label htmlFor="name">Name</Label>
</span><span style="color:#323232;">                    <Input type="text" name="name" placeholder="Name" value={props.name} />
</span><span style="color:#323232;">                </FormGroup>
</span><span style="color:#323232;">
</span><span style="color:#323232;">				<ButtonAsync type="submit" color="primary" isExecuting={isSaving}
</span><span style="color:#323232;">					executingChildren={<><FontAwesomeIcon icon="spinner" spin /> Saving...</>}>
</span><span style="color:#323232;">					<FontAwesomeIcon icon="save" /> Save
</span><span style="color:#323232;">				</ButtonAsync>
</span><span style="color:#323232;">            </Form>
</span>
tiefling , in Always follow 3-2-1 backup rule

✅ Useless comment
✅ Common typo
✅ Looks like VSCode

That code snippet looks mighty sketch

aluminium , in Let's do micro service

Typical issue of the corportate programming world being a hivemind. Just because many big tech companies use it you can’t blindly implement it for your 5 developer team.

And it for sure has its usecases - like if you run something with constant load swings that does n’t need to be 100 percent accurate like Youtube it makes sense. You can have a service for searches, comments, transcoding, recommendations, … which all scale independently trading in some accuracy. Like when you post a comment another person doesn’t need to see it within 1 second on another comment service instance.

tsonfeir , in AI Suggestions
@tsonfeir@lemm.ee avatar

Just…. Type it?

How lazy are we becoming?

humorlessrepost ,

This wasn’t made for programmers. It was made for middle management who think the reason the ticket is taking so long is because the devs can’t type more words per minute.

FooBarrington ,

Guess I’m not a programmer, because this feature has been a real god-send in my recent projects.

EatATaco ,

The other poster is either speaking from a place of ignorance, as they’ve never really used it, of they just aren’t smart enough to learn how to use a new tool.

As much as middle management sucks, devs blaming management for their own inability to learn is almost on the same level.

cupcakezealot ,
@cupcakezealot@lemmy.blahaj.zone avatar

i mean i still think tab/auto completion is good to save time.

the problem is when people become reliant on it and just have it write entire chucks of code without going through it and checking it or changing it after the baseline is done.

fossit ,

Then that wouldn’t exactly be a time saver, but rather time-consuming? Paradox

cupcakezealot ,
@cupcakezealot@lemmy.blahaj.zone avatar

i mean finishing a variable declare with a tab is pretty convenient.

as is autocompleting an html5 structure.

GammaGames ,

Yeah, usually it’s pretty good autocomplete. Definitely makes my coding faster (and highlighting a chunk of SQL and asking it to modify it in plain English is magic)

tsonfeir ,
@tsonfeir@lemm.ee avatar

Autocomplete is fine, but do we need “AI” to figure out left and right?

And I agree, chunks of code are bad.

tiefling , (edited )

Stuff like this is really useful when variable names are annoying, or when you have to repeat the same monotonous pattern over a large batch of code.

My favorite use of AI in code so far has been refactoring deprecated feature flags. “Replace enableXYZFeatureFlag with true and optimize the code”. Bam, 1-2 hours’ worth of crunch work solved in minutes.

Kache ,

If it takes 1+ hours of work to remove a feature flag branch in an area of code, I wouldn’t trust the correctness of anything the AI writes and would be super skeptical about anything the humans had written.

tiefling ,

It takes a long time because it hits a lot of files, not because it’s logically complex. Also, that’s why unit and integration tests exist.

BurningnnTree ,

Can you please describe how you do this? I thought Github Copilot can only make changes to the currently open tab? It’s been a few months since I’ve used it, and I’ve only used the Visual Studio version, which I think isn’t as good as the Visual Studio Code version. Has Copilot already gotten to the point where you can tell it to make changes to an entire codebase?

tiefling ,

I do go file by file, but I just copy and paste the same query into each. It also gives me a chance to do a quick review before moving on. It’s still a manual process but it’s a HELL of a lot faster than manually refactoring.

(I can’t give too many more details though since I use proprietary software that isn’t public facing)

Oinks ,
@Oinks@lemmy.blahaj.zone avatar

You could say that about any kind of autocomplete. Why would people install snippet plugins into their vim/emacs? Sure you can just type everything by hand but it’s just more convenient.

Personally I find these kinds of inline AI suggestions make a more convincing use case than trying to prompt engineer a Chat based LLM and diverting your attention to phrasing specifics instead of the actual problem space.

lemmyng , in gut pull
@lemmyng@lemmy.ca avatar

shitdown -h now

snekerpimp , in Any Volunteers

MY TOWN IS IN THE NEWS!!!

Aviandelight ,
@Aviandelight@mander.xyz avatar

Yea this just screams VCU student.

dream_weasel , in Like getting 9 women pregnant and expecting a baby in 1 month

9 women cannot have a baby in 1 month obviously, that’s an assembly problem.

What you need is 1 woman and 9 men.

Thcdenton ,
sebsch , in I realised this today

You saying the code quality of some of my colleagues is even worse on their personal projects? o_O

miridius OP ,

They probably don’t even have personal projects

CanadaPlus , in Some of my iterations are delightfully recursive

Unironically this. I know it’s the same assuming there’s no bugs (lol), but it’s just faster to type and easier to read, at least to me.

ByGourou ,

I always found map more confusing than loop for some reason. Especially nested.

CanadaPlus ,

To each their own.

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