Questions tagged [dynamic]
The dynamic tag has no summary.
23 questions
7
votes
5
answers
6k
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
108
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
458
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
220
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 ...
5
votes
3
answers
29k
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
599
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
90
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
493
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 ...
9
votes
2
answers
8k
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> {}
?
-1
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
601
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
284
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
2k
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
...