GithubHelp home page GithubHelp logo

No name? about zubr HOT 15 CLOSED

nkkollaw avatar nkkollaw commented on July 19, 2024 1
No name?

from zubr.

Comments (15)

nkkollaw avatar nkkollaw commented on July 19, 2024 1

@radmen , since you were saying we mentioned phpsadness, how about "Happy"?

\Happy\str_pos('hello', 'hell');

I like it a lot right now (not sure if I'll still like it in a hour or day).

from zubr.

ddziaduch avatar ddziaduch commented on July 19, 2024

good idea

from zubr.

radmen avatar radmen commented on July 19, 2024

Although the namespace should IMHO be called PHP for clarity and readability

There may be a problem with that. On Internals there was a discussion about putting core functions to php NS. End conclusion is that there won't be any php global ns, however some extensions might get it (eg php\ast).

Maybe we should follow this convention and ns functions under something like: php\sane?

from zubr.

nkkollaw avatar nkkollaw commented on July 19, 2024

There may be a problem with that. On Internals there was a discussion about putting core functions to php NS. End conclusion is that there won't be any php global ns, however some extensions might get it (eg php\ast).

Good catch. From what I understand they're postponing the issue to PHP 8, though.

Maybe we should follow this convention and ns functions under something like: php\sane?

That's not bad at all. I also wouldn't hate something like PHPX, like \PHPX\str_pos() of course we could call it whatever we want, then one can use the namespace as \PHP or whatever (we could make calling it PHP or whatever else a best practice).

As for "sane", it makes sense but it's somewhat offensive to PHP and PHP devs? Like PHP itself is insane... I would probably personally like something where "wrapper" was the keyword, better.

from zubr.

radmen avatar radmen commented on July 19, 2024

As for "sane", it makes sense but it's somewhat offensive to PHP and PHP devs? Like PHP itself is insane...

Ah, that's true ;)

You were relating in README to phpsadness - maybe the name should be somehow related to it (eg php\medicine) - cure for your PHPSadness :D

from zubr.

nkkollaw avatar nkkollaw commented on July 19, 2024

You were relating in README to phpsadness - maybe the name should be somehow related to it (eg php\medicine) - cure for your PHPSadness :D

Haha, that's not bad at all. That would mean that PHP devs are sick people at that point, though :D

from zubr.

radmen avatar radmen commented on July 19, 2024

That would mean that PHP devs are sick people at that point, though :D

I think that our community has sense of humor ;)

Regarding naming - I've recently worked on https://github.com/baethon/phln/ and one thing I can say is that it would be good that the namespace is not too long. If it will be too long there will be temptation to import functions, which will lead to bigger mess :)

I'd suggest using medicine (or smth similar) as a main namespace (instead php). So that all functions are like medicine\array_search().

from zubr.

nkkollaw avatar nkkollaw commented on July 19, 2024

I'd suggest using medicine (or smth similar) as a main namespace (instead php). So that all functions are like medicine\array_search().

Sure, let's think about it, though. Many people dismiss projects just for the name.

How about:

  • Pill (means "medicine")
  • Lek ("medicine" in Polish, but doesn't make a lot of sense in this case)

I'll think of more names. I'm not good at finding names but I'm good at having the impression that one is not the right one :-)

Also it should "look good" when typed, like:

\Pill\str_pos($wha, $ye);
\Lek\str_pos($wha, $ye);

EDIT: 2 good ones (IMHO):
phew - Used to express relief, pron. like "few"
phat - Cool, pretty hot, pron. like "fat"

I like Pill, Phat (althought there's already https://github.com/ryanve/phat), and Phew (although there's already https://github.com/vaibhavpandeyvpz/phew).

from zubr.

radmen avatar radmen commented on July 19, 2024

Happy is kind of nice :) Pill is also good (even better). I'm leaving this to you :)

from zubr.

nkkollaw avatar nkkollaw commented on July 19, 2024

No love for Phew..?

from zubr.

radmen avatar radmen commented on July 19, 2024

No love for Phew..?

Lots :) However, this namespace is taken by another package. I'm not sure if it's a good idea to use it in a different one.

from zubr.

nkkollaw avatar nkkollaw commented on July 19, 2024

(last message and then I'm done for today)

Zubr.

This is my list in order of preference:

\Zubr\str_pos('Hello', 'What');
\Phew\str_pos('Hello', 'What');
\Happy\str_pos('Hello', 'What');
\Pill\str_pos('Hello', 'What');

I think we should go with Phew, because it kinds of remind of "PHP", is short, has meaning. If not, I vote for Zubr because everyone is in Poland, it's short, looks good in monospaced font, and the name doesn't matter unless it's PHPhiphippo.

from zubr.

radmen avatar radmen commented on July 19, 2024

Zubr like the polish vodka? I like it ^^

from zubr.

nkkollaw avatar nkkollaw commented on July 19, 2024

Yes, Żubr like the beer or animal :-)

from zubr.

nkkollaw avatar nkkollaw commented on July 19, 2024

Going with Zubr.

🇵🇱

from zubr.

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.