News for hackers. Stuff that matters.
Re:The Rise of Microsoft Visual Studio Code by Nimitz14 on Thursday December 06, 2018 @05:36PM (#18623121)
> I would probably choose Go for core infra for being able to move quickly as a developer

At the company I used to work at it took nearly a 1000 lines to replace an 80 line bash script. So I can't help but laugh at this statement.

Re:The Rise of Microsoft Visual Studio Code by barbecue_sauce on Thursday December 06, 2018 @06:05PM (#18623374)
I've helped port some bash-based CLI tools to Go. The amount of code produced was pretty similar, just some overhead for typing and adapting some of the `awk` and `sed` functionality to be self-contained in the program. What kind of stuff was this 80 line bash script doing that resulted in over 12.5 times more code?
Re:The Rise of Microsoft Visual Studio Code by feketegy on Thursday December 06, 2018 @05:51PM (#18623243)
Since when LoC is a meaningful metric?
Re:The Rise of Microsoft Visual Studio Code by dogma1138 on Thursday December 06, 2018 @06:45PM (#18623689)
Since always but it depends on what you actually take into account.

More LOC means more opportunities for error, and more resources needed to review that code and more time required for a new developer to get familiar with the code base.

That said if you have 85 LOC vs 1000 it usually means that the 85 LOC “app” used a metric ton of external dependencies which are on their own a good source for problems.

When comparing apples to apples (as in both apps use dependencies equally) I don’t see how such delta can be caused by using a different language, even using assembly would likely not cause this much inflation.

Re:The Rise of Microsoft Visual Studio Code by feketegy on Friday December 07, 2018 @04:34AM (#18626253)
I LOLed on this one :) I can literally double LOC in any project, just by putting { } on separate lines
Re:The Rise of Microsoft Visual Studio Code by dogma1138 on Friday December 07, 2018 @05:31AM (#18626487)
If you LOLed at this one you likly don’t understsnd how LOC are counted.
Re:The Rise of Microsoft Visual Studio Code by TheOtherHobbes on Friday December 07, 2018 @03:35AM (#18626008)
How well did the bash script handle exceptions?
Re:The Rise of Microsoft Visual Studio Code by vrazj on Thursday December 06, 2018 @05:52PM (#18623247)
I can replace those 1000 lines with a bash script of 1 line that just calls the Go program ^_^