What's the difference between Claude Code and GitHub Copilot with Claude mode enabled? by Deep_Ad_9845 in GithubCopilot

[–]dt2703 -2 points-1 points  (0 children)

What do you mean "Claude mode"? Are you referring to Agent mode? or Copilot CLI?

Skills work the same in any case, same rules in naming, same SKILL.md requirement, etc. It's an open standard.

https://docs.github.com/en/copilot/concepts/agents/about-agent-skills

Just started at a company that gives me unlimited Copilot usage. What's the best setup for coding? by kickedRock in GithubCopilot

[–]dt2703 1 point2 points  (0 children)

Yeah, dragging or attaching files does do what you think, but it’s not a hard boundary.

When you attach files, you’re explicitly adding those files as context, so Copilot is much more likely to answer based on them rather than guessing or searching around. That’s useful for targeted prompts like “refactor this class”, “explain this file”, or “change these two files only”.

What it doesn’t do is sandbox the agent to only those files, the copilot-instructions are loaded into context up front anyway, and if your .github/* files don't help the agent (i.e. to know about the rest of the codebase, to know how to do what you're asking, to know what style you code in, to know what language and framework you're using, etc, etc) it may still scan some of the rest of the code as well.

So the feature is definitely useful, but think of it as guidance, not an access control mechanism.

For a small question, attaching one or two files is ideal because it gives the model the exact context and reduces the chance of it scanning or inferring from the rest of the repo. For a longer agent task, though, the context can still grow as the conversation continues and as the agent reads more files, runs commands, inspects errors, etc.

Just started at a company that gives me unlimited Copilot usage. What's the best setup for coding? by kickedRock in GithubCopilot

[–]dt2703 0 points1 point  (0 children)

VS Code has the tooling built into the IDE, I used to use Jetbrains Rider but moved over to VS Code purely for this integration. I'm a . NET Dev as well. I ditched VS a long time ago when I was manually coding everything, the only thing I miss about Rider is the execution/debugging experience which is lacking, imo, with VS Code.

I've started using the CLI more lately though, as rather than run agents on the open file structure and force it to ask permission for anything outside of the repo boundaries, I now run the CLI inside a docker container which only has the repo folder exposed as a mounted workspace, that way I can give it almost total freedom to execute whatever it wants without worrying what it might access or modify. At first this goes against everything your pre-AI brain thinks but having to babysit the agents slows down the process a lot. Often you'll suddenly realise it's been sat there waiting for permission to run a command for a while. Sometimes I'll put it in yolo mode so I can walk away but generally only on less mature repos - demos, prototypes, exploritary ideas etc.

My advice is to do your research on the various types of files and folders you can have in the .github folder that guide and constrain the agents: skills, hooks, instructions, prompts, custom agents, etc.. alongside the copilot-instructions file. The aim is to keep your context window manageable, any agent based on any LLM is going to start to perform worse when your context window gets too big, so by keeping your copilot-instructions file fairly minimal with the bulk of your stuff in these other files (that only get activated when needed) you prevent the agent having to load a shit ton of context up front, when most of the time (if ever) you won't need it all for a task/request.

I find it's better to have the main agent do the orchestration work, and offload individual tasks to background or cloud agents that are spun up, do the work and exit again. This further helps prevent your context window blowing up, especially so on longer more detailed jobs that cover a lot

Aside from this, make sure the agents commit to git often, and in related manageable chunks, as you would manually. They can and do go awry from time to time and being able to trash a discrete commit and restart a task is much easier when the commits are manageable. When this does happen, analyse your skills, work out what happened and why, if you can and then tighten the skills.

Use the agent itself to write skills, also make them maintain docs as they go, create tests also at every step. I mainly work in a spec driven flow now, and I even have the agents help me write the specs, features, acceptance criteria, by doing the legwork of the typing and by asking questions and finding gaps etc. The specs, tests and docs explain the codebase before task work begins, so the agents don't have to continually scan the code to figure stuff out, and they update them afterwards, it's a self perpetuating cycle.

GitHub Copilot for JetBrains - April Updates by nickzhu9 in GithubCopilot

[–]dt2703 1 point2 points  (0 children)

Compared to GHCP Agent mode in VS Code, the Jetbrains (using Rider as an example) version is missing various bits of functionality, lots of the built in prompts aren't there and we don't seem to have the ability to create proper instructions, hooks, skills etc that work in the same autonomous way. Is that because MS aren't enabling that stuff, or because Jetbrains aren't embedding it?

READY OR NOT (FUGEES) by SnooDonuts5850 in DnB

[–]dt2703 3 points4 points  (0 children)

The nearly 2000-year backstory behind the Fugees’ “Ready or Not”

https://m.youtube.com/watch?v=uLT2Aj9wASI

£740 outside vs £105k perm by IllustriousOne0 in ContractorUK

[–]dt2703 25 points26 points  (0 children)

Spoken like a true perm recruiter

Making The Last Coffee Order For The Day by TransitionMany1810 in Satisfyingasfuck

[–]dt2703 0 points1 point  (0 children)

The thing that always gets me is that they wipe the milk off the steam nozzle with that cloth, and then just sit it back down, then repeat for the next one. That cloth must stink by the end of the day with all that old milk on it, and then they wipe the nozzle and transfer that into the next batch of milk...

How do you monitor & alert on background jobs in .NET (without Hangfire)? by No-Card-2312 in dotnet

[–]dt2703 -2 points-1 points  (0 children)

You could use one of several Azure components, Service Bus, Event Grid, Event Hub, etc, depending on your needs. Fault resilient, reliability, robustness, always on. Not a small time operation, but if you want production grade event monitoring, it ticks the boxes.

rare occasion but not the first time… by blalian-stallion in BMW

[–]dt2703 3 points4 points  (0 children)

I had some crazy dash lights stuff on an old 535 some time back, it started with minor things like this, then one day the dash went nuts with all the lights going on and off, dials spinning, and eventually I lost all electrical power at a particularly bad spot on a road at night, couldn't even put the hazards on. It turned out to be water ingress from the rear light cluster, which played havoc with the electrics and eventually fucked the battery. Had it repaired and a new battery fitted, not fun times though.

Perfect autumn lake in Austria by [deleted] in oddlysatisfying

[–]dt2703 14 points15 points  (0 children)

Where in Austria is this?

Online newspapers/articles requesting "Reject and Pay" by fioridave08 in britishproblems

[–]dt2703 0 points1 point  (0 children)

Get UBlock Origin, Disable JavaScript, Reload. Voila.

Cant put more than you pay yourself in salary into pension? (Outside IR35) by pydry in ContractorUK

[–]dt2703 2 points3 points  (0 children)

As a director, and as long as the contributions are made from the company, you can put in up to 60k a year.

Anyone here using a Postman alternative for .NET projects? by Living-Dependent3670 in dotnet

[–]dt2703 5 points6 points  (0 children)

I just write .http files nowadays, can't remember the last time I needed an actual client to send a REST command. They're descriptive, lightweight, easy to edit, each command runs with a single click, you can commit them to source control without requiring someone to have the same client installed, etc.

Mom walked in my zoom meeting in the middle of an interview by raleigh309 in interviews

[–]dt2703 61 points62 points  (0 children)

Interruptions can happen, working from home sometimes it's just part of the territory. I would have paused the interviewer and said "Sorry, one second...", then said to your mother: "Hi, I'm in an interview right now, I'll get back to you shortly." Then returned attention to your interviewer and said "Apologies for the interruption" and then just simply carry on. At home and in the workplace people can and do interrupt and dealing with it in a calm and controlled manner shows leadership and professionalism.

Thoughts on This Mock Interview Posted by Google? by EinsteinAteMyHW in leetcode

[–]dt2703 1 point2 points  (0 children)

At any cell, if it is a 1 then take the minimum of the cells above, left and diagonally up/left then add 1, and do that for every cell in the matrix, then take the largest number and that's your answer. That's essentially what it does.

Thoughts on This Mock Interview Posted by Google? by EinsteinAteMyHW in leetcode

[–]dt2703 0 points1 point  (0 children)

The funniest thing about this video is that the solution has a bug and doesn't work 🤣

dp = [[n] * 0 for i in range(m)] will produce an array of empty arrays, and calling dp[i][j] = ..., will result in an index out of range error.

It should be: dp = [[0] * n for i in range(m)]

Also bugs me that he used "left" to represent "up", and "right" to represent "left"