Skip to main content
-2 votes
0 answers
104 views

The scanner utility is a virtual example of equipment that I need to generate input from. I created the inputCities() method, but my program will not output anything, and I continuously run into the ...
Cece's user avatar
  • 7
4 votes
1 answer
79 views

I want to create a class that will create updateable plots. I plan on having 8-16 figures in one window, so it would be nice to have a class that would initiate these for me. These graphs will auto-...
Deepolisnoob's user avatar
0 votes
1 answer
103 views

I've done some amateur object-oriented programming in C++ and I have a quick question of what is possible when creating your own class. I've attempted to make a generalized 3-tuple template class that ...
Brian Dominguez's user avatar
1 vote
1 answer
107 views

I run calculations with muliple subs and functions looping up to get a result. Based on the number of iterations done by counters I change some variables to suit my needs. So far the counters have ...
Chris's user avatar
  • 23
Best practices
0 votes
8 replies
52 views

Let's say I have a class with many parameters. In Typescript, this is how the class is created: class ClassName { private para1: string para2: boolean para3: number = 6 protected ...
Sul4ur's user avatar
  • 1
Best practices
0 votes
3 replies
71 views

I’ve searched the space of Python nested class inheritance and have read that it's not best practice. I have a NameError on the following: class A() pass class B(A) pass I indeed ...
Mushy's user avatar
  • 2,713
Best practices
0 votes
4 replies
222 views

I am creating a program with C++ language that working with strong cryptography. Does it matter if I use public or private functions where contains a secret algorithms, any sensitive structures of ...
humankind's user avatar
3 votes
1 answer
110 views

Can't seems to find why generic interface types are allowed in powershell class argument attributes, but they can't accept anything - powershell class type resolution doesn't work in this case. Is ...
Zedarc7's user avatar
  • 33
1 vote
2 answers
96 views

Let's say I have this code: class MyClass { constructor() { return {}; } } const x = new MyClass(); // how many objects are instantiated with this? I know that variable x just holds ...
user3163495's user avatar
  • 4,046
0 votes
2 answers
117 views

I am trying to build a small scale deep learning framework. I defined my tensor class as follows class Tensor: __slots__ = ( "_backend", "_data", "...
Featherball's user avatar
3 votes
2 answers
107 views

I faced a specific behavior while using verbose output in class. This works like a charm: # SomeModule.psm1 class SomeClass { SomeClass() { Write-Verbose "It works!" } } ...
Aleksej Egorov's user avatar
Advice
1 vote
4 replies
73 views

With abstract subclasses on can use register to add other classes as a "virtual" subclass, what would be a way to do that for a single instance based on it fullfilling some criteria? The &...
Minimo's user avatar
  • 9
Advice
1 vote
3 replies
65 views

What is this? (function (Skd, $, undefined) { title = "SkdInternal"; // internal? #title = "SkdPrivate"; // private? Skd.title = "Skd"; // public? Skd....
Stig's user avatar
  • 1
Best practices
0 votes
5 replies
90 views

i'm in need of a data container for several data types and fail to write some omnipotent :-) converter func. Maybe my idea is crab, in this case please give me a hint what concept to use. My current ...
Synopsis's user avatar
  • 374
1 vote
2 answers
173 views

I've created a VBA Class module and written all the necessary code within it. When I go to use it, in Excel, I instantiate it in a global module as follows. Public gblFrequencyList As New clsLists ...
Dave Clark's user avatar

15 30 50 per page
1
2 3 4 5
5323