TE
TechEcho
Home24h TopNewestBestAskShowJobs
GitHubTwitter
Home

TechEcho

A tech news platform built with Next.js, providing global tech news and discussions.

GitHubTwitter

Home

HomeNewestBestAskShowJobs

Resources

HackerNews APIOriginal HackerNewsNext.js

© 2025 TechEcho. All rights reserved.

Data-driven Scala Programming

98 pointsby francescogiorover 7 years ago

6 comments

rubenfiszelover 7 years ago
I don&#x27;t mean to sound rough but do you really need to analyze compilation logs to arrive to the conclusion that you should use an IDE and that types are helpful ?<p>There is also no real hint into why getting this error: &quot;Too many arguments for method parameters&quot; is inherently bad. I assume that it is not informative enough and that you&#x27;d prefer getting a type error instead ? In that case it is not the <i>quantity</i> of error but the <i>quality</i> of error that is an issue.
评论 #15144065 未加载
评论 #15146853 未加载
评论 #15162130 未加载
评论 #15147619 未加载
namuolover 7 years ago
&gt; That makes sense even if you never experienced how horrible writing JavaScript code is<p>Please don&#x27;t do this sort of thing; all it will do is cause people to dig their heels in and fuel the idea that FP is too &quot;dogmatic&quot; or such.<p>I know you&#x27;re joking, but I hear this refrain far too often while reading &quot;persuasive&quot; FP articles. This sort of jest just comes off as smug when it&#x27;s not clear that you&#x27;re &quot;in the trenches&quot; with JS (or other non-FP coders).
critiumover 7 years ago
Im curious as to how he&#x27;s using vim + ensime. I&#x27;ve been trying off and on for the last 2 years to figure out a good workflow using ensime but i typically end up just turning it off after a few days. EnType only works for me when its completely obvious. EnImport seems kind of useless. After these 2, i just give up, tbh.<p>Still, I wont give up my text editor :) Any emacs folk like to comment on its usefulness? Its seems more fully implemented there.
评论 #15146299 未加载
bobbyi_settvover 7 years ago
Seeing type errors logged is only &quot;good&quot; if they are catching actual bugs. A large amount of Scala type errors aren&#x27;t bugs I would have had in Python; they&#x27;re hoops I wouldn&#x27;t have needed to jump through like worrying about whether a parameter should be a &quot;Long&quot; or an &quot;Int&quot;.
评论 #15146197 未加载
msangiover 7 years ago
This is a neat idea.<p>I wonder if this can be extended to analyse unit test failures.<p>I&#x27;d guess one can get some interesting information from what tests fail more often. I&#x27;m thinking of being able to spot bad tests because they&#x27;re too brittle or spotting bad code because it&#x27;s too fragile.
javabean22over 7 years ago
Stopped reading right here:<p>&gt; The second error, “Type mismatch”, appeared 1771 times in the logs. That’s good news. It means the type system is working well: it catches type errors pretty often. Cool! I can finally honestly claim that I use Scala for a good practical reason.<p>That’s good news? Why? How? &quot;Pretty often&quot;? Comparing to what? Maybe it is, maybe it isn&#x27;t. I don&#x27;t know. 1771. Ok then.
评论 #15162302 未加载
评论 #15146543 未加载