Should "asset::" be plural?

About Monkey 2 Forums Monkey 2 Development Should "asset::" be plural?

This topic contains 17 replies, has 12 voices, and was last updated by  Danilo 2 years, 8 months ago.

Viewing 15 posts - 1 through 15 (of 18 total)
  • Author
    Posts
  • #2402

    Mark Sibly
    Keymaster

    Hi,

    One thing I find a bit annoying is I keep mistyping ‘asset::’ as ‘assets::’ – anyone else encountered this? Should I change it?

    Not sure why I went with ‘asset::’ in the first place, but ‘assets::’ seems more natural to me now as it generally maps to a folder that contains multiple blobs. Also, that’s what the source dir is (usually) called.

    I’ve also been playing around with adding ‘fonts::’ and ‘images::’ prefixes and the same issue arises – these will map to ‘asset::fonts/’ and ‘asset::images/’ and it seems to me these should be plural. And if they’re plural, why now assets?

    If ‘asset::’ could NOT be followed by something containing ‘/’ – ie: a path – then I think it would make sense to stick with the singular.

    If it does get changed, I can always leave the old ‘asset::’ in there for a while.

    Thoughts?

    Bye,
    Mark

    #2404

    Matthew Smith
    Participant

    I can see why you used ‘asset::’ as you are loading one asset for each call.  I also think ‘asset::fonts/’ etc as plural makes sense based on the folder/multiple blob scenario.

    #2405

    Simon Armstrong
    Participant

    For developers include and src directories aren’t plural so i’m not sure resource, style, font, asset paths should have any reason to be different in nature. Although I definitely prefer scripts over script folders so hmmm.

    #2406

    taumel
    Spectator

    a) i prefer singular, b) dat(a) over asset, c) copy&paste it anyway, d) i still prefer scope type var var over scope var type var type, … z) plural would be bloated.

    #2407

    Mark Sibly
    Keymaster

    ‘asset::fonts/’

    Except it’s not – it’s just ‘fonts::’ eg:

    Local font:=Font.Open( “fonts::myfont.ttf”,16 )

    Meh, not really bothered mainly just wondered whether other people found it weird too – the physical dir is called ‘assets’ but you access it with ‘asset’.

    #2408

    taumel
    Spectator

    You could rename the folder.

    The way i understand asset, it’s just right. Problem might be, that the term, in connection with video games, is used in a inflationary way. So what?!

    #2410

    Simon Armstrong
    Participant

    According to the AssetsDir documentation it already is the assets folder. So to avoid confusion I think you should pluralise it.

    #2413

    jondecker76
    Participant

    Why not allow either?

    #2414

    Samah
    Participant

    Singular makes sense to me, as it’s an identifier to a single asset. Kinda like the “file://” URI prefix. I would recommend against allowing both singular and plural. Just pick one and stick with it.

    #2415

    Danilo
    Participant

    For “http” they changed it also to plural, so
    while “http” will stay for a while (compatibility),
    the new and future-proof spelling is plural: “https”.

    😀

    Personally I read it as “location::file.ext”, so
    “fonts”/”images”/”assets” is fine as location.

    #2417

    nobuyuki
    Participant

    For “http” they changed it also to plural, so
    while “http” will stay for a while (compatibility),
    the new and future-proof spelling is plural: “https”.

    lol

    #2418

    therevills
    Participant

    For “http” they changed it also to plural, so
    while “http” will stay for a while (compatibility),
    the new and future-proof spelling is plural: “https”

    Please say you are joking 🙂

    (s = secure) 😛

    OT: I prefer singular… but I’ve yet created a super large project where I wouldnt want to use assets anyway…

    #2419

    taumel
    Spectator

    I wonder what an asset means to people. An asset is not the same as an image or a sound. An asset can contain many different elements already, like a resource, a container or a package. Assets are more of these containers then. The Unity folks made it hip saying assets instead of data and naming single elements with asset only.

    Exciting times, maybe Mark wants to democratize game dev now too. :O)

    #2429

    impixi
    Participant

    One thing I find a bit annoying is I keep mistyping ‘asset::’ as ‘assets::’ – anyone else encountered this?

    Meh, not really bothered mainly just wondered whether other people found it weird too – the physical dir is called ‘assets’ but you access it with ‘asset’.

    Yes, I have found it weird and have been “caught” by it. I would suggest offering both plural and non-plural variations.

    #2437

    Tibit
    Participant

    Local font:=Font.Open( “fonts::myfont.ttf”, 16 )

    So if “fonts” here maps directly to a folder by the same name then the same name would make sense. However if it always maps to a folder called /fonts/ then why not just leave it out? And if .ttf is also something that cannot change then leave that out as well?

    Local font:=Font.Open( “myfont”, 16 )

Viewing 15 posts - 1 through 15 (of 18 total)

You must be logged in to reply to this topic.