HNHacker News
TopNewBestAskShowJobs

scalatohaskell

164 karma · joined February 28, 2016

submissionscomments
scalatohaskell··on Ask HN: For those programming 10+ years, what do you wish you knew 4 years in?
one of most important:

- get a mentor. Some chilled senior guy with lots of experience. Speak to him regularly to fish for knowledge. But don't get hung up on everything s/he says. Programming is huge field with lots of parts.

others:

- there is no silver bullet

- simple is not easy (search Simple Made Easy by Rich Hickey)

- always be pragmatic

- there are indeed better approaches than OOP, which differ greatly in long run of project, and pay back (FP) later, and it matters

- avoid "the chase" of latest best-good thing, get productive in something that matures well

- don't ignore latest practices and latest progress just because of the above mentioned things. Keep learning and try to reapply new stuff (at least in your head) to range of problems you solved, and think if pro-s and con-s.

- avoid any heated discussions about languages

- keep your ego out of work

- the less you need to code, the better. You are paid to solve problems, not to churn code.

- finished is better than perfect. Don't gold plate your solution. On flip side, don't code shit and try to excuse it with above-mentioned sentence. Be pragmatic.

- types are your friends (and friends of your colleagues that have to work with your code), take time to learn how to leverage them

- unless you're working on life critical software, don't stress (even then don't, but...). If you feel pressure and stress, work on handling that. There is no point in being miserable because someone needs ability to put dog face onto a photo.

- you'll be programming for a lot more years to come. You may genuinely like and enjoy it throughout that period, or hate it. If you hate it, it doesn't mean you're not suited for programming, maybe you're not using language that suits you or allows you to express yourself clearly. Yes, people say languages don't matter. From your perspective as programmer, they do (they don't for business as long as it gets job done etc.).

- learn new language at least once per 1-2 years. No need to use it, just get familiar with it, it's design choices, it's public APIs, some internals. Language creators are generally very smart and you can learn from them a lot.

- Once you're a bit more senior learn from other (junior) devs. They're the ones usually chasing latest hot frameworks. They have time for that. Be appreciative about that, and take your time to listen to what they have to say, and what excites them, and how it relates to your experiences. It is also opportunity to grow.

- Try to contribute to open source projects. Not to build portfolio, github or whatever. But to give back some of the service. You'll be paid back by learning a lot.

scalatohaskell··on Startup Graveyard – History Shouldn't Have to Repeat Itself
It needs to be marginally better. Slighly is not good enough to gain momentum.
scalatohaskell··on The tragedy of 100% code coverage (2016)
You are correct. I was once inexperienced and was very dogmatic.
scalatohaskell··on The tragedy of 100% code coverage (2016)
This hits home with me. Incompetent developers need dogmatisms (100% unit coverage!!!! etc)
scalatohaskell··on Stop the Daily Standup Meeting
I think the resistance is not unjustified - mostly programmers are fed up with "these" things, since they always get misused against them (i.e. - estimations - you and me know how it works, that it's well, estimation - but in back there is manager who translates it in his excel to $$$ and time, and the second your 8point story is now day overdue you are being pushed to zones which only further damage the project down the road (costs which you will have to pay by overtimes, not the guy behind his excel). Does that mean estimation is bad? No. It's non-programmers who misuse it. Would team be better without estimation? Probably, since it wouldn't be misused by external elements, and we could just do our damn job).

Perhaps the original agile was meant correctly, but as of today most organisations just use it to justify and coat (perhaps) same things agile was to be against.

For me today Agile has so way too many faces. If it doesn't work, answer is always "you're not doing agile/scrum correctly). There are always reasons how you're not being agile enough, no matter how many times you fine-tune your "agile" on retrospectives, if there are managers and people misusing it against you, you could as well be better without it.

What an incomprehensive piece of text I wrote. Sorry. I'm not native English speaker.

If you're lucky non of this applies though, but you have to be lucky enough to work with lots of (prehaps we might say all) smart people across whole "chain of command".

scalatohaskell··on Stop the Daily Standup Meeting
Yes. And at that point, you will suggest, like an adult, to speak when it fits both time. I wonder how people who don't use Scrum solve this problem!

Here's little experiment. 10mins after standup is over, ask some people what did they learn in standup. I mean specifics. Noone will know or care or remember. Sure, people get broad picture, which they could just as well by looking onto jira or whatever.

