Skip to main content

Approach to Improving Java Source Code Considering Non-compliance with a Java Style Guide

  • Conference paper
  • First Online:
Computer Science – CACIC 2022 (CACIC 2022)

Abstract

This work shows the betterment of a typical Java source code application by taking into account its non-compliance with a subset of items of the Google Java Style Guide. To get this, an improving strategy is used. The improving strategy has a set of activities that allow defining non-functional requirements in the form of characteristics, attributes, items, and their relationships, as well as designing and implementing measurements, evaluations, analysis, and code changes. The practical case was carried out in the context of an advanced undergraduate subject in System Engineering as a compulsory integrated exam. The results of evaluating attributes/items for compliance with the above coding style guide and improving non-compliances are illustrated in detail. We argue that this study may be of interest to professors and students of other similar degrees.

This is a preview of subscription content, log in via an institution to check access.

Access this chapter

Chapter
USD 29.95
Price excludes VAT (USA)
  • Available as PDF
  • Read on any device
  • Instant download
  • Own it forever
eBook
USD 69.99
Price excludes VAT (USA)
  • Available as EPUB and PDF
  • Read on any device
  • Instant download
  • Own it forever
Softcover Book
USD 89.99
Price excludes VAT (USA)
  • Compact, lightweight edition
  • Dispatched in 3 to 5 business days
  • Free shipping worldwide - see info

Tax calculation will be finalised at checkout

Purchases are for personal use only

Institutional subscriptions

References

  1. Becker, P., Olsina, L., Papa, M.F.: Strategy for improving source code compliance to a style guide. In: XXVIII Congreso Argentino de Ciencias de la Computación (CACIC’22), La Rioja, Argentina, pp. 312–321 (2022). http://sedici.unlp.edu.ar/handle/10915/149102

  2. Becker, P., Tebes, G., Peppino, D., Olsina, L.: Applying an improving strategy that embeds functional and non-functional requirements concepts. J. Comput. Sci. Technol. 19(2), 153–175 (2019). https://doi.org/10.24215/16666038.19.e15

    Article  Google Scholar 

  3. Bogdanovych, A., Trescak, T.: Coding style and decomposition. In: Bogdanovych, A., Trescak, T. (eds.) Learning Java Programming in Clara’s World, pp. 83–100. Springer International Publishing, Cham (2021). https://doi.org/10.1007/978-3-030-75542-3_4

    Chapter  Google Scholar 

  4. Broekhuis, S.: The importance of coding styles within industries. In: 35th Twente Student Conference on IT (TScIT 35), pp. 1–8 (2021)

    Google Scholar 

  5. dos Santos, R.M., Gerosa, M.A.: Impacts of coding practices on readability. In: International Conference on Software Engineering, pp. 277–285 (2018)

    Google Scholar 

  6. Dujmovic, J.: Continuous preference logic for system evaluation. IEEE Trans. Fuzzy Syst. 15(6), 1082–1099 (2007)

    Article  Google Scholar 

  7. Elish, M., Offutt, J.: The adherence of open source java programmers to standard coding practices. In: 6th IASTED International Conference on Software Engineering and Applications, pp. 1–6 (2002)

    Google Scholar 

  8. Google Java Style Guide: https://google.github.io/styleguide/javaguide.html (2022). Last Accessed June 2022

  9. ISO/IEC 9126-1: Software Engineering – Software Product Quality – Part 1: Quality Model, International Organization for Standardization, Geneva (2001)

    Google Scholar 

  10. ISO/IEC 25010: Systems and Software Engineering – Systems and software product Quality Requirements and Evaluation (SQuaRE) – System and software quality models (2011)

    Google Scholar 

  11. Kernighan, B.W., Plauger, P.J.: The Elements of Programming Style, 1st edn. McGraw-Hill, New York (1974)

    MATH  Google Scholar 

  12. Lee, T., Lee, J.B., In, H.P.: A study of different coding styles affecting code readability. Int. J. Softw. Eng. Appl. 7(5), 413–422 (2013)

    Google Scholar 

  13. Olsina, L.: Applicability of a foundational ontology to semantically enrich the core and domain ontologies. In: 13th International Joint Conference on Knowledge Discovery, Knowledge Engineering and Knowledge Management, vol. 2, pp. 111–119. KEOD (Knowledge Engineering and Ontology Development), Portugal (2021)

    Google Scholar 

  14. Olsina, L., Becker, P.: Family of strategies for different evaluation purposes. In: XX CIbSE’17, Published by Curran Associates, pp. 221–234 (2017)

    Google Scholar 

  15. Oman, P.W., Cook, C.R.: A paradigm for programming style research. ACM SIGPLAN Not. 23(12), 69–78 (1988). https://doi.org/10.1145/57669.57675

    Article  Google Scholar 

  16. Reddy, A.: Java™ coding style guide. Sun MicroSystems (2000)

    Google Scholar 

  17. Sun Microsystems: Java code conventions. https://www.oracle.com/technetwork/java/codeconventions-150003.pdf (1997)

Download references

Acknowledgment

This line of research is supported partially by the Engineering School at UNLPam, Argentina, in the project coded 09/F079.

Author information

Authors and Affiliations

Authors

Corresponding author

Correspondence to Luis Olsina .

Editor information

Editors and Affiliations

Rights and permissions

Reprints and permissions

Copyright information

© 2023 The Author(s), under exclusive license to Springer Nature Switzerland AG

About this paper

Check for updates. Verify currency and authenticity via CrossMark

Cite this paper

Becker, P., Olsina, L., Papa, M.F. (2023). Approach to Improving Java Source Code Considering Non-compliance with a Java Style Guide. In: Pesado, P. (eds) Computer Science – CACIC 2022. CACIC 2022. Communications in Computer and Information Science, vol 1778. Springer, Cham. https://doi.org/10.1007/978-3-031-34147-2_9

Download citation

  • DOI: https://doi.org/10.1007/978-3-031-34147-2_9

  • Published:

  • Publisher Name: Springer, Cham

  • Print ISBN: 978-3-031-34146-5

  • Online ISBN: 978-3-031-34147-2

  • eBook Packages: Computer ScienceComputer Science (R0)

Publish with us

Policies and ethics