Giter Club home page Giter Club logo

Comments (8)

vemv avatar vemv commented on May 26, 2024

Sounds reasonable to me!

maybe even computed by a custom function?

Did you mean that users would pass a lambda (host port) and that CIDER would invoke it adequately?

from cider.

AndreaCrotti avatar AndreaCrotti commented on May 26, 2024

Sounds reasonable to me!

maybe even computed by a custom function?

Did you mean that users would pass a lambda (host port) and that CIDER would invoke it adequately?

Yeah that would be an option. It might be generic enough to support all the use cases maybe?

from cider.

bbatsov avatar bbatsov commented on May 26, 2024

maybe even computed by a custom function? If the host/port is enough to know what banner you want for example

I think that making this a customizable function would be best. I don't think the first line of the message is part of the help banner, so we probably don't even need the host/port params.

from cider.

bbatsov avatar bbatsov commented on May 26, 2024

I'm thinking it might actually be better to introduce some optional user banner function that takes every useful param we can think of and substitutes the help banner when present (or appears after it), given that the help banner is just static text. Something along those lines.

from cider.

vemv avatar vemv commented on May 26, 2024

Indeed. The fn could take a single nrepl-dict as a param, so that it can grow without breaking changes?

from cider.

bbatsov avatar bbatsov commented on May 26, 2024

Why a dict? It can just be some standard alist or a plist, as I doubt this data will have anything to do with nREPL messages which the dicts were created to model.

from cider.

vemv avatar vemv commented on May 26, 2024

It's simply a nice / commonly used 'API', but no strong preference from my side.

from cider.

AndreaCrotti avatar AndreaCrotti commented on May 26, 2024

Maybe not exactly related, but I also saw that you can pass a custom greeting-fn function to nrepl/start-server.
You'll definitely have all the information you need (to distinguish staging/prod for example) on the server side, and maybe I can also use that to let users know where they are connected to?

from cider.

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.