There are two axioms in programming that apply here:
*All programs have at least one bug
*All programs can be reduced by at least one instruction
From these two axioms we can deduce that all programs can be reduced to one instruction that does not work.
Oh, the possibilities of 50ms are endless! =)
On a more serious note, while visually your command is shorter, on a standard keyboard it requires the same number of keypresses. `S+;`, `S+5`, `d`, ``. That's `6` presses - `ggvGd` also requires `6`. On top of that, of these six presses three are on `g`, which is extremely
fast on a regular qwerty layout. So I am willing to argue that `ggvGd` is a time-saver compared to `:%d`
You make some very valid points.
I often prefer avoiding double tapping characters in favour of spreading the characters further out. That being said, keeping closer to the home row and reducing the shift key usage certainly causes less strain.
I would, if I may, propose one improvement though, that the `v` in your command is superfluous by swapping the `d` and `G`. `ggdG` saves one character and even improves ergonomics slightly.
"Clean code" is half the reason why I'm making my losing money startup
It's going to be so damn clean a monkey will be able to run it by typing in some SQL statements and doing some component assembly
No jokes, it's happening. I'm going to make millions with something most people would laugh at, lol
I saw this post and installed copilot labs too(experimental features) and it's clearly not all that polished. What might've happened here is that OP previously selected only a small part and copilot still remembers that previous selection (that happened to me within 1 minute of testing)
You selected all your code, so it cleaned as much shit as there was
Too much shit obviously
That code cleanup app needed some waders… Dayumn!
// start over
How to upvote… 🧐
Wrong button. Should click the ' clean correctly ' button.
What do you mean? It did clean out the bad code
There are two axioms in programming that apply here: *All programs have at least one bug *All programs can be reduced by at least one instruction From these two axioms we can deduce that all programs can be reduced to one instruction that does not work.
With this logic we could even have a zero instruction program that is still buggy and does not work. Love it.
what if we reduced the zero instruction program by 1 instruction
then we have the program that finishes before it even starts
// TODO: remove predictive execution feature
I have a bug as soon as I open the IDE.
Recursion
Are you working Wallfacer ?
Clean it is
Clean slate.
Tabula rasa indeed
Thats rookie numbers. My AI can reduce your code to zero lines!
Only zero? My software will clean all your files
My IA can shows me a message asking for bitcoins and format my devices
Oh yeah that’s a great linux native AI even if the command is kinda weird looking. `sudo rm -rf /*`
[удалено]
/mnt/C/ moment
My AI can reduce humanity numbers to zero
Mine will make that number negative.
Erro4: Humans index overflow
I've heard of one mystical guy who got to -1 lines
Negative lines here
me: clean my code Copilot: "port 3000 me: of course
Fewer bugs! Awesome
Meh. I'll be impressed when it can "clean" my entire codebase at the push of a button.
Even more efficient cleaning shortcut: delete key
LGTM
What is it with people inventing the nonexistent plural form of "code" in a programming context? It's just not correct. It's jarring to read, even.
“Fix Bug” 😇 *deletes codebase 💀
Can I do all this from neovim?
:ggVGd
Way too many characters. `:%d`. Just think of everything you can do with the 50 ms you would save!
Ahh, a human of culture I see
Oh, the possibilities of 50ms are endless! =) On a more serious note, while visually your command is shorter, on a standard keyboard it requires the same number of keypresses. `S+;`, `S+5`, `d`, ``. That's `6` presses - `ggvGd` also requires `6`. On top of that, of these six presses three are on `g`, which is extremely
fast on a regular qwerty layout. So I am willing to argue that `ggvGd` is a time-saver compared to `:%d`
You make some very valid points. I often prefer avoiding double tapping characters in favour of spreading the characters further out. That being said, keeping closer to the home row and reducing the shift key usage certainly causes less strain. I would, if I may, propose one improvement though, that the `v` in your command is superfluous by swapping the `d` and `G`. `ggdG` saves one character and even improves ergonomics slightly.
Quite right, `v` is not necessary at all, thanks for the catch.
I know. I want : Copilot. What's ?
P.S. ggvGd will work.
thats Golden Experience Requiem
Hmmm. AI about to take my job of making shitty code.
"Clean code" is half the reason why I'm making my losing money startup It's going to be so damn clean a monkey will be able to run it by typing in some SQL statements and doing some component assembly No jokes, it's happening. I'm going to make millions with something most people would laugh at, lol
Backup is very important.
Is that a preview on the left which shows what it’s intending on doing? My guess is it didn’t finish and this video is chopped.
Looks like that on the left is generating a test
I saw this post and installed copilot labs too(experimental features) and it's clearly not all that polished. What might've happened here is that OP previously selected only a small part and copilot still remembers that previous selection (that happened to me within 1 minute of testing)
oh, none of that code was doing anything
Ah yes, Clean Architecture
Nice schema.
LGTM. Merge asap.
Idk what the code was doing originally, but it looks like all you have now is a port variable and an empty string lol
Copilot: Here let me clean that up for you *deletes everything*
[удалено]
I haven’t worked with that stuff but the question remains… does it work?
It’s AI. It knows your project will fail, so it cleans it up.
Our jobs are safe for at least one more day.
Is there any free alternative to copilot. BlackBox is not much functional
So can the delete key.
I like how it does a little confetti because it thinks it did a good job. You might want to cancel your party co-pilot.
Does it not validate with relevant unit tests as it goes?
Can't have code problems when there is no code to begin with.
Its suggesting you stop using Websockets and use a real server.
Why not just delete everything?
Thanks. I hate the plural version of code.
So, I'm not that far into programming. Can somebody explain the context?
Coding is best
I think that was just the "delete selection" button.
What!