scalatohaskell··on Stop the Daily Standup Meeting
It has some truth to it - any extreme (micromanaging with "agile" buzz) will generate opposite just as extreme pole
scalatohaskell··on Stop the Daily Standup Meeting
that's not how I meant it. Sure, plan it, however it suits you and the team. If planning poker works for you, great. But do you need to coat it under "Scrum", having special moderators such as Scrummaster and consultations every year how you are not doing scrum "enough". I don't advocate programming anarchy, but I don't like when managers treat programmers like some woodchoppers that they need to wrap fine grained process around, instead of having the team work the way it fits them best.
scalatohaskell··on Stop the Daily Standup Meeting
I agree with author... instead of doing "Scrum", how about we act like adults, and speak with people when we need to, in respect to their time, schedule accordingly, and not clown and parade around with scrum and poker cards.

http://programming-motherfucker.com/

scalatohaskell··on What programming languages are used late at night?
hey, thanks for response. Even though that example was just something I made up, your post helped me in learning.
scalatohaskell··on What programming languages are used late at night?
I think it's mostly that I need to write it so little, that I never get to become proficient "enough" with it. There is little motivation to invest hours to learn it properly, because a) I get to write bash scripts so little that b) I would forgot half by next time I use it.

I think I'm basically stuck on the worst part of learning curve. Btw I use console for pretty much everything from git shell to vim. But when I have to run-in-parallel/fork two processes, pipe X from some to third one that has to repeatedly do curls to some service and check http response, there are 10 things I need to google, starting from: -how to fork process, how to pipe process, how to IF in bash, how do LOOP in bash, etc. Worst thing is, I've googled this 10 times before, but never remember the syntax etc.

scalatohaskell··on Hard-won lessons: Five years with Node.js
> You can't develop in Java/Kotlin if you don't use those huge complicated tools.

This is based on what? It is totally untrue from my experience. Quite the opposite.

scalatohaskell··on What programming languages are used late at night?
This is very true, and it has happened to me. Luckily I dont write anything critical in bash, there are usually better suited people for that. I am just a big crybaby without compiler :(
scalatohaskell··on CodeStar – Quickly Develop, Build, and Deploy Applications on AWS
thats great link, thanks
scalatohaskell··on What programming languages are used late at night?
I have a big distaste for bash, and am happy to copy paste anything similar from stackoverflow. Shame on me though!
scalatohaskell··on What programming languages are used late at night?
Ubuntu. IntelliJ +Scala plugin. I write Scala 90% of the time. 99% of the time, before I call any function, I jump "navigate to source" in intelliJ, and have a quick glance on it. Most of the time, type ascription is enough, sometimes I skim through doc, and occasionally, if it's sketchy library, I look at implementation. This is very quick process that takes maybe 10-15seconds. Sometimes when Im not under pressure, while I'm at sources, I check also some similiar APIs, and implementation, to see and learn 'hows' and 'whys'. Using this I quickly gain pretty solid knowledge of libraries I use.

If I'm really stuck, I opened 3d party github, and scan issues, to see if there's something similiar. Lots of times there is issue or something, but I'll admit, lots of time there isn't. This is when I start googling, which sometimes take me to Stackoverflow. If not, I use gitter to ask authors. But this happen very rarely. Mostly all I need to do is dictated by library types I use. Occasionally, with shitty libraries that bring external configuration I have to check their docs on github.

But I think it may be language related. Or experience perhaps. I had to do a bit of javascript with node.js (2 weeks +-), and I visited SO very very very often.

Normally whenever I'm learning new language or framework, navigating to sources is my fasttrack to both language and framework/lib. There isn't a better way to learn what's right way to do stuff than to see authors of battle tested libraries solving difficult problems, and learning from their style. I can recommend that :)

I'll admit your mileage may vary, and this may be specific to my job, but I'm pretty happy with this workflow, and I don't have anything against people using SO or something.

Edit: I had forgotten important part - occasionally I spin REPL and try what library really does there. But that's also one of last resorts, when I'm stuck :) In Scala we have http://www.lihaoyi.com/Ammonite/ which makes it super easy to fetch and use external dependencies etc... so I guess tooling is also important part.

scalatohaskell··on What programming languages are used late at night?
I very rarely use stackoverflow as well. Last time was probably week ago when googling something bash related. AMA
scalatohaskell··on As New Zealand Courts Tech Talent, Isolation Becomes a Draw
> What made you leave? Missing friends and family, very hard to reach with 12hours difference even by phone. Requires lots of coordination.

Very isolated - very little "new" jobs, conferences(Scala) etc... all in respect to EU (where there are hundreds of scala positions etc.).

I was on very good salary (100kNZD++ dollars / year), life was very very comfortable. Besides huge purchases buying house or like that which I couldn't do I found it very hard to spend over half my salary (never cooking, eating twice a day out). I was living alone in AKL renting all the time.

Weather is very nice, but sun is very very strong, so you require sunscreen 100% of time.

> Did you miss european culture ( or sports on TV or anything like that)?

Yes. I'm not sure how to put it, as I'm not native English speaker, but I hope noone will get offended by following. Also this may wildly differ outside of AKL. There are lots of ethnicities, which is fine, but I am single and I am most attracted to single type, so the pool for me to find girlfriend from is much much smaller (I'd say about 20-30%). While people are very very friendly there, the nightlife in Auckland is pretty bad (was much better in Wellington when I flew there once).

> How did you deal with the time difference between Europe and NZ? When I was in NZ on vacation I missed being able to watch the stuff that I am used to on TV in the evening, due to the twelve hour time difference to Europe. I dont think I could ever switch from soccer to cricket.

I don't watch TV so I didn't miss it, and they occasionally had NHL live games on, which is great, since I couldn't watch it in EU since lots of them were at crazy times. They are huge for cricket and rugby, which I given some try but I did not enjoy it as much.

All in all, I do not regret going there and it's awesome country, but my take on it is, if you have a family, it's the ideal place to move into. Schools are great, it's very safe country, people are mostly happy, and salary of programmer's is very very decent. If you're single, and move there on your own, you're gonna have it a bit tougher, but lots of that depends on you.

scalatohaskell··on As New Zealand Courts Tech Talent, Isolation Becomes a Draw
I have, from EU. I've been living in Auckland for 2 years. Scala dev. I left recently though. I think I may have good perspective, shoot me questions if you want.
scalatohaskell··on TypeScript at Slack
> There were open source MVC projects but since MS only blessed ASP.NET forms back then, you couldn't convince managers to use MVC. Same with IoC. Same with ORMs

but that's not really Microsoft's fault

scalatohaskell··on Cayley – An open-source graph database
Whats the difference between Cayley and lets say OrientDb / ArangoDb ?
scalatohaskell··on Google App Maker
That's what's been promised for last 30 years :)
scalatohaskell··on Ask HN: What are the best resources to properly learn Scala?
Hi. Sorry I don't have a good answer for you, but check sbt docs, it's pretty comprehenful, but it's not best.

Your best bet is to visit opensource projects and look into their build.sbt's, how they do things -they're usually not big enterprise projects and you can quickly 'get' how they setup what.

Always feel free to visir /r/scala and ask sbt-related question there, there is active community happy to answer both sbt/scala/fp related questions.

scalatohaskell··on Ask HN: What are the best resources to properly learn Scala?
I know of clojure typed. But im worried it needs to be first class. I.e i need all my dependencies to be typed, as that is my api and it usually covers large surface.

Id also be careful with your 2nd statement. Scala has macros.

Im happy clojure is on the block, dont get me wrong :) each to their own. Type system is incredibly important to me and my productivity.

scalatohaskell··on Ask HN: What are the best resources to properly learn Scala?
I mastered kotlin to dev some mobile apps. Having years of C# behind me, it does not impress me much.

Clojure only for fun, I need types. But lisps sounds fun. Can't comment more. Prehaps you're right ;)

scalatohaskell··on Ask HN: What are the best resources to properly learn Scala?
Depends on your level. Scala is extremely powerful, and so can be you. Just pick progressively more and more advanced books, and you'll be there in no time. Compiler's always got your back. Seriosly, I've been on search for good language for last 8-10years, always been unhappy. 2 years ago I started working with scala, and never looked back. I am happy with it and I can see myself doing it for as long as it's around and there is competetive market.
scalatohaskell··on Ask HN: What do you use to align your daily todos with your long term goals?
Hi. Thanks for tip, I just registered. Care to elaborate what you mean by embedded domain ideas? Sorry Im not native speaker.
scalatohaskell··on The myth of using Scala as a better Java
Ive used Scala as both "better java" and as "worse-haskell" in two different teams. Both times it was much more pleasant than doing Java.
scalatohaskell··on Ask HN: Best windows laptop (replacement for macbook)
Sorry to hijack, but when I don't really need GFX as I only want it for programming (Ubuntu preferred over windows)?
scalatohaskell··on Making the move from Scala to Go
just cyclic dependencies between project's generated source codes of exposed interfaces/contracts. ez.

It's not hard to fuck up ur sw eng. practices and blame language.

← PreviousPage 2 of 3Next →