News for hackers. Stuff that matters.
Re:Tor in a safer language: Network team update from Amsterdam by TazeTSchnitzel on Saturday April 01, 2017 @04:38PM (#14014047)
So, Java?
Re:Tor in a safer language: Network team update from Amsterdam by IshKebab on Saturday April 01, 2017 @06:03PM (#14014423)
Kind of, but with more `strings.hasSuffix(...)` and less `new StringComparatorFactory(new StringSubsetComparison(), StringComparisonPositions.END_POSITION, ...`
Re:Tor in a safer language: Network team update from Amsterdam by Groxx on Saturday April 01, 2017 @06:51PM (#14014607)
Give it time, Go is still pretty new and requires reinventing all those wheels and flexibility-allowances. It's already visible in some areas though - e.g. look at the hoops you have to code through to allow decent unit testing of controller-style code. Anything of interest has to be exported and injected, or you simply can't do it. Even Java's significantly better here with its runtime manipulation.
Re:Tor in a safer language: Network team update from Amsterdam by pjmlp on Sunday April 02, 2017 @02:37AM (#14016156)
In Java it is string.endsWith(...), not much different.
Re:Tor in a safer language: Network team update from Amsterdam by IshKebab on Sunday April 02, 2017 @03:41PM (#14018643)
Ok bad example but you get the idea.
Re:Tor in a safer language: Network team update from Amsterdam by pjmlp on Saturday April 01, 2017 @04:55PM (#14014123)
No, Java has become too advanced for the typical Go developer.

Too many features.

Re:Tor in a safer language: Network team update from Amsterdam by geodel on Saturday April 01, 2017 @08:09PM (#14014914)
It is for me. Could not figure out advanced tools like Maven or gradle. Maybe it was beneath Java experts at Sun/Oracle develop simple cli tool that could compile a java project with one command.
Re:Tor in a safer language: Network team update from Amsterdam by pjmlp on Sunday April 02, 2017 @01:55AM (#14016012)
You mean just using javac -sourcepath is too hard?
Re:Tor in a safer language: Network team update from Amsterdam by Filligree on Saturday April 01, 2017 @08:42PM (#14015038)
'gradle build'

Unless the project is very badly configured, that should be all you need to compile it. Now, writing those .gradle files...

Re:Tor in a safer language: Network team update from Amsterdam by geodel on Saturday April 01, 2017 @09:01PM (#14015099)
Yea, advanced language like Java should have advanced build tools and build files. Go is simplistic so `go build|install|run` just works without IDEs, build files, and external build tools.
Re:Tor in a safer language: Network team update from Amsterdam by danieldk on Sunday April 02, 2017 @02:32AM (#14016135)
Well, yes, if you include the build tool in with your language implementation you do not need external build tools.

Compiling most Java projects is usually as simple as 'brew install maven; mvn package'. Maven does require a build file, but it can also do more than the go utility, such as deploying artifacts in a repository, build distributable tarballs, RPMs, debs, etc.

Maven, like go, largely relies on convention over configuration as well. If you generate a POM file from the standard archetype, you basically drop your files in the right source directory and it will build.

(I am not a fan of Java, but I think a lot of the criticism here is lazy. The first time you use the 'go' tool you have to learn its usage as well: how to separate library code from programs, what are the conventions for package structure, how to avoid API breakage for downstream users, etc.)

Re:Tor in a safer language: Network team update from Amsterdam by vorg on Monday April 03, 2017 @03:34PM (#14026300)
> Now, writing those .gradle files...

Gradle build files have confusing syntax. Just knowing which lines have an equals sign and which don't is a bit of work.