DEV Community

Jesse Phillips
Jesse Phillips

Posted on

2 1

Stop Using Short Hand Autocomplete

This is just a simple plea to IDE builders.

Visual Studio provides quick help to generate code. For example if you inherent from an interface the IDE can generate methods which throw a not implemented exception.

This generative auto complete is there to get you started to build the implementation.

Well C# provides a short hand => operator to implement short method bodies. Great feature.

public class M : IFoo
{
    public string Bar() => throw new NotImplementedException();
} 
Enter fullscreen mode Exit fullscreen mode

The point of this short hand is so I don't need to write down so much for a simple return.

The point of code generating is so I don't need to write down all the expected structure. If you generate the simple thing, you aren't doing your job. I have to convert all those arrows into bodies so I can actually implement the methods rather then claim I didn't implement them.

Top comments (1)

Collapse
 
jessekphillips profile image
Jesse Phillips

I should give more context. I'm a vim user so a well defined body is easy to change.

ci{

Or

cc

The arrow does not allow for me to specify a motion.

A Workflow Copilot. Tailored to You.

Pieces.app image

Our desktop app, with its intelligent copilot, streamlines coding by generating snippets, extracting code from screenshots, and accelerating problem-solving.

Read the docs

👋 Kindness is contagious

Dive into an ocean of knowledge with this thought-provoking post, revered deeply within the supportive DEV Community. Developers of all levels are welcome to join and enhance our collective intelligence.

Saying a simple "thank you" can brighten someone's day. Share your gratitude in the comments below!

On DEV, sharing ideas eases our path and fortifies our community connections. Found this helpful? Sending a quick thanks to the author can be profoundly valued.

Okay