Home
Blogs
Questions
Jobs
Monetize

Home

About Us

Blogs

Questions

Jobs

Monetize

Post Job

banner

Questions about code-standards

Read more about code-standards

python (65.2k questions)

javascript (44.3k questions)

reactjs (22.7k questions)

java (20.8k questions)

c# (17.4k questions)

html (16.3k questions)

r (13.7k questions)

android (13k questions)

Questions - code-standards

How we can achieve writing reusable and modular code

How we can achieve writing reusable and modular code in an Enterprise code. What are the basics to get started
test-img

VIKRAM SINGH CHOUHAN

reusability

maintainability

code-standards

testability

Votes: 0

Answers: 1

Latest Answer

Writing modular code is an art of programming. In Enterprise products, writing reusable code is a key to make your product reliable, testable and maintainable for long run. Modular and reusable code s...
test-img

VIKRAM SINGH CHOUHAN

Are there penalties for just using the new keyword instead of creating a class variable before calling the class method?

Example (1) var classVar = new class(); classVar.Method(); (2) new class().Method(); I like the second way, less wordy. Is there a performance difference? Is it considered bad coding practice?
test-img

BenG

performance

code-standards

Votes: 0

Answers: 2

Latest Answer

If your Method() doesn't use anything from that class, why is it defined there? You could use namespace instead. The only difference between your (1) and (2) is that the class instance is destructed i...
test-img

Vlad Feinstein

Posts

Questions

Blogs

Jobs

The ultimate platform for coders and IT specialists

About

  • Company
  • Support

  • Platform

  • Terms & Conditions
  • Privacy statement
  • Cookie policy
  • Cookie option
  • OnlyCoders © 2025  |  All rights reserved