Fork me on GitHub
#other-languages
<
2016-05-12
>
borkdude17:05:15

I'm probably more or less forced to leave my current job (which involves Scala) due to highway air pollution.

borkdude17:05:28

Whatever happens after this job, I'm going back to Clojure.

tjg17:05:57

Hope you'll find one soon!

seancorfield17:05:52

I keep getting recruiters approaching me about senior Java positions… Good to know there are plenty of jobs in that space I guess, but I couldn’t go back to Java...

seancorfield17:05:21

…besides, I last did hardcore Java about a decade ago! I went to Groovy, then Scala, then Clojure.

seancorfield17:05:47

I could go back to Scala if someone "forced" me, but I’d rather stay with Clojure.

borkdude17:05:57

I chose this job not because of Scala, but because of the team, products and proximity from my home

borkdude17:05:19

But it was nice to experiment with it

arrdem18:05:08

I need to take the time and chug through haskellbook. I watched an ekemmet talk on typeclasses which was awesome. Really been chafing in my hobby work of late at how few tools Clojure gives me to build and reason about record structures. I understand the appeal of the "bag of k/vs" approach, but it makes exploring a new domain that much harder because you can't build up constraints.

borkdude18:05:31

Well, Haskell will be one of my hobby languages once I'm back to Clojure

borkdude18:05:50

I already started in Haskell book in January or so

sveri19:05:30

I know Java is not Haskell and I never gave myself the time (like 5 years to explore it), but when I see how much pain we have with a REST API in our Java backend and how to enhance it, and only because of the classes / inheritance structure I really doubt that types do so much good, at least in this area. Sure, you can awesome stuff with a type system and sometimes I enjoy it, but then again, it so often hurts me and brings no benefit at all.

borkdude19:05:56

@sveri: I was just thinking of an example from work. We needed to import some files into an H2 database. The amount of type safe code that was written (with Slick) could be done in less code in Clojure and would probably read much clearer.

borkdude19:05:40

The only thing with that type of code is you get type conversions more or less for free I guess

borkdude19:05:08

Well not really, come to think of it. I needed to write some conversions myself

sveri19:05:11

@borkdude: Yea, I get more and more a feeling that there is a difference between 1. DTOs or whatever you want to call them, namely objects that just hold data and that you have to type and inherit and compose and 2. Some business logic where you can declare additional constraints with types For number two they may make sense, but for 1. its just PITA.

sveri19:05:57

Pain In The Ass

borkdude20:05:25

Well in the development of that program, a lot of things went wrong at runtime despite the types. Restarting sbt/scala all the time takes you out of the flow

borkdude20:05:59

Clojure REPL definitely improves my productivity working on these kinds of apps with file in/out and a conversion in the middle which you can easily verify with some small functions from the REPL

borkdude20:05:16

For example: you cannot read from the types that an H2 database wasn't closed, etc

seancorfield20:05:52

@sveri: I agree that types in Java are horrible. There are better typed languages. Types don’t have to be painful.

borkdude20:05:01

I don't understand that a verbose language like Java is so popular

seancorfield20:05:13

Because it allows for fungible developers.

seancorfield20:05:27

Lots of ceremony and "standards" and hand-holding means you can use lower-skilled developers more safely. A lot of (enterprise) Java shops have armies of low-to-mid skill bodies churning out boilerplate code. It’s "safe" and mechanical as far as scaling development is concerned.

seancorfield20:05:02

(and, yes, I’m extremely cynical about how many (most?) companies use Java these days!)

borkdude20:05:50

Nothing prevented Guy Steele etc to invent something more like Kotlin back in the 90ies?

borkdude20:05:51

I mean, you have to be cynical being comfortable in Common Lisp and then inventing something like this?

sveri20:05:31

I guess Java took off because it was much easier and safer to work with than with C / C++ back in the times

sveri20:05:57

And they made a lot of advertisements with "Write once, run anywhere" which they fullfilled to a very large degree

sveri20:05:16

So all in all, back in the 90-ies, they did a lot of things better than existing languages

tjg20:05:00

Yeah, I think if people go back to the 1996 Java whitepaper, it says what Java (as a UI) is supposed to provide the companies which adopt it: > Primary characteristics of the Java programming language include a simple language that can be programmed without extensive programmer training while being attuned to current software practices. The fundamental concepts of Java technology are grasped quickly; programmers can be productive from the very beginning. http://www.oracle.com/technetwork/java/intro-141325.html#349

borkdude20:05:18

