Questions tagged [conceptual]

Conceptual questions involve programming problems which are not related to program code itself, but with algorithm logic and program architecture.

364 questions
2
votes
1 answer

What is the optimal approach for validating object types of method arguments in Python?

This isn't a specific issue with code and more of an open, conceptual question, so I hope it's in the right place. I have a pandas dataframe, and I often subset data on bounding times and other optional variables, here frequency. The frequency has…
Dagorodir
  • 104
  • 1
  • 10
2
votes
1 answer

What is the correct term to describe a procedure that produces the same result irrespective of how many times it is run?

Say you want to create a new table in a database. If you run a script that only contains the CREATE... code, then it will work the first time, but crash if run again, since it will be trying to create an object that already exists. By adding IF…
Kjartan
  • 18,591
  • 15
  • 71
  • 96
2
votes
2 answers

Are multiple instantiations of a graph created when two TensorFlow sessions are created?

Background I'm learning TensorFlow by walking through part II of Hands-On Machine Learning with Scikit-Learn and TensorFlow, and one of the exercise questions is (bolded text my own addition to add clarity to question): "If you create a graph g…
m_squared
  • 105
  • 9
2
votes
0 answers

How to handle patches that contains database migrations in long-term supported (LTS) software versions

I am currently working on a project, where we want to give long-term support (LTS) for some specific "LTS versions" which we will release in the future. Like the name says, we want to give support (bug fixes/patches) for this LTS versions over a…
Jonas Benz
  • 503
  • 3
  • 12
2
votes
1 answer

Hierarchical structure representation on a WebPage

I am working on some reseaech which subject is to find a proper way to represent a hierarchical structure on a simple web page. Precision : It's a huge amount of data. Let have some contextualisation first : Let say you have a company which is…
hamdalaye
  • 107
  • 1
  • 12
2
votes
1 answer

How does TensorFlow execute symbolic loops (e.g. tf.while_loop, tf.scan etc.)?

Does is it internally unroll the graph, i.e. does it create a static graph on the fly with copies of the loop body subgraph, or does it only manage the the forward activations for backprop at different memory locations for each loop iteration,…
Lenar Hoyt
  • 5,971
  • 6
  • 49
  • 59
2
votes
0 answers

How do generators (yield) work on the low-level?

I know the concept of generators (usually yield) that most scripting languages provide (like PHP or Python), so how to use them, how they work and what benefits (less clutter, more performance, less memory) they usually have within the scope of the…
Foo Bar
  • 1,764
  • 4
  • 24
  • 43
2
votes
0 answers

what does isomorphism mean in the context of software engineering?

I keep hearing the term 'isomorphic', particularly in relation to polymorphism, but I don't understand what it means. What is an isomorphic type?
KAT
  • 23
  • 6
2
votes
2 answers

Ruby - How to test for nil or empty string from console(stdin)

I'm very new to ruby so please bear with me... In a text on Ruby there is a code example that does this: str = gets exit if str.nil? || str.empty? str.chomp! temp, scale = str.split(" ") My queries are as follows: Given that gets will only return…
macrolyte
  • 352
  • 3
  • 12
2
votes
0 answers

Logic distribution in GO

I was playing arround in Go and stumbled upon this dilemma: (Keep in mind that this is purely conceptual and my goal is try to minize logic repetition and so) Imagine I had to model two type of files: binary and text. First, each should know how to…
Charlyzzz
  • 590
  • 1
  • 4
  • 8
2
votes
4 answers

Recycling variable name within single function

I have a function that contains two for loops, and I'm using a variable called count as the counter. I've chosen to recycle the name as the the first loop will finish it's execution completely before the second one begins, so there is no chance of…
user360907
2
votes
3 answers

write a c function that generates one random number, or a pair of random numbers, or a triplet of random numbers given the particular ranges

i have to generate random numbers for 3 different cases. i. 1 dice ii. a pair of dice iii. 3 dices my questions: 1. please suggest me sm good logic to generate random numbers for all the 3 cases. 2. does the logic change when i consider the cses of…
wordwiz
  • 155
  • 3
  • 7
2
votes
1 answer

Multiple entity extension

Imagine I've got a class defining an entity, such as a Product. My framework is structured in toggable modules, such that some modules may extend the default class, i.e: Module1 lets me define a ColoredProduct Module2 lets me define a…
repptilia
  • 457
  • 8
  • 19
2
votes
5 answers

Dealing with "less than"s in R

Perhaps this is a philosophical question rather than a programming question, but here goes... In R, is there some package or method that will let you deal with "less than"s as a concept? Backstory: I have some data which, for privacy reasons, is…
Unstack
  • 551
  • 3
  • 7
  • 13
2
votes
0 answers

SOAP alone is for compatability and with WSRF for stateful communications?

I know this might be a very basic question but I read so many articles on SOAP and I need to make sure I got it right. In brief, I use SOAP because it's build on XML and thus I can have a standarized way to enable compatible communications between…