Questions tagged [language-features]

A language feature is a distinct aspect of a programming language, such as binding rules, lexical design, or facets of the type system.

618 questions
0
votes
3 answers

Reverse DOM node order with Javascript

I'm curious if there is an easy way to make this transition with JavaScript.
TEXT
To this:
TEXT
Now I know that this is possible in longer ways, like…
David
  • 4,744
  • 5
  • 33
  • 64
0
votes
2 answers

Interface member name conflicts in ActionScript 3

I am trying to create an ActionScript 3 class that implements two interfaces. The interfaces contain member functions with different signatures but the same name: public interface IFoo { function doStuff(input:int):void; } public interface…
Aaron
  • 2,013
  • 16
  • 22
0
votes
2 answers

Static methods added in interfaces in java 1.8

As we know that in java 1.8 static methods are allowed in interfaces , I have seen some answers like static methods defined in interface from jdk 1 8 why did they need to do so but I am not satisfied. Furthermore I think it may cause problems like…
0
votes
1 answer

What particular practices, designs, languages/features enable very easy to maintain code?

What particular practices, designs, languages/features enable very easy to maintain code?
Igorio
  • 918
  • 1
  • 7
  • 17
0
votes
3 answers

What Java syntax elements would not directly translate to an equivalent Ruby syntax?

I asked a question a few days ago about representing public static final and private static final fields in equivalent Ruby code. It got me thinking about what other syntax elements in Java might not translate directly to Ruby. Generics and…
Hosh
  • 225
  • 1
  • 2
  • 7
0
votes
1 answer

Does ORACLE have any construct like Sql Server's schema?

I am generally a Sql Server coder, but we have a client who wants to move a system from Sql to ORACLE due to the new licensing model of Sql Server. I know historically, ORACLE has no logical grouping of objects within a db/schema, along the lines…
eidylon
  • 7,068
  • 20
  • 75
  • 118
0
votes
2 answers

Explain this list comprehension oddity in the general case and what are it's use cases?

Yep. This happend. When I absent mindedly put an index on a in variable. Explain (it?) away. What is happening in the general case and what are it's use cases? >>> [q for q[0] in [range(10),range(10,-1,-1)]] Traceback (most recent call last): …
freegnu
  • 793
  • 7
  • 11
0
votes
2 answers

Java Inheritance & OOP & AOP

This is actually a semi-question, semi-discussion thread. I think a feature is needed in Java that a method(lets say "calcTotalX") can be defined via annotation in a class(i.e. ParallelExecuter) which will executed beforeStart/AfterEnd of another…
bahadir_g
  • 215
  • 2
  • 16
0
votes
2 answers

How does one define and describe these different points in time?

Background: Eldridge asked me to explain what the difference is between the difference phases of time when it comes to writing and deploying code. He wants to know: 1) what is the difference between: 1) design time; 2) compile time; 3)…
dreftymac
  • 31,404
  • 26
  • 119
  • 182
0
votes
1 answer

What does numeric values mean?

I am using NaiveBayes classifier of Weka. There's something that I have heard and I'm not sure if it's true. Somebody told me that when I have numeric values in weka, the higher value has a higher weight. Is that right? I mean if the value of…
user1419243
  • 1,655
  • 3
  • 19
  • 33
0
votes
1 answer

Resizing Arrays for Speed

So, I am writing a Befunge Interpreter in Java. I have almost all of it down, except I can't figure out a good solution to the problem of Funge Space. Currently I'm using the style stated in the Befunge 93 specs, which is a 80x25 array to hold the…
Kyranstar
  • 1,650
  • 2
  • 14
  • 35
0
votes
1 answer

Why can constexpr not apply to constructors?

Why can constexpr not apply to constructors? The following code cannot be compiled with VC++ 2013 CTP. struct A { constexpr A() : _n(5) {} int _n; }; constexpr A f() { return A(); } int main() { auto a = f(); } error…
xmllmx
  • 39,765
  • 26
  • 162
  • 323
0
votes
1 answer

Providing primitive casts in ActionScript 3

In languages like Java, C++ and etc there is the ability to provide, for example, a toInt() function to allow your code to be converted neatly by language features into a given primitive type. (In this example, an Int.) That is, if you had…
That Guy
  • 103
  • 1
  • 8
0
votes
3 answers

PHP Language System with no user registration

i want to make my site available in several languages, but im not going to use user registration so how can i make a language system? searched for a cookie language system tutorial but didnt found anything if you have any other suggestion please…
Pizza Overflow
  • 277
  • 1
  • 3
  • 11
0
votes
6 answers

Does there exist a shorter if statement in PHP?

Is it possible to rewrite this to be shorter somehow? if (isset($_POST['pic_action'])){ $pic_action=$_POST['pic_action']; } else { $pic_action=0; } I have seen it somewhere but forgot... :/ BTW, please explain your code also if you…
user188962