Re:Java's records, Lombok's data, and Kotlin's data classes
by bob1029 on Friday May 07, 2021 @01:26PM
(#27078432)
If C# didn't exist, we would certainly be a Java shop. Not only because of the ecosystem & tooling, but also because it is a language that has historically proven its ability to model incredibly complex business domains as well as support mission critical workloads without falling over on itself.
[ Parent
| on HN ]
Re:Java's records, Lombok's data, and Kotlin's data classes
by azth on Friday May 07, 2021 @01:37PM
(#27078555)
How's your experience with C#/.NET been? Does it have an analogous offering to Java's JFR[0] for always-on profiling?
[0] https://blogs.oracle.com/javamagazine/java-flight-recorder-a...
Re:Java's records, Lombok's data, and Kotlin's data classes
by bob1029 on Friday May 07, 2021 @02:35PM
(#27079245)
I am not familiar with the scope of JFR, but there have been some very recent movements around profiling in C#/.NET:
https://devblogs.microsoft.com/dotnet/introducing-dotnet-mon...
https://devblogs.microsoft.com/dotnet/whats-new-in-dotnet-mo...
My experience overall with the C# ecosystem has been fantastic. We started out on .NET Framework 4.x back in 2014-2015, and today are now talking about moving to .NET 6 and rewriting our native apps to use MAUI as November grows closer. A lot of the same code we had back in 2015 is still running today with zero modifications.
Re:Java's records, Lombok's data, and Kotlin's data classes
by bpicolo on Friday May 07, 2021 @02:12PM
(#27078921)
Seems like EventPipe is the C# equivalent? https://docs.microsoft.com/en-us/dotnet/core/diagnostics/eve...
Re:Java's records, Lombok's data, and Kotlin's data classes
by azth on Friday May 07, 2021 @02:17PM
(#27079001)
It seems somewhat similar, but I don't see mention of method traces (similar to a profile view in figure 7 in the blog post I listed).
Re:Java's records, Lombok's data, and Kotlin's data classes
by bpicolo on Friday May 07, 2021 @02:21PM
(#27079045)
There are tools built on top of it to that effect (eventpipe -> dotnet-trace -> tools built on top of trace)
https://www.hanselman.com/blog/dotnettrace-for-net-core-trac...
Re:Java's records, Lombok's data, and Kotlin's data classes
by switch007 on Friday May 07, 2021 @01:38PM
(#27078573)
“historically proven its ability to model incredibly complex business domains”
You surely can’t be talking about its type system?
Re:Java's records, Lombok's data, and Kotlin's data classes
by bob1029 on Friday May 07, 2021 @02:31PM
(#27079195)
I certainly prefer the type system of C# over Java, but the latest things I've seen come out of the Java camp give me confidence that I could port most of the same ideas across the way without too much friction if need be.