Questions tagged [dynamic]
The dynamic tag has no usage guidance.
24
questions
-2
votes
1
answer
95
views
What could be the best approach to reallocate the memory of dynamically allocated arrays? [closed]
What could be the best approach to rellocate memory for dynamically allocated array?
Say with the help of malloc we initially allocated 10 integer size memory. Now we want to change it to point to 20 ...
5
votes
5
answers
4k
views
Why is C# considered a statically-typed language, although it contains keywords such as `dynamic` and `var`?
C# is considered a statically-typed language. However, it contains keywords such as:
var, which infers the type at compile time, and
dynamic, which determines the type at runtime.
Is this a ...
0
votes
1
answer
84
views
How to implement adaptive routing?
I need to send jobs to worker queues according to resource usage and other metrics like how many jobs have been processed and how successful they were.
There is also the need to “weight” these ...
3
votes
1
answer
410
views
Dynamic execution of Template Literals using a Map
I have a system that is generating internal events for objects. I am extending their debugger to display a human-readable version of the events sent to the debugger.
For instance, the system will ...
0
votes
1
answer
193
views
Is there a design for C# that removes the need for dynamic?
I have a web service that implements Repository Pattern and I was wondering if there is a design in C# that can remove the need for 'dynamic' when injecting it in my method.
public interface ...
4
votes
3
answers
23k
views
Dynamically add/change attributes of values in C#
I want to tag the values of variables with a "quality" attribute that can be changed dynamically during my programs execution. My first thought was to abuse the standard attribute functionality by ...
1
vote
1
answer
527
views
Am I allowed to use a GPL dynamically-linked library if I'm developing on a proprietary runtime engine?
Basically, title.
This is just me trying to clarify part of the GPL for myself.
Let's say I'm developing a program that compiles and runs on a non-free runtime engine.
I'm perfectly willing to ...
0
votes
2
answers
75
views
Hide Away Technical Abstraction of an Object from Users without needing Static Rules
I'm an owner of some Product, where I have different clients who use that product, and the attributes of that product alter the experience that my clients have on my page.
For an example, lets say ...
2
votes
1
answer
428
views
Dynamic Scheduling Algorithm
Recently I got interested in scheduling problems or rather dynamic scheduling problem. The problem is that I want to develop some kind of layer in my application which will be polling circa about 50-...
20
votes
3
answers
6k
views
Professional way to produce a large problem without filling up huge arrays: C++, free memory from part of an array
I'm developing a physics simulation, and as I'm rather new to programming, I keep running into problems when producing large programs (memory issues mainly). I know about dynamic memory allocation and ...
8
votes
2
answers
7k
views
Why generic interface cannot implement dynamic type?
If it possible
IList <dynamic> = new List <dynamic>;
or
class A <T> { }
class B: A <dynamic> { }
Why it is not possible to do
class U: IEnumerable <dynamic> {}
?
0
votes
2
answers
1k
views
How to create data driven views in AngularJS?
I am building a support web front-end for our team from where we can perform various support functions for a number of different sites at which our products run. This typically involves running some ...
-1
votes
1
answer
590
views
About Node serving dynamic pages
I am doing a tech test for a job (Web Development) and in the test I need to get data from an API and there is this conditions for the server:
Focus on client-side (AngularJS)
nodeJS
The server must ...
0
votes
2
answers
265
views
Can there be value types in dynamic languages? [closed]
A value type is one whose instances are themselves saved in variables. A reference type is a type whose instances are saved somewhere and variables only hold the addresses of the instances.
Some ...
1
vote
3
answers
1k
views
Addition or deletion of elements of a dynamic array
Is there any consensus among programmers (or a common convention) on the "right way" to deal with the addition or deletion of one or more elements of a dynamic (mutable) array at runtime while ...
1
vote
1
answer
1k
views
Ignoring the generic part of a type while an object is being passed
I have a message class that holds the name of a destination, and a generic variable acting as the message payload
public class Message<T> {
public string Destination
public T Payload
...
8
votes
5
answers
29k
views
Implementing a generic/dynamic custom property system in C#
I have an architecture design problem which I think is appropriate for this site.
Note that I have made an EDIT to this post below, reflecting my latest potential solution to this problem.
General ...
8
votes
2
answers
524
views
Why don't Python and Ruby make a distinction between declaring and assigning a value to variables?
Two of the most popular dynamically typed scripting languages, Python and Ruby, do not make a distinction in syntax between the declaration of a variable and assignation of a value to it.
That is in ...
2
votes
1
answer
5k
views
Differences between Dynamic Dispatch and Dynamic Binding
I've been looking on Google for a clear diffrentiation with examples but couldn't find any.
I'm trying to understand the differences between Dynamic Dispatch and Dynamic Binding in Object Oriented ...
1
vote
1
answer
3k
views
Dynamic method creation in python
I have a class that will have a number of external methods that will all call the same smaller set of internal methods. So something like:
obj.method_one(a, c) and
obj.method_two(a, c)
where obj....
0
votes
2
answers
5k
views
Dynamic initialization, how does it work?
I have a question regarding dynamic initialization.
Example code
void main()
{
int a = 100;
//Statement1
//Statement2
...
float b = 6.32987; //StatementA
...
return;
}
The StatementA allocates ...
1
vote
1
answer
87
views
What is the best way to handle dynamic content?
So we run a site where there are elements of the interface that could potentially be changed at any moment in the backend. Specifically we run a web service where certain functions are loaded ...
3
votes
1
answer
2k
views
Are there security implications to using dynamically-assigned TCP port numbers?
I'm getting pushback from operations for having a server process listen on a dynamically-assigned port number (i.e. it binds a socket to a port number of 0, triggering a dynamic assignment by the OS, ...
0
votes
1
answer
1k
views
Java Dynamic Binding
I am having trouble understanding the OOP Polymorphic principl of Dynamic Binding ( Late Binding ) in Java. I looked for question pertaining to java, and wasn't sure if a overall answer to how dynamic ...