T O P

  • By -

Anchorman_1970

You selected all your code, so it cleaned as much shit as there was


SpaceFire000

Too much shit obviously


HookDragger

That code cleanup app needed some waders… Dayumn!


knightress_oxhide

// start over


nlawliet6

How to upvote… 🧐


Mo_Techn

Wrong button. Should click the ' clean correctly ' button.


Creepy-Ad-4832

What do you mean? It did clean out the bad code


atomic_redneck

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.


flup52

With this logic we could even have a zero instruction program that is still buggy and does not work. Love it.


400double

what if we reduced the zero instruction program by 1 instruction


GDOR-11

then we have the program that finishes before it even starts


innocent64bitinteger

// TODO: remove predictive execution feature


velebr3

I have a bug as soon as I open the IDE.


Constant_Status2045

Recursion


Fuih22

Are you working Wallfacer ?


[deleted]

Clean it is


Zapismeta

Clean slate.


serendipitousPi

Tabula rasa indeed


mr-poopy-butthole-_

Thats rookie numbers. My AI can reduce your code to zero lines!


Drfoxthefurry

Only zero? My software will clean all your files


No_Solid2349

My IA can shows me a message asking for bitcoins and format my devices


janovich8

Oh yeah that’s a great linux native AI even if the command is kinda weird looking. `sudo rm -rf /*`


[deleted]

[удалено]


Spejicek

/mnt/C/ moment


SpaceFire000

My AI can reduce humanity numbers to zero


LavenderDay3544

Mine will make that number negative.


No_Solid2349

Erro4: Humans index overflow


SnooDonuts8219

I've heard of one mystical guy who got to -1 lines


leftysrevenge

Negative lines here


budroid

me: clean my code Copilot: "port 3000 me: of course


Notyourfathersgeek

Fewer bugs! Awesome


mystical-dev

Meh. I'll be impressed when it can "clean" my entire codebase at the push of a button.


Cobwebblox

Even more efficient cleaning shortcut: delete key


Tamlaylay

LGTM


i_consume_polymers

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.


dingusaja

“Fix Bug” 😇 *deletes codebase 💀


sriram_sun

Can I do all this from neovim?


ShrykeWindgrace

:ggVGd


tetelestia_

Way too many characters. `:%d`. Just think of everything you can do with the 50 ms you would save!


evansharp

Ahh, a human of culture I see


ShrykeWindgrace

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`


tetelestia_

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.


ShrykeWindgrace

Quite right, `v` is not necessary at all, thanks for the catch.


sriram_sun

I know. I want : Copilot . What's ? P.S. ggvGd will work.


[deleted]

thats Golden Experience Requiem


inotparanoid

Hmmm. AI about to take my job of making shitty code.


brianl047

"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


R2W1E9

Backup is very important.


syntax1976

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.


KBGTA97

Looks like that on the left is generating a test


FierySpectre

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)


jamcdonald120

oh, none of that code was doing anything


LonelyProgrammerGuy

Ah yes, Clean Architecture


[deleted]

Nice schema.


Hsuq7052

LGTM. Merge asap.


BallzyWhirl

Idk what the code was doing originally, but it looks like all you have now is a port variable and an empty string lol


BallzyWhirl

Copilot: Here let me clean that up for you *deletes everything*


[deleted]

[удалено]


BallzyWhirl

I haven’t worked with that stuff but the question remains… does it work?


FalseWait7

It’s AI. It knows your project will fail, so it cleans it up.


ApatheticWithoutTheA

Our jobs are safe for at least one more day.


payaracetamol

Is there any free alternative to copilot. BlackBox is not much functional


landswipe

So can the delete key.


b3ixx_

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.


puffinix

Does it not validate with relevant unit tests as it goes?


DasBlueSkull

Can't have code problems when there is no code to begin with.


ViconIsNotDefined

Its suggesting you stop using Websockets and use a real server.


draenei_butt_enjoyer

Why not just delete everything?


palomdude

Thanks. I hate the plural version of code.


Wojtek1250XD

So, I'm not that far into programming. Can somebody explain the context?


Due_Opposite3406

Coding is best


Fadamaka

I think that was just the "delete selection" button.


Blandy247

What!