yes, maybe it was like what Go tries to do: offer a simple language (in terms of not too many features so you don't have a steep learning curve) that is safer than other languages in that area

borkdude20:05:50

ah, I typed this before seeing @tjg text 🙂

sveri20:05:16

And, GC compared to manual memory management is a huge time / bug saver

borkdude20:05:22

To be honest, I feel like I still don't get Java, despite the 'simplicity'

borkdude20:05:56

I mean I can program in it, but it goes against my principles.

borkdude20:05:06

For example I had to add some functionality to an existing app. It took me a while to overcome the barrier of: really, do I need to change all of this boilerplate?

sveri20:05:19

It's nice to have a place where I can rant about my work from time to time 🙂

arrdem20:05:51

@seancorfield: it's funny because I'd largely level the same criticism against go, especially with regards to the design decision of not incorporating a powerful or remotely modern type system.

arrdem20:05:03

My primary complaint against Java at this point is that the core APIs show their age.

arrdem20:05:19

Abstraction patterns have changed a lot, there are things that could be interfaces or have interfaces and don't, etc.

arrdem20:05:41

You can build something atop Java and the JVM which is less awful.... but you're constructing your own crazy land.

sveri20:05:33

The funny thing is, that, while Java is aging in a negative way, the JVM is aging in a positive way

seancorfield20:05:43

Java 1.0 / 1.1 was a small, simple language with a small, simple library. And it wasn’t the choice of "enterprise" back then.

seancorfield20:05:17

I switched from C++ to Java in ’97 primarily to work with a cleaner, simpler — but still powerful — language.

seancorfield20:05:28

I parted ways with Java around Java 5.

tjg20:05:33

Java pushed me into Lisp. I was like, “Why can’t I easily automate repetitive things in this programming language, from within the language? Am I weird, or isn’t that the point of programming?” (Common Lisp is all about that; invites you to modify your system.)

borkdude20:05:50

I always tried to avoid Java. It just didn't interest me.

borkdude20:05:31

But maybe that is like saying: I always avoided gardening, because I wasn't interested in this shovel.

borkdude20:05:11

(shovel, I meant shovel)

borkdude20:05:58

Common Lisp was the first language in my entire CS education that sparked joy (and it wasn't even in the program)

borkdude20:05:19

After I graduated I had to more or less choose between Java (J2EE, wtf did this mean) and C# .NET (net, is this a network programming language)?

borkdude20:05:58

Instead I chose a third way: work in a product company and deal with implementations for customers. About 50% tech, 50% social skills. It seemed more fun at the time.

sveri20:05:59

And was it?

borkdude20:05:40

Well, after 6 months I told them I wanted to do more tech. But in hindsight it was ok.

borkdude20:05:59

You were kind of restricted in what you could do, how much you could deviate from the standard product. But we all know that limitations ignite creativity right? 😉

sveri20:05:18

Hehe, I am working on a product for almost 5 years now

sveri20:05:25

Its super interesting to be part of a big international company that has customers like the spanish parliament, Cocal Cola, Apple, Google and see how we work with them, but slowly I am getting bored

borkdude20:05:53

I still find that when I'm on the phone with a customer and he/she is happy with what I made, I get the most satisfaction, direct feedback. It's what I liked most from my first job. Also what you get in lecturing for example.

sveri20:05:30

True, positive feedback is valuable

borkdude20:05:28

Yes, but also being able to help someone feels great.

sveri20:05:07

Yea, thats what I love about teaching people, but when, when I think about becoming a teacher I think of all the stories my mom tells me and instantly got, nope 😄

borkdude20:05:20

I was a lecturer for 3.5 years

borkdude20:05:29

I went there after I got a job at the national tax service, which was very dissatisfying.

sveri20:05:02

how old were your students?

borkdude20:05:26

About 10-14 years younger than me probably

sveri20:05:43

sounds good

sveri20:05:10

Like they would actually listen

borkdude20:05:29

Lecturing was a good experience. I would not do it full time again though.

borkdude20:05:08

I even taught Clojure there for two years in a row

borkdude20:05:36

It was a university of applied science. I liked it, because it was very applied in contrast to my own education which was theoretical and didn't prepare you for real life.

sveri20:05:01

Hehe, nothing can prepare you for the insanity of programming jobs

borkdude20:05:28

LOL, maybe not.

sveri21:05:21

My first job after university was like 9 months implementing features 8 hrs per day, no unit tests, hardly manual tests, just writing code all time long. In the end it was more than 100k lines of spagetthi PHP code mixed with some wanna be objects, because, hey, it was PHP 5

borkdude21:05:14

In my years at university programming was considered dirty work, not some fun activity. A lot of fellow students did PHP/MySQL on the side, but I never felt like doing that.

borkdude21:05:43

I always avoided PHP, like Java 😉

borkdude21:05:13

I have done some Perl

borkdude21:05:28

but Common Lisp, that is what got me programming for fun

borkdude21:05:21

I was taught Miranda at university, a predecessor of Haskell. Closed source, paid license, only ran on the unix boxes.

borkdude21:05:43

I wish they had taught Haskell, because then maybe I would have picked it up then and built some practical stuff with it.

borkdude21:05:37

I do think those early influences are important. The idea of FP never left me

borkdude21:05:51

FP is not given enough attention in CS education in my country.

sveri21:05:32

Well, for me it has been mixed, we actually had haskell for one semester, but, I totally did not understand anything, it was just way beyond my reach. I got deep into C at that time and later PHP and haskell, was like, not even a "programming language" for me.

sveri21:05:49

Today I wish I would have spent more time learning it, but, it was just not the right time for me

borkdude21:05:08

Haskell is one of those languages that I try to learn during vacations but never really get to a point where it's addicting like Clojure.

sveri21:05:04

The same for me, the tooling is so uninviting

borkdude21:05:06

well that, but also the 'get all the types/monads' etc. right before you see a single result...

borkdude21:05:58

that is the whole idea of a type checker, I know, but sometimes it helps me to see a wrong result instead of nothing

sveri21:05:12

Also, while doing PHP I learned a valuable lesson. I wrote some code generator that created DTOs for all the database stuff and wrote the business logic in objects too. Then our inhouse customers came and wanted one page where they could see all our customers (over 700) listed plus a lot of metrics like revenue, total buys, averages over year / month and some more stuff and it was painfully slow. It took more than a minute to render it all (while the database needed a few milliseconds). Well, rewrite all the stuff to use arrays and go down to a few seconds render time...yea

sveri21:05:24

Never trust the hype, instead, measure yourself

borkdude21:05:19

Well, that is very good advice. Trust your own experience.

borkdude21:05:01

Complexity sells better.

borkdude21:05:03

It's true for every domain. Look at the food supplement industry.

sveri21:05:57

How do you mean that exactly in regards to the food industry?

borkdude21:05:52

I mean people like to believe very complex things about food (like the need for exotic food supplements) instead of the idea that you can eat very simply and need not to worry about nutrients too much.

borkdude21:05:52

And they are willing to spend a lot of money on it.

sveri21:05:12

Yea...well, thats what I think too. Industry needs to sell something, so you cannot go and say, stop eating all that bullshit, just a bit of the good stuff is enough, because, you dont earn money like that

borkdude21:05:56

The trade of complexity, it works two ways: people who like to sell it and people who like to buy it.

sveri21:05:49

I am not sure if "like" is the right word

sveri21:05:46

My girlfriend is making a training as an alternative mediciner and while she is not into the hardcore stuff like homeopathy, still, a lot of what they learn is which food supplements they can tell the people to buy. So they get trained to "heal" like that, among other things.

borkdude21:05:10

I like the website http://nutritionfacts.org - it has a lot of good advice and also debunks a whole bunch of stuff, all citations are available for you to check

sveri21:05:46

Also there is a common belief that the pharma industry is just bad and tries to make as much money of the people as they can in whatever way they can. Which I share mostly. But then, they dont see that the alternative industry medicine is just doing the same

borkdude21:05:49

I think it's good that people look to alternatives for traditional medicine. A lot of medicines are oversold, while lifestyle changes are probably a better solution.

sveri21:05:57

thanks for the link

borkdude21:05:20

I do use several medicines myself btw, so I'm not against pharma at all

borkdude21:05:42

but you can do a lot by looking beyond controlling symptoms

sveri21:05:30

Thats true, but I feel, that there is so much belief in all of it and so few knowledge

sveri21:05:54

Funny, I am similar, moving between 85 and 93 kg by 178. I am addicted to sugar, as soon as I leave that out I get less, as soon as I consume it again, I get more

borkdude21:05:15

The problem is not only sugar.

borkdude21:05:42

By removing sugar from the diet, you remove a lot more crap that is in junk food like oils

borkdude21:05:51

We are off topic btw, I'm sorry... 🙂

sveri21:05:12

Hehe...true

seancorfield22:05:13

Miranda… There’s a blast from the past!

seancorfield22:05:52

I worked with Miranda (and its predecessor, SASL) back at university. And a bunch of other created-for-academia FP languages. Prof Turner, who created Miranda (and SASL and KRC), would have been my external examiner if I’d actually written up my PhD...

seancorfield22:05:38

Back then, Miranda was very, very slow and tended to crash a lot.

seancorfield22:05:55

Didn’t put me off FP tho’… just made me want to create a robust FP language simple_smile