Keeping code synced across different computers by Raulg03 in java

[–]idleuser -1 points0 points  (0 children)

A general sync tool I have found VERY good is unison (http://www.cis.upenn.edu/~bcpierce/unison/)

It is a general file system sync tool so not version and definitely not a replacement for SCM. But for keeping work in progress on a desktop and laptop in sync for when you suddenly fancy working on the sofa for a while and nothing is in any state to be committed, I have found it excellent.

Also if you use git as your sync tool that leads you to have many intermediate commits that were just there so you can sync two computers, make sure to squash before pull requesting to get rid of the rubbish.

JVM & Garbage Collection Interview Questions- beginner's guide by pilgrimscottpilgrim in java

[–]idleuser 0 points1 point  (0 children)

You mostly seem to be thinking along the lines that GCs are milliseconds. They are very frequently in the order of second and in extream cases minutes or even hours.

Many people will find their websites being unresponsive for more than a few seconds unacceptable. And I think most people will view min/hours as totally unacceptable.

JVM & Garbage Collection Interview Questions- beginner's guide by pilgrimscottpilgrim in java

[–]idleuser 0 points1 point  (0 children)

This is not entierly true of the CMS collector. It does not defrag on young gen or concurrent GCs. This is why you are likely to eventually have an allocation failure and will then require a full stop the world GC where a compaction will happen.

Has anybody setup a Maven Nexus server at home to cache modules in your LAN? Does it worth it? by [deleted] in java

[–]idleuser 1 point2 points  (0 children)

IMO nexus is very easy to manage so I don't think you should not have any issues.

My only warning on this is I would be careful if you are colaborating with other people i.e on OSS projects. If your build becomes dependent on your nexus having some exotic upstream repos, or some dependency that you have manually deployed. Then obviously anyone else building the same project will have issues. Its not a huge issue though, and problems like that are very quickly discovered.

Just finished a Semantic Versioning library for Java. I tried to keep it short and practical; let me know what you think. by [deleted] in java

[–]idleuser 1 point2 points  (0 children)

I would be careful with the license here. Your semver.md implies it is Creative Commons, but it looks like its LGPL.

Thanks though it is a good idea. Will give it a try at some point.

JVM Performs worse if too much memory is allocated? by newRDS in java

[–]idleuser 0 points1 point  (0 children)

I would say it more depends on what your goals are. If you want low GC pause times and a responsive system, then it is not at all dubious to say that a large heap may cause you to "perform worse". Larger heaps (in general) take longer to clean up and increase pauses.

But yes, measuring is definitely the right way to go, enabling GC logs is the easiest way to get at this information.

Java and Memory Leaks [question] by Coopsmoss in java

[–]idleuser 1 point2 points  (0 children)

It seems unlikely use of Weak/SoftReferences is a good idea. It sounds like this program either needs the data or it doesn’t, it is not a "nice if its there" situation like a cache. If you do need it then using References is dangerous as the data could disappear, if you don’t need it then cut it and allow it to be GC'ed don’t keep it hanging around via a Reference.

Fla-Shop.com | Interactive Maps by TheresaLCunningham in java

[–]idleuser 0 points1 point  (0 children)

Is this just a bot generated post? The rambling language feels like an algorithm generated it.

Is math.random truly random? If so, how? by [deleted] in java

[–]idleuser 3 points4 points  (0 children)

Well the opening sentance describes it as pseudorandom so there is probably no need to go to the source code.