Giter Site home page Giter Site logo

Comments (4)

HrFlorianHoffmann avatar HrFlorianHoffmann commented on June 11, 2024

No objections. :-)

from styleguides.

nomssi avatar nomssi commented on June 11, 2024

Apart from SAP, everyone must prefix or use the Y / Z name space.
So without the prefixes, the examples look less real word to me.

from styleguides.

pokrakam avatar pokrakam commented on June 11, 2024

@nomssi , good point, but this is understandable as it started out for internal use by people who aren't bound by those restrictions.

Do you mean less real world than with the /clean/ prefix? I can also agree it looks a bit odd because we're all used to having classes prefixed with (z)cl_, so my brain looks for cl_message_severity. But that's being discouraged by this very guide too.

The ABAP reference books and ABAP documentation don't use 'Z', so to me it still looks natural. And it is valid for all non-dictionary objects, us mortals can write this in reports and local classes :-)

The style options would be:

  1. CLASS message_severity.
  2. CLASS zmessage_severity.
  3. CLASS cl_message_severity.
  4. CLASS zcl_message_severity.
  5. CLASS /clean/message_severity.

3 and 4 are closest to what we're used to, but are discouraged. I'm not too fussed between 1 and 2, but 1 is that tiny bit simpler and emphasises the 'use descriptive names' point a little bit better.

from styleguides.

f4abap avatar f4abap commented on June 11, 2024

ok, the hungarian notian is something I hate since I joined the language. So clean ABAP says noone need it and I'm absolutely with it. So in my opinion we should go for number 2.

from styleguides.

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.