Questions tagged [flexibility]
38 questions
3
votes
1 answer
Customizable Web Applications
At my company we develop prefabricated web applications. While our applications work as-is in many cases, often we receive complex customization requests. We are having a problem in trying to perform this in a structured way. Generic functionality…

Dan
- 11,077
- 20
- 84
- 119
2
votes
1 answer
How to code polymorphic functions under Haskell 98
As a training exercise, I have written a polymorphic function to determine whether a given number is prime to either a single number or all of a list of numbers:
{-# LANGUAGE FlexibleInstances #-}
class PrimeTo a where
ispt :: Integer -> a ->…

Brent.Longborough
- 9,567
- 10
- 42
- 62
2
votes
4 answers
How does flexibility affect a language's syntax?
I am currently working on writing my own language(shameless plug), which is centered around flexibility. I am trying to make almost any part of the language syntax exchangeable through things like extensions/plugins. While writing the whole thing,…

Fishy
- 1,275
- 1
- 12
- 26
2
votes
3 answers
Time how to store it
Ok, i'm a bit confused. I am working on a project that have to store some time() in the database. It seems to me that for better flexibility i should store it as timestamp so that i could make operation between 2 times and other cool stuff.
But i…

Shoe
- 74,840
- 36
- 166
- 272
2
votes
2 answers
Is there a programming language which allows the redefinition of numbers?
My first stab at this problem was in C
#define 2 5
assert(2+2 == 10);
Unfortunately
error: macro name must be an identifier
I also tried Scheme
(define 2 5)
but
can't define a non-symbol: (define 2 5)
I was wondering if there are any programming…

2pjwul
- 21
- 1
2
votes
1 answer
automate adding flexibility declaration with gulp
I want to add flexibility polyfill in my build to support ie8 & 9. Is there a way with gulp to add in the -js-display: flex; before display: flex; as required?
.container {
-js-display: flex;
display:…

user1937021
- 10,151
- 22
- 81
- 143
2
votes
1 answer
How to make a div block with margins be flexible without going behind browser window
I'm trying to make the following div flexible
div {
min-width: 500px;
max-width: 1000px;
width:100%;
height: 400px;
margin-left:100px
}
If I remove the margin left everything works fine, but with the margin, when I start resizing the browser…

Core_dumped
- 1,571
- 4
- 16
- 34
2
votes
3 answers
Guidelines for writing flexible software?
I've been developing an interpreter in C++ for my (esoteric, if you want) programming language some time now. One of the main things that I have noticed: I start with a flexible concept, and the further I code (Tokenizer->Parser->Interpreter) the…

Streamline
- 23
- 2
1
vote
0 answers
velocity - which artitecture for flexibility?
I'm building web applications using Spring (scaffolded with ROO) and Velocity for the template engine.
Those applications are very similar in their flow, most of the time the logic doesn't change very much, so I can use the same controllers across…

mexique1
- 1,682
- 11
- 18
1
vote
1 answer
Referrals DB schema
I'm coding a new {monthly|yearly} paid site with the now typical "referral" system: when a new user signs up, they can specify the {username|referral code} of other user (this can be detected automatically if they came through a special URL), which…

Seb
- 24,920
- 5
- 67
- 85
1
vote
1 answer
Call nls from within a function in R, passing a user-specified function with any number of arguments
I have a function that uses stats::nls() internally to get parameter estimates for a non-linear model. However, the number of parameters I need the function to estimate is variable and determined by the users. How can I do this? This function is…

morrowcj
- 169
- 6
1
vote
0 answers
Inserting abstract Blazor component, open-closed principle
I had no idea how to phrase a good title here.
I'm basically trying to use the open-closed principle, so I don't need to specify precisely which component to render, but just use an interface/abstract class instead.
I'm making a node editor.
I have…

Troels
- 201
- 2
- 8
1
vote
1 answer
Memory layout for mesh data in scientific computing
I am developing a Finite Element System. As usual, the simulation consists of set of mesh nodes, each with a set of properties (floating-points), like for example several material properties, coordinates or physical quantities that evolve within…

shuhalo
- 5,732
- 12
- 43
- 60
1
vote
2 answers
Dynamic user control over variables (embedded language?)
I'm creating a piece of software (written in C#, will be a windows application) and I ran into this problem-
I've got a set of variables, and I need to allow the user to define a wide range of mathematical functions on those variables.
But my users…

Malki
- 2,335
- 8
- 31
- 61
1
vote
1 answer
JSTL foreach loop specifying items, begin and end tags with variable for flexibility
Why is it when I try to specify value for begin and end tags with variable for flexibility purposes, they always result to 0 (which is 1st index and thus outputs only 1 entry). [See code below]
<%
int maxEntry = 10;
int pageNumber =…

mag
- 11
- 3