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
3
votes
1 answer

What's the difference between React Context API & Hooks?

As i understand it, they both deal with state. Hooks seem to be more internal to a components state, while the context api seems to solve the problem of prop drilling, creating a more global state? Is this false? What am I missing? Thanks a lot!
R. Kohlisch
  • 2,823
  • 6
  • 29
  • 59
3
votes
4 answers

Conceptual question on (a tool like) LoadRunner

I'm using LoadRunner to stress-test a J2EE application. I have got: 1 MySQL DB server, and 1 JBoss App server. Each is a 16-core (1.8GHz) / 8GB RAM box. Connection Pooling: The DB server is using max_connections = 100 in my.cnf. The App Server too…
Harry
  • 3,684
  • 6
  • 39
  • 48
3
votes
0 answers

Neural Network, gradient descent only finds the average of the outputs?

This problem is more conceptual than in the code, so the fact that this is written in JS shouldn't matter very much. So I'm trying to make a Neural Network and I'm testing it by trying to train it to do a simple task - an OR gate (or, really, just…
3
votes
3 answers

What's really happening inside getchar() and printf()? Explain whole process

I was learning from geeksforgeeks and when i saw this, a thought came in my mind that as getchar() and other similar functions returns an int(whether due to failure of program or EOF) then why format specifier used is %c, why not %d(or %i). //…
Alfran
  • 1,301
  • 1
  • 10
  • 19
3
votes
1 answer

what's the featherjs way to handle non-data related actions and child objects?

I just discovered feathersjs and really like the idea behind it, even though I'm still unsure how the service-based philosophy can fit for applications which are more complex than a simple CRUD UI. In order to better understand it I made up an…
muffel
  • 7,004
  • 8
  • 57
  • 98
3
votes
3 answers

How to handle complex user status?

My application deals with user payments. In the company, this user has the following status: compliant (user payed all debts so far) overdue/default (user registered for 3 months minimum and has hasn't payed at least 1 debt) inactive (user is…
Felipe Francisco
  • 1,064
  • 2
  • 21
  • 45
3
votes
2 answers

How does an interpreter switch scope?

I'm asking this because I'm relatively new to interpreter development and I wanted to know some basic concepts before reinventing the wheel. I thought of the values of all variables stored in an array which makes the current scope, upon entering a…
Dox
  • 31
  • 1
3
votes
1 answer

Why I must provide pointer and not SharedPtr into some methods of poco

We are using Poco in our project and we've found 3 cases where we are embarrassed with poco and its pointer gesture. In most of cases when you call a mathod of a poco class, it take in parameter a Poco::SharedPtr<> but sometimes, it take a pointer…
lgm42
  • 591
  • 1
  • 6
  • 29
3
votes
1 answer

Django: Using views to handle the logic of template tags?

I've written a templatetag that includes much of the logic that I would normally expect to find in a view. While writing some unit tests I started wondering about a slightly different approach. I don't feel experienced enough to judge the pros and…
sthzg
  • 5,514
  • 2
  • 29
  • 50
3
votes
1 answer

Thread or Task for long running operation

I need to have a thread in my app that will be long running (it is a job scheduler, Cron like) and will be most of the time sleeping. So not much CPU and IO. What would you advise me for this . Does a Task with long running option is the proper way…
3
votes
4 answers

How to (correctly) update the M in MVVM of WPF application?

Having passed a series of Edward Tanguay's questions refractoring the usage of MVVM for WPF app which can be found in Linked sidebar of his Fat Models, skinny ViewModels and dumb Views, the best MVVM approach?, I am a little confused by his final…
3
votes
2 answers

BattleShip Game IOS conceptual design

ok, here´s a first time noob question, sorry if that´s stupid. I was just wondering, for a battleship kind of game, would it be a waste of memory to build a set of objects for each cell (10X10=100), with position(x,y) and state(empty,hit,missed)…
user1347271
  • 127
  • 1
  • 8
2
votes
1 answer

Technical concept for a timeline-scheduler

my project is a scrollable scheduler, similar to vis-timeline and using Vue.js. One of my biggest problems is how to scroll infinitely and smoothly in every direction (past and future). I'll readily admit that I'm not that experienced as a…
Dennis Vogel
  • 23
  • 1
  • 3
2
votes
0 answers

Confusion about Mach-O offsets and addresses

I’m looking in the Mach-O structure and there is one bit which I am confused over. I understand the basic structure of a macho file. I'm trying to programmatically read the bytes in the first TEXT section in the first TEXT segment, and I have a…
2
votes
2 answers

Efficient way to replace a large number of entries in a dataframe

I'm creating an automation program for work that automatically takes care of generating our end of the the month reports. The challenge I've run into is thinking of an efficient way to make a large number of replacements without a for loop and a…