Questions tagged [binding]
The binding tag has no usage guidance.
34
questions
4
votes
1
answer
364
views
How to bind C/C++ functions for my language [closed]
I'm making an interpreter (currently in python but later I'll remake it in C++) and I wondered how I could use a C/C++ function in my language so when somebody wants to write an extension for my ...
0
votes
1
answer
797
views
Capture by value/reference and early/late binding
Is capture by value (x below) an early binding and capture by reference (y below) a late binding in C++ lambdas, or are they both early bindings—the first by value and the second by reference?
#...
0
votes
2
answers
182
views
Is it possible to query data in a RDMS without writing SQL?
Disclaimer: I'm not very knowledgeable when it comes to SQL or RDBMS in general.
I've encountered this interesting answer about SQL as a language: https://stackoverflow.com/a/1643440/414063
This ...
0
votes
1
answer
224
views
How Would I Create Bindings to a GUI toolkit like GTK, Tk, or Qt for a Programming Language?
The title says it all. How would I, in theory, create a binding for different GUI toolkits for a programming language that has no GUI bindings. I ask because I want to experiment with this sometime ...
2
votes
3
answers
995
views
What is late binding?
I know, there are lots of sources on the internet, but I do not understand them.
Wikipedia: "Late binding, dynamic binding, or dynamic linkage is a computer programming mechanism in which the method ...
0
votes
2
answers
148
views
What's the exact usage of the term "foreign function interfaces"?
I'm working on a project that requires using multiple programming languages. I'm confused about what term to use to specify the interfaces available to bind two languages, e.g JNI, ctypes, jpype, etc. ...
1
vote
1
answer
478
views
Can you explain the behavior of PHP in cases when a parent class variable is masked by the child variable of the same name? [closed]
See the comment inside ChildEntity ::__construct():
class ChildEntity extends ParentEntity
{
/** @var int */
protected $classParameter;
function __construct(int $classParameter)
{
...
0
votes
1
answer
189
views
For what reasons would you use AngularJS expression (&) binding instead of using events?
Like the title asks, for what reasons would you use the ampersand binding in AngularJS instead of utilizing an event system--especially in a case where your application already uses events for some ...
0
votes
0
answers
76
views
Is data binding in an SQL RDBMS a fruitful endeavour?
I've found that a common task for web applications I've built is to react to a change in the state of the database. That is, any user interaction that affects the persistent state may change views ...
0
votes
1
answer
848
views
Relation between static and dynamic bindings and scopings?
From https://en.wikipedia.org/wiki/Name_binding
name binding is the association of entities (data and/or code) with
identifiers.[1] An identifier bound to an object is said to reference
that object.
...
0
votes
1
answer
2k
views
Differences between deep and shallow bindings for static scoping
I am self-learning Michael L. Scott's Programming Language Pragmatics. The following quote explains how deep binding and shallow binding are different in the presence of static scoping:
program ...
2
votes
1
answer
99
views
ADO.NET - Is it better to handle a combo box or label event, and where should the data be sourced from?
Context
I recently wrote a final exam that required using a BindingSource object with ADO.NET to populate a number of combo box and label controls from which the user could perform basic business ...
2
votes
3
answers
267
views
Best practise for databinding when a non-data object is included with the data
I'm using .NET with Windows Forms, but I believe there may be similar concerns with other toolkits.
Suppose we have a list of objects of a certain type. Using an example to make the following easier ...
1
vote
0
answers
585
views
Should my combobox for boolean values be in code-behind or in my viewmodel?
I ran into a disagreement with a coworker of mine on the implementation of representing a Boolean value in a ComboBox using Xaml and MVVM. Currently, my viewmodel is very simple. I have a bool? which ...
63
votes
8
answers
15k
views
Why does C provide language 'bindings' where C++ falls short?
I recently was wondering when to use C over C++, and vice versa? Fortunately someone already beat me to it and although it took a while, I was able to digest all the answers and comments to that ...
4
votes
1
answer
3k
views
How to test model binding within an MVC controller when Bind attribute with Include list is used?
Auto-generated action methods in MVC5 make use of the BindAttribute with an Include list that contains the field names in a string literal.
Example:
// POST: MyTable/Edit/5
// To protect from ...
4
votes
1
answer
1k
views
WPF properties memory management
I'm trying to build binding system similar to the one that is used in WPF and I ran into some memory leaking problems, so here comes my question - how is memory managed in WPF property system?
From ...
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 ...
4
votes
1
answer
460
views
Why does DrRacket IDE considers some identifiers as "symbols" and some as "keywords"? What is the difference?
Why does DrRacket (kind of Scheme) IDE highlights some of the identifiers as "keywords" (for example define, lambda, send*), and the others as "symbols" (user defined identifiers, +, -, abs, send, ...
1
vote
1
answer
821
views
Syncing objects from code with the view in WPF
I've been reading some into it, but I am time pressed, so I would require a simple solution now and I promise to read up on it later. I come from a winforms c# background, and have lately been working ...
3
votes
2
answers
3k
views
How exactly does a program (executable image) and library (pre-compiled image) "link" together?
I know very well of the difference of static versus dynamic linking. What I want to know is, when linking statically (with a library like Winmm.lib on Windows), how does the linker "link" the pre-...
6
votes
3
answers
2k
views
How to make support for bindings for a scripting language
Main
I'm making a scripting language using C++. I plan to use it with a simple test game editor. But I have to make a support for bindings to call game engine's nodes' methods to update positions, ...
4
votes
4
answers
450
views
In Scheme, what is formally a program's state?
I think i've understood more or less what a parsed Scheme program looks like (a binary tree with atomic values on the leaves, if i have understood correctly). Can anybody please define to me, or give ...
1
vote
1
answer
222
views
How we call an RPC that not only calls external functions but also updates data structures?
I have a simple C++ RPC that lets you have remote class instances that support live members (data structures) update as well as method calls. For example I had a class declared like this (pseudocode):
...
0
votes
1
answer
910
views
Where does the "mm" come from in GTKmm, glibmm, etc
I understand that the "mm" suffix [in various GTK-associated C++ binding libraries] means "minus minus," but where exactly does it come from?
I understand that there is a programming language called "...
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 ...
3
votes
1
answer
6k
views
Is it possible to call a Javascript function from C?
I'd like to find a way to call Javascript functions from C. Are there any language bindings available for this purpose? I'm trying to make a library of Javascript functions accessible from C. (...
36
votes
8
answers
8k
views
How can I write a set of functions that can be invoked from (almost) any programming language?
I'd like to find a way to write an API that can be accessed from any other programming language via language bindings (or some other framework). Is it possible to do this? If so, which programming ...
1
vote
1
answer
8k
views
How are Implicit-Heap dynamic Storage Binding and Dynamic type binding similar?
"Concepts of Programming languages" by Robert Sebesta says -
Implicit Heap-Dynamic Storage Binding:
Implicit Heap-Dynamic variables are bound to heap storage only when they are assigned ...
3
votes
3
answers
398
views
How do I improve my ability to manipulate code quickly, not wpm?
I have seen several questions on here about touch typing and words per minute but not about improving ones ability to manipulate text using keyboard shortcuts, bindings etc.
I have tried putting a ...
4
votes
1
answer
7k
views
What's the difference between static and dynamic binding? [closed]
We are learning about methods in class, and I am having trouble especially with the concept of static vs. dynamic.
Wikipedia says this:
Methods can be bound to a class at compile time (static ...
2
votes
1
answer
599
views
Can I legally publish my Fortran 90 wrappers to Nvidias' CUFFT library (from the CUDA SDK)?
From a legal standpoint (licensing issues), can I legally, in agreement with the license, publish Fortran 90 wrappers (bindings) to the CUFFT library from Nvidia CUDA Toolkit, under some open source ...
0
votes
4
answers
885
views
About languages strongly typed with late binding, do they make sense?
I never learnt anything about VB6 (and I dont want to) but I wanted to search for bad things in computer software, so my first though was VB6.
So for example, VB6 was strongly typed with late binding....
11
votes
6
answers
710
views
Why binding is not a native feature in most of the languages?
IMHO binding a variable to another variable or an expression is a very common scenario in mathematics. In fact, in the beginning, many students think the assignment operator(=) is some kind of binding....