Questions tagged [future-proof]

35 questions
67
votes
6 answers

What is the purpose of subclassing the class "object" in Python?

All the Python built-ins are subclasses of object and I come across many user-defined classes which are too. Why? What is the purpose of the class object? It's just an empty class, right?
ignoramus
59
votes
2 answers

How should I write my C++ to be prepared for C++ modules?

There are already two compilers that support C++ modules: Clang: http://clang.llvm.org/docs/Modules.html MS VS 2015: http://blogs.msdn.com/b/vcblog/archive/2015/12/03/c-modules-in-vs-2015-update-1.aspx When starting a new project now, what should…
user7610
  • 25,267
  • 15
  • 124
  • 150
37
votes
2 answers

boost::lock_guard vs boost::mutex::scoped_lock

Which is preferred boost::lock_guard or boost::mutex::scoped_lock? I'm using Boost.Thread with the hope to move to C++11 threading when it becomes available. Is scoped_lock part of the next c++ standard? Are the any advantages to prefer one over…
deft_code
  • 57,255
  • 29
  • 141
  • 224
26
votes
4 answers

(unicode error) 'unicodeescape' codec can't decode bytes - string with '\u'

Writing my code for Python 2.6, but with Python 3 in mind, I thought it was a good idea to put from __future__ import unicode_literals at the top of some modules. In other words, I am asking for troubles (to avoid them in the future), but I might…
Remi
  • 20,619
  • 8
  • 57
  • 41
16
votes
4 answers

Design tips for a program to be run in 25 years

If creating an application (that does mostly data processing) that needs to be run now and maybe (maybe not) 10 or 25 years later, what design tips are out there for such applications? The general rules apply: rely on open source software and proven…
Martin Paljak
  • 4,119
  • 18
  • 20
8
votes
1 answer

Is Angularjs future-proof?

Angularjs is a very nice and powerfull framework, but is it future-proof? Can we be sure that it will be a good choice for web applications in an enterprise context for up to 5-10 years? edit: yes, almost no technology will last that long. But…
6
votes
0 answers

Easing the pain of transition to Rails 4

I am working on a Rails 3.2 application now, but I am aware that Rails 4 is just around the corner. What are the things I should be aware of now when implementing my application to make it easier to migrate to Rails 4 when it is formally released or…
mccannf
  • 16,619
  • 3
  • 51
  • 63
6
votes
1 answer

How do I ensure R / Rcpp code is reproducible ("distributable")?

I've written some R code for a dissertation, relying on some external packages (e.g., plyr and reshape) and writing a couple relatively simple inline C++ functions using inline and RcppArmadillo. I would like to ensure it can be performed "as is" on…
MatteoS
  • 745
  • 2
  • 6
  • 17
5
votes
3 answers

Extension Methods forward compatible

With extension methods we can easily add methods to any type. Obviously this opens the possibility in a future version of .net the extension method could no longer get called (for example the type now includes a method with identical signature to…
George Duckett
  • 31,770
  • 9
  • 95
  • 162
5
votes
11 answers

Are functional languages and programming models like MVC just the next big fad?

Of late, I've been hearing many good things about functional programming languages such as F#. Additionally [and unrelated], I'm also noticing MVC is starting to get a lot of exposure - perhaps since the introduction of Silverlight/WPF. I've never…
BobTheBuilder
  • 2,455
  • 2
  • 27
  • 39
5
votes
4 answers

Perl Script Portability and Future Proofing

Due to pressure from outside our group, we have to port over one hundred Perl scripts from Sparc to x86. This means changing dozens of shebang lines from #!/home/Perl/bin/perl -w to something else, which is a real pain. What is good way to do this…
Ariel Bold
  • 245
  • 2
  • 8
4
votes
6 answers

What are some options for future proofing your application?

I am looking at minimizing the future impact on a yet to be written application. I am trying to avoid any 3rd party products, and even avoid operating system specific calls. Can anybody suggest other ways of future proofing the application. The idea…
esac
  • 24,099
  • 38
  • 122
  • 179
3
votes
1 answer

How can I future-proof the `round` function in Python2?

When round is imported from the future, it does not behave the same as the Python3 round function. Specifically, it does not support negative digit rounding. In Python3: >>> round(4781, -2) 4800 In Python2: >>> from builtins import round >>>…
Lee Hachadoorian
  • 364
  • 2
  • 15
3
votes
1 answer

How future-safe is it to write a parser with Boost Spirit X3?

I'm considering writing what is essentially my first parser since forever (= since the compiler class at Uni which I've forgotten mostly). Since I use C++, I was thinking of using Boost Spirit. Then I noticed there's the "regular" 2.5.2 and there's…
einpoklum
  • 118,144
  • 57
  • 340
  • 684
3
votes
3 answers

How do content addressable storage systems deal with possible hash collisions?

Content addressable storage systems use the hash of the stored data as the identifier and the address. Collisions are incredibly rare, but if the system is used a lot for a long time, it might happen. What happens if there are two pieces of data…
user7610
  • 25,267
  • 15
  • 124
  • 150
1
2 3