Questions tagged [flexibility]

33 questions
3
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
  • 8,787
  • 10
  • 38
  • 60
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
  • 10,523
  • 17
  • 77
  • 117
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,209
  • 1
  • 11
  • 25
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
  • 70,092
  • 30
  • 150
  • 251
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
  • 8,155
  • 20
  • 68
  • 129
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,481
  • 2
  • 13
  • 32
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,612
  • 10
  • 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,063
  • 5
  • 57
  • 82
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…
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
  • 4,851
  • 6
  • 37
  • 53
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,175
  • 6
  • 27
  • 57
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
  • 2
1
vote
1 answer

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
  • 11
  • 1
1
vote
3 answers

Wrong position for col-md-4 in flexible layout with bootstrap

Having some difficulties in resolving this issue (see screenshot). Basically, the fact that the first cell in the second line has a bigger height the 7th cell does not place properly ... Any workarounds? Is there something I am doing wrong? Code…
gotye
  • 939
  • 2
  • 14
  • 33
1
2 3