Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8273987
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 8, 20262026-06-08T07:36:47+00:00 2026-06-08T07:36:47+00:00

I wonder what prefix you guys use for methods that create or calculate a

  • 0

I wonder what prefix you guys use for methods that create or calculate a value based on given parameters. I tend to use “get”, but that feels wrong, because it looks like a getter then.
For methods that fetch from the database I use “fetch”, but for methods that create a value based on the given input I haven’t found a satisfying prefix yet. (“create” feels a bit too generic). Are there guidelines for this or is everyone just thinking up something for themselves?

Pseudo code example:

class myClass
{
    method getOrderFlowpoint(par1, par2, par3) {
        // do stuff based on the parameters
        return orderFlowpoint;
    }
}
  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-08T07:36:47+00:00Added an answer on June 8, 2026 at 7:36 am

    I tend to not use prefixes. I tend to name the method according to the exact function it fulfills.

    If your function calculates the order flowpoint, that’s exactly how you should name it. calculateOrderFlowpoint.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

wonder if someone can help me i know what i want to achive but
Currently I use something like this to create project make files: cmake -DCMAKE_INSTALL_PREFIX=./install-dir -DBUILD_WITH_STATIC_CRT=ON
I'm starting using Fluent Assertions and I like it a lot, but wonder if
Wonder if anyone can help me, the map displays fine but the marker does.
I wonder how I can best create a progress bar fragment. It must be
wonder if I could get some advice on the best way to solve this
wonder if anyone can help - I thought I had solved this but i
I wonder what's the algorithm of make_heap in in C++ such that the complexity
since I know I can't use the Spring tag library in Facelets, I wonder
I wonder about that can I write native SQL to add or delete operations

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.