Coder Social home page Coder Social logo

Comments (3)

 avatar commented on July 20, 2024 1

I haven't written anything like that but maybe I should.

Off the top of my head I don't recall many situations where I felt that I needed to go back and redesign something but here are some general observations:

  • prefer es6 features, enable strict null checking, etc.
  • use promises/async everywhere right from the start
  • avoid libraries that require deep integration throughout the entire extension
  • make each feature as self-contained as possible; keep the overall design modular
  • avoid premature optimization; decent algorithms are enough; latency is rarely a big problem here
  • given a choice between jumps in complexity versus simplicity with some duplication, choose the latter

As for where to start, if you want to have a language server I think either the OCaml one or the Agda could serve as an example if you just stripped out the features you didn't need. If you take a look at the server capabilities it shouldn't be too hard to trace down to the individual features in the code base.

That's assuming you want to have it implemented in typescript though. If you already have a tool like merlin available, I would just implement the server in typescript because it will be much easier to get to something usable quickly. If you don't have that, there's less reason to use typescript, but then the whole package (client/server) becomes a lot more work.

from vscode-reasonml.

scott-fleischman avatar scott-fleischman commented on July 20, 2024 1

Thanks for the feedback. That's probably good enough for me for now. If you ever felt the motivation, I would certainly enjoy reading a write up on some more details of the work you've done on this extension and others. Thanks!

from vscode-reasonml.

 avatar commented on July 20, 2024

No problem. By the way, if you decide to start working on your own extension or language server I would be happy to give some tips if you run into any difficulties.

from vscode-reasonml.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.