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.

Kerb , in I see.... finally vim has other purpose than being text editor
@Kerb@discuss.tchncs.de avatar

🤔 wondering what the emacs equivalent would be

DieguiTux8623 ,

Esc Meta Alt Ctrl Shift: “hotkeys” will never be the same again…

OpenStars ,
@OpenStars@startrek.website avatar

Apparently, ice cream.

img

There are also several financial institutions named emaqs:-P

And an Employee Management and Compensation System in California:-D.

rem26_art ,
@rem26_art@kbin.social avatar

i think emacs can probably already do that with the right plugins

bjoern_tantau , in I see.... finally vim has other purpose than being text editor
@bjoern_tantau@swg-empire.de avatar

Another thing that’s hard to quit.

ICastFist , in Shiiieeettt....
@ICastFist@programming.dev avatar

At least our programmer had the decency to comment that bit as being disabled for debugging :D

treechicken , in The falsehoods of a senior developer
@treechicken@lemmy.world avatar

inb4 senior delegates critical decision-making to juniors and only shows up once stuff is on fire

tsonfeir ,
@tsonfeir@lemm.ee avatar

It’s funny you say this, because my junior is complaining that I micromanage too much. I prefer to make the critical decisions. Whenever I don’t make them, I end up putting out fires.

I tell them that and they respond, how am I supposed to learn if I can’t make mistakes?

Then I remind them they can fuck up all they want in the dev env.

Aiyub ,

For me it was reverse. When I was a junior I was reviewing PRs from the seniors and it couldn’t have possibly been tested to work.

The seniors were super lazy and around half the PRs would have broken production.

Seniority often comes from years of work and not knowledge.

tsonfeir ,
@tsonfeir@lemm.ee avatar

I try hard not to be an asshole at work. I also produce the most code. When my junior came on I told them that I’m here to help, and I want them to ask dumb questions instead of struggle. I also told them that I make mistakes, and they should call me on my shit—which they looove to do, brat.

Knock_Knock_Lemmy_In ,

Why are you making critical decisions in a prod environment?

tsonfeir ,
@tsonfeir@lemm.ee avatar

For the production environment, not in it.

Knock_Knock_Lemmy_In ,

Shouldn’t every decision be tested in dev first?

tsonfeir ,
@tsonfeir@lemm.ee avatar

Yes. I think you may have misunderstood my meaning. Unless you’re just being pedantic—which I have no interest in.

Knock_Knock_Lemmy_In ,

Probably my misunderstanding. The way it is written it sounds like juniors use the dev env and seniors get their decisions implemented directly in prod.

tsonfeir ,
@tsonfeir@lemm.ee avatar

What are “decisions” to you?

Knock_Knock_Lemmy_In ,

From what code to write, to what language to use, to how things will integrate.

Even high level architectural decisions need to be tested in dev first.

Basically I can’t see what couldn’t be run through dev first?

tsonfeir ,
@tsonfeir@lemm.ee avatar

Just because code works in dev doesn’t mean it’s going to be the right thing for production. I caught that little bastard making 1000 db queries in a loop one time, instead of taking the time to make it efficient. Technically it worked. And, because dev has no server load, it was relatively quick.

Toes , in Shiiieeettt....

But because everyone is working off a 6TB Nas shared over the LAN at the office. No one really knows who changed the code. So we decided to fire 51% of the team figuring we got em.

tsonfeir ,
@tsonfeir@lemm.ee avatar

Glad I’m not the only one working on the server

Flax_vert , in The falsehoods of a senior developer

Embrace agile programming. Add what the customer wants and laugh at their poor decisions.

etenil ,
psmgx ,

to paraphrase hl mencken: ask and ye shall receive – and receive it good and hard

li10 , in The falsehoods of a senior developer

I’m not in software development, but this is how the entire company I work for operates.

We’re just kinda going forward with no clear direction, keeping stuff ticking over and constantly coming up with future plans that never come to fruition.

1984 ,
@1984@lemmy.today avatar

This is how all enterprise companies I worked for operates too. Only when I joined a smaller company with 80 people I realized that it can be really fun to work. We get a lot of stuff done and hardly any meetings. Really enjoying it.

tsonfeir ,
@tsonfeir@lemm.ee avatar

This is how the world is. No one is really an expert. No one really has the answer.

shneancy ,

and we all look up to the people who look like they know what they’re doing (they don’t but they are very convincing at looking like they do)

tsonfeir ,
@tsonfeir@lemm.ee avatar

In their defense, if they don’t pretend like they know what they’re doing everything would fall apart.

keefshape ,

Oof. Painful truf.

Immersive_Matthew ,

For some people. Yes.

tsonfeir ,
@tsonfeir@lemm.ee avatar

For you, yes.

Immersive_Matthew ,

Projecting?

tsonfeir ,
@tsonfeir@lemm.ee avatar

Illusory superiority?

Immersive_Matthew ,

I found your cat hiding in the closet so clearly passed your test.

tsonfeir ,
@tsonfeir@lemm.ee avatar

You only found one?

noobface , (edited )
@noobface@lemmy.world avatar

There are answers, they just take a level of experience to reach that most people aren’t cut out for. You gotta be several principal+ IC roles or Dir+ mgr roles in before the patterns congeal into a plan.

Challenge is operating at those levels for extended periods requires a super fucking insane level of competency and dedication. Most people hit that spot and coast till retirement cause you’re at $500k+ at FAANG. Few keep looking for new opportunities unless forced to or they’re those corporate robot sharks with the dead eyes.

parachaye ,
@parachaye@lemmy.world avatar

There are people who are knowledgeable and good at their job. Knowledgeable enough to be experts. Those are usually subject matter experts, including developers.

The issue is that no one can guarantee an outcome or that they’ve picked the right approach.

tsonfeir ,
@tsonfeir@lemm.ee avatar

And if they didn’t pick the right approach, they aren’t an expert.

hex_m_hell ,

But this is really more a product of capitalism than anything else. Under capitalism you just have to keep moving even if you’re just making garbage and debt. There’s no reason to stop and think, because that is seen as a cost (even though it costs more to move without thinking).

Even the best companies that do factor in planning (at least in concept if not actually in practice most of the time) end up with the other problem of “resume driven development” where things that are totally fine and actually working get replaced with things that don’t work because someone needs a new project to get their promotion.

Capitalism produces garbage and puts the people who are least qualified in decision making roles. This still happens in natural systems, but much less. In (healthy) anticapitalist organizing, the people who know the most are generally asked to lead and when they don’t know what to do they stop and figure it out before moving forward.

Aimless wondering can still be a problem, but it’s not forced by the system to continue it’s just people who are learning.

tsonfeir ,
@tsonfeir@lemm.ee avatar

people who are learning.

That’s the problem. The majority of them don’t learn, and really fuck shit up for the ones trying to.

rickyrigatoni ,

I’m an expert and I have all the answers.

tsonfeir ,
@tsonfeir@lemm.ee avatar

Obviously anyone named Ricky Rigatoni is gonna have all the answers. If you say he doesn’t, he’s gonna snap you like dry pasta.

treechicken , in Shiiieeettt....
@treechicken@lemmy.world avatar

Obviously if team was doing agile with CI/CD to promote frequent deployments and testing they would’ve never encountered this mess /s

erre , in Normal day in the life of a developer
@erre@programming.dev avatar

Been doing a whole lot less of that now that copilot is up and running. Didn’t expect it to be such a productivity booster tbh.

keefshape ,

Right?!

Landless2029 ,

… I tend to get down votes when I say copilot has improved my work a ton.

Most of my code isn’t ground breaking shit. I gotta write a script for my task. It’s 90% copying with 10% modifications for my use case.

It also does comments for me…

I wrote a script the other day in like 30 min tested working that would’ve been 2 hrs easy.

Hamartiogonic , (edited )
@Hamartiogonic@sopuli.xyz avatar

In my experience, Copilot does a fairly good job when you already know what you’re doing, but can’t be bothered to write the code yourself.

For example, basic stuff like read data from that file, use dplyr, remove these columns, do these calculations, plot the result using ggplot2, label the axes this way, use those colors etc. Copilot gives you the code that does roughly what you want, but you usually need to tweak it a bit it to suit your preferences. Copilot also makes absurd mistakes, but fixing them is fairly easy. If this is the sort of stuff you’re doing, copilot can indeed boost your productivity.

However, if you don’t know how to do something a bit more exotic like principal component analysis, and you ask copilot to do the job for you, expect plenty of trouble. You may end up on a wild goose chase, using the wrong tools, doing unnecessary calculations and all sorts of crazy nonsense. When you know what you’re doing, you can ask a very specific thing. When you don’t, you may end up being too ambiguous in your prompt, which will result copilot leading you down the wrong path.

You can do it this way too, but before implementing a single line of that garbage code, you absolutely have to ask copilot a bunch of questions just to make sure you really understand what you’re doing, what the new functions do, where do you really want to go etc. You’re probably going to have to tweak the code before running it, and that’s why you need to know what you’re doing. That’s the one big area you can’t outsource to copilot just yet.

But is it still faster than reading the documentation and building your own experimental tests? If you spend an hour and get a pile of broken garbage, then certainly not. If you spend a bit more, ask plenty of questions, make sure you know what you’re doing, then maybe it is worth it.

Landless2029 ,

I 100% agree. I especially love when copilot literally just starts making up shit that doesn’t work or doesn’t exist. Like it can’t be wrong. It just freaking guesses… God forbid it can’t admit it doesn’t have enough data to answer the question.

Best part is when you say “that command doesn’t exist” it’s like “I apologize. Here is a real command to accomplish your task”

SMH

Again, to your point, I agree that copilot is amazing if you already know how to write the code you want. We’re smart enough to know that the suggestions will work for our task. It’s definitely not smart enough to replace you

EatATaco ,

Yeah, I was lucky that I snuck into my company’s pilot program for it.

I’m impressed at how often it predicts what I’m about to do. The code almost always needs a slight bit of editing, but it almost always at least shaves a bit of time off of whatever task I was doing.

I no longer go straight to stackoverflow, I always ask the copilot first. Sometimes even just phrasing the question in natural language, something I wouldn’t do it trying to find it via search or stackoverflow, is kind of like rubber duck debugging, and I’ll come up with the answer while writing it out.

Landless2029 ,

My fav thing is two things.

  1. It reuses MY OWN CODE STYLE. So if I ignore a suggestion and setup a try catch in my own quriky way it’ll actually reuse it later on when I’m scripting. This works best when you add comments for the sections you write FIRST. So you comment # create array for x data it’ll do that or try catch for query it’ll give you a suggestion for the next block right away.
  2. DEBUGGING. github copilot can see your terminal and script so it’ll give you a detailed breakdown and suggestions. Blew my mind the first time.
Psychodelic , in Shiiieeettt....

I’m gonna pretend there was a windows update at that specific time so it makes a bit more sense to me

lol. That was good

recursive_recursion , in Shiiieeettt....
@recursive_recursion@programming.dev avatar

“eh we’ll fix it in post”

post:

GravitySpoiled , in Old xkcd, I can't see it ever not being relevant

Why linking to a page that contains an image instead of posting the image with the source?

mox , (edited )

Linking an xkcd image directly would strip out the hover text, which is part of the comic.

P.S.
You’re one of today’s lucky 10,000.

someguy3 ,

How do you get the hover text on mobile?

Late2TheParty ,
@Late2TheParty@lemmy.world avatar

If you long press on the image, the hover over text will appear.

someguy3 ,

It cuts off

“Learning arcane bullshit from the 80s can break your computer, but if you’re willing to wade through…”

TWeaK ,

I almost got it by switching to landscape, but still not quite.

https://lemm.ee/pictrs/image/41996b5b-4115-43f2-9378-46fa2bc849aa.png

Ephera ,

You can tap on the text to have it expand.

Aatube ,
@Aatube@kbin.social avatar

Maybe try tapping on the text?

someguy3 ,

That works!

mox , (edited )

Some browsers show it when you long press the image. For the others, you can edit the URL to m.xkcd.com

Zoop ,

Here’s the hover text for this one:

Learning arcane bullshit from the 80s can break your computer, but if you’re willing to wade through arcane bullshit from programmers in the 90s and 2000s, you can break everyone else’s computers, too.

toototabon ,
@toototabon@lemmy.ml avatar

is this common for xkcd? because then I’ve been missing a whole layer of all the comics I’ve stumbled upon.

smeg OP ,

Oh boy, every xkcd (maybe except the first hundred?) has alt-text, time for you to read them all again!

Celestus ,

Linking to the page is the best way to share an xkcd

smeg OP ,

My lemmy client shows the full image anyway ¯_(ツ)_/¯

Discover5164 ,

which one do you use?

smeg OP ,

Summit, it’s pretty good

settoloki , in Every language has its niche

Should be wordpress and not Facebook for php. Which still makes up the majority of websites.

Scrollone ,

And Wordpress is a horrible example of PHP code

Laravel is a completely better PHP project

settoloki ,

Couldn’t agree more. Wordpress and the damn loop. Horrid example of how to do something. But it still makes up the majority of the internet…

danc4498 , in Normal day in the life of a developer

Me when I write a regrex without googling every bit of it.

Dehydrated OP ,

Relatable

letsgo ,

“regrex” They should definitely be known as that!

danc4498 ,

lol, didn’t even see my typo

WanderingVentra ,

One day I’ll pull that off…

Turun , in Normal day in the life of a developer

Me running an LLM at home:

The same image, but the farmer is standing in front of a field of poppy (for opioid production)

virku ,

I am researching doing the same, but know nothing about running my own yet. Did you train your llm for programming in any way, or just download and run an open source one? If so which model etc do you use?

lunachocken ,

Have a look at llama file models they’re pretty cool, just rename to xxx.exe and run on windows and chmod on Linux.

Though the currently supported ones are limited, you could try llama code.

virku ,

Where do you get it? Hugging face?

moonpiedumplings ,

llamafile.ai (though it’s down for the moment)

github.com/Mozilla-Ocho/llamafile

Lot’s of technical details, but essentially the llamafile is a engine + model + web ui, in a single executable file. You just download it and run it and stuff happens.

virku ,

Thanks!

Turun ,

Run an open source one. Training requires lots of knowledge and even more hardware resources/time. Fine tuned models are available for free online, there is not much use in training it yourself.

Options are

github.com/oobabooga/text-generation-webui

github.com/Mozilla-Ocho/llamafile

github.com/ggerganov/llama.cpp

I recommend llavafiles, as this is the easiest option to run. The GitHub has all the stuff you need in the “quick start” section.

Though the default is a bit restricted on windows. Since the llavafiles are bundling the LLM weights with the executable and Windows has a 4GB limit on executables you’re restricted to very small models. Workarounds are available though!

virku ,

Im gonna give llamafile a go! I want to try to run it at least once with a different set of weights just to see it work and also see different weights handle the same inputs.

The reason I am asking about training is because of my work where fine tuning our own is going to come knocking soon, so I want to stay a bit ahead of the curve. Even though it already feels like I am late to the party.

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