question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

[ER] Don't suggest private methods on cfcs

See original GitHub issue

Is it possible to differentiate between public and private methods on a cfc? I’ve (only just now) setup a services directory in the cfc_folders feature and I have a bunch of private methods in them that I like to start with underscores unfortunately that makes them appear at the top. If hiding isn’t a good option, putting them below public methods might be better?

image

Issue Analytics

  • State:closed
  • Created 7 years ago
  • Comments:8 (4 by maintainers)

github_iconTop GitHub Comments

1reaction
jcberquistcommented, Aug 25, 2016

@elpete: That is my plan (I want them suggested where they are callable). I definitely don’t want to remove private methods from the component completions altogether.

0reactions
mjhagencommented, Sep 12, 2016

haha well, if it’s to spaces I’m all for it 😃

Read more comments on GitHub >

github_iconTop Results From Across the Web

Are private methods a code smell? - Carlos Schults
The first argument presented states that private methods violate the Single Responsibility Principle. Private helper methods indicate classes ...
Read more >
Resharper - don't mark private methods explicitly as private
I want resharper to not put the private access modifier on fields by default - they're already private, I don't need additional modifier....
Read more >
The purpose of private methods and when to use them
Private methods indicate that the class is doing too many things (Single Responsibility Principle violation); Private methods have too many ...
Read more >
Permit an implementing class to ignore private methods of the ...
I suggest that when a class implements another class the implementing class be allowed to ignore the private fields and methods (both static...
Read more >
How to test private methods - CFUnit - SourceForge
In ColdFusion a CFC's methods can be marked as private (or package), which means no other CFC can access that method (or that...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found