733 reputation
412
bio website assylias.wordpress.com
location London, United Kingdom
age 36
visits member for 2 years, 4 months
seen Jun 18 at 15:38

My work combines risk management, statistics and programming.

  • I am the author of jBloomberg, a high level wrapper around the Bloomberg Desktop Java API wrapper
  • my blog is the result of the combination of those passions.

Jan
30
comment Why are the Java 8 java.time classes missing a getMillis() method?
@AllonGuralnek Yes definitely - however the milliseconds component was important in the Date API because everything was based on a number of millis since the epoch. In the new API it is less relevant IMO. In most use cases, you either need a second precision or the best precision available (nanos). I may be wrong.
Jan
28
comment Why are the Java 8 java.time classes missing a getMillis() method?
"they can't possibly exist there because LocalDateTime is not tied to the UTC timeline" => a LocalDateTime could certainly have a getMillis method that would basically return getNanos()/1e6 - the fact that it is not an instant in time does not prevent it from having a millisecond component.
Jan
25
revised Why are the Java 8 java.time classes missing a getMillis() method?
deleted 10 characters in body
Jan
25
answered Why are the Java 8 java.time classes missing a getMillis() method?
Jan
25
comment Why are the Java 8 java.time classes missing a getMillis() method?
@RobertHarvey Most classes in the java.time package are immutable and can't be extended.
Jan
23
answered When using the Apache license, is there still a need for a Contributor License Agreement (CLA)?
Dec
12
revised Why did Java make package access default?
added 41 characters in body
Dec
2
answered Why did Java make package access default?
Dec
2
comment Why did Java make package access default?
stackoverflow.com/questions/6470556/…
Oct
16
comment Storing a value vs calling reference for repeated use in Java
@FaultyJuggler that toString() could be as simple as return someString; or it could be as terrible as String result = ""; for (String t: someHugeList) result += t;... Hence my answer: whether performance will be different or not depends. But using temporary local variables won't hurt performance - so if it is more readable too it is a no brainer.
Oct
15
answered Storing a value vs calling reference for repeated use in Java
Oct
15
comment Storing a value vs calling reference for repeated use in Java
This is misleading... Methods calls are not necessarily expensive in Java.
Oct
11
comment Understanding the difference between mutable and immutable classes
The main reason to use immutable objects is thread safety - potential performance hits due to extra object allocations can be more than offset by the fact that you don't need to synchronise your code any longer...
Sep
23
answered Is Dependency Injection worth it outside of UnitTesting
Sep
5
awarded  Scholar
Sep
5
accepted Where should I place my interface?
Sep
4
awarded  Student
Sep
4
comment Where should I place my interface?
So a sort of company-toolbox project that contains the pieces that are typially reused. Not a bad idea.
Sep
4
asked Where should I place my interface?
Aug
18
comment Is “pass by value” synonymous with “functional programming”
Java is pass by value...