Giter VIP home page Giter VIP logo

Comments (13)

gavinking avatar gavinking commented on August 16, 2024

Furthermore, I also have some doubts about naming.

  1. Why is it HttpRequest, HttpResponse? Does ceylon.net have other kinds of Requests and Responses?
  2. Why is it WebEndpoint and WebEndpointConfig? Does ceylon.net have other kinds of Endpoints and EndpointConfigs?
  3. Why is it HttpdStatusListerner? Are there other sorts of StatusListener? Also note the misspelling ;-)
  4. We don't use abbreviations in the SDK, therefore Config should be Configuration.
  5. I'm also very suspicious of the name of the interface Httpd. Is that a word?

from ceylon-sdk.

tombentley avatar tombentley commented on August 16, 2024

I think we should be putting all this in a ceylon.http module (e.g. ceylon.http.client / ceylon.http.server) rather than it being a package of ceylon.net. After all there are plenty of other protocols, and it would be unreasonable to make them all packages of ceylon.net.

And I agree that we should try to avoid the term 'httpd' in favour of 'server', which will be more obvious to many people, is pronounceable, and offers a certain symmetry in conjunction with the term 'client'.

from ceylon-sdk.

quintesse avatar quintesse commented on August 16, 2024

In principal I agree with the above, just that I don't see how "it would be unreasonable to make them all packages of ceylon.net". Why would that be unreasonable?

from ceylon-sdk.

tombentley avatar tombentley commented on August 16, 2024

Well, I guess we're unlikely to support a great many protocols in the SDK, so maybe it would not actually be "unreasonable". But in theory we end up with a package (or two) for each protocol, and imho it gets a bit silly having nested packages like this:

  • ceylon.net.http
  • ceylon.net.smtp
  • ceylon.net.xmpp
  • ceylon.net.ftp

where there's no dependency of the subpackages on each other, only on the parent package.

The whole point is that http provides abstractions I can use (mostly) independently of tcp/ip, so having those abstractions in their own module makes sense to me. After all, in theory I could write an http 'server' that uses inetd to handle the network interaction.

from ceylon-sdk.

quintesse avatar quintesse commented on August 16, 2024

Well, I would expect inetd to be in net as well :)
But even so, an http client/server without some kind of network communication seems a bit far-fetched right?

For it's just that if we start putting everything in the toplevel name space we'll end up with many dozens of modules and no grouping, no way to easily find related things, so http will be next to regexp, next to serializing, next to xml parsing, etc, personally I like things a bit more organized

from ceylon-sdk.

loicrouchon avatar loicrouchon commented on August 16, 2024

I agree with quintesse, I prefer ceylon.net.http than ceylon.http

I also found that server would be clearer than httpd

from ceylon-sdk.

matejonnet avatar matejonnet commented on August 16, 2024

What do you think about moving to ceylon.net.http.client and ceylon.net.http.server ?

from ceylon-sdk.

FroMage avatar FroMage commented on August 16, 2024

Sounds good to me.

from ceylon-sdk.

gavinking avatar gavinking commented on August 16, 2024

+1

Sent from my iPhone

On 08/03/2013, at 11:00 AM, Matej Lazar [email protected] wrote:

What do you think about moving to ceylon.net.http.client and ceylon.net.http.server ?


Reply to this email directly or view it on GitHub.

from ceylon-sdk.

FroMage avatar FroMage commented on August 16, 2024

This is done, right?

from ceylon-sdk.

FroMage avatar FroMage commented on August 16, 2024

Can I close this issue or was there something else remaining?

from ceylon-sdk.

matejonnet avatar matejonnet commented on August 16, 2024

You can close it. @gavinking refactored API, based on his comments ;)
Packages has been renamed too.

from ceylon-sdk.

FroMage avatar FroMage commented on August 16, 2024

Thanks.

from ceylon-sdk.

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.