261 points · by mirceasoaica · 10y ago · 305 comments
My "oh wow" moment was when I discovered Phalcon PHP framework (https://phalconphp.com/en/) about a year ago. I've switched all our projects on this framework and saved thousands of $$ because of the performance impact.
The other thing that made my day was when I discovered Django (https://www.djangoproject.com/). I never knew Python, but I decided to give it a try. The performance is amazing (I always thought that it was slower than PHP - I was wrong) and it seems I can build the projects faster that I ever could using PHP (with any framework).
What were your "wow" moments in your career? What was your best decision to improve your work?
But at the time, all I knew was a bit of Python. And while I could've learned Java, I figured that being yet another Java programmer in the marketplace, but with no experience and a liberal arts degree, was probably going to get me nowhere.
So I decided I had to learn something emerging. Something where there was nascent demand but not much supply. I chose Clojure because it looked weird, and all these bright people were talking about how great it is. I invested a couple of months learning it deeply, open-sourcing my side projects, and blogging about it. I also spent that time learning non-programming fundamentals.
When I felt I was ready, I started reaching out to people in the community and companies on "Who's Hiring" threads mentioning Clojure. Within a couple of months, I landed my first full-time programming gig at an investment bank.
I know that if it wasn't for Clojure, I wouldn't be here today.
Would you like to do an interview about it for my site PurelyFunctional.tv? I think your story could help others find their careers. Email me at eric@purelyfunctional.tv and we'll figure out the best way to do it. Thanks!
At the moment, I have a client outside of work (ReactJS stuff), and am negotiating a remote gig with a company in California.
I agree that exotic technologies give you a leg up.
My stance is also that, if you're pushing for remote, then by definition you need to justify why you're a better choice than your remote competition who may live in lower COL areas.
If you're remote, then why should someone pay you a high salary vs. paying a lower one to that bright guy in Romania, who can still live like a king?
That's where marketing, differentiation, and service come in. But these are just my guesses.
Everyone has a plan until they get punched in the face.
Companies will pay a premium to have someone in the same timezone who speaks the language fluently.
I took these two OCW courses: https://ocw.mit.edu/courses/electrical-engineering-and-compu...
https://ocw.mit.edu/courses/electrical-engineering-and-compu...
And worked my way through these two books: https://www.amazon.com/Algorithm-Design-Manual-Steven-Skiena...
https://www.amazon.com/Algorithms-Robert-Sedgewick-ebook/dp/...
I wrote out my solutions on a whiteboard or pen and paper before typing them into a computer.
Outside of A & DS, I spent some time on operating systems and networking in general. A little bit of probability, but no hardcore discrete math.
There are swaths of areas which I now cover at a slower pace as time allows; compilers, AI, etc.
that seems like an incredibly short amount of time given the content. But if true, congrats! and please let me know your secret!
At the time, they were:
https://www.amazon.com/Clojure-Programming-Chas-Emerick-eboo...
https://www.amazon.com/Joy-Clojure-Michael-Fogus/dp/16172914...
I then wrote a data processing app in Clojure; consuming financial data and finding patterns in it.
My suggestions are: 1) If this is your first time learning a functionally-oriented language, clear your mind from any kind of assumptions picked up from other languages.
2) Get a handle on the core tenets of functional programming: immutability, purity, composition, and functions as objects. If you know Javascript, then a lot of this stuff may already be familiar to you. JS is underrated in that department imo.
3) To me, writing programs with Clojure is akin to playing with Lego. You write your base functions, then higher-level functions which use those base functions, and so on. Functions all the way down.
4) Write something with it; it'll force you to decompose your program and think functionally.
Clojure is a simple, opinionated language. I don't think you'll have a hard time picking it up at all. The hard part will be to think in a manner amenable to it.
These days, I think Clojurescript has overtaken Clojure in terms of traction, so if you're into webdev, then CJS would be a natural next step.
I'm hoping to follow a similar trajectory to you, but with Elixir instead of closure. At the moment though, I tend to do things the other way around: write the top level functions and then fill out the base functions.
So I'd start a module with
def whatever(something), do: something |> function1 |> function2 |> function3
Then I'll write function1, 2, and 3 and whatever helper functions they need. And so on until it works. Maybe doing it your way is a better approach: helps you think it through first.
(although I'm aware some would say that tests should come before everything else anyway)
I have done some 40% of this book and so far I have thoroughly enjoyed reading and learning. Plus, the book is free to read online.
thanks for giving me some more motivation!
I had the same learning moment a couple of years ago. I used to code mainly in Java so when I had to build a frontend, I tried to avoid Javascript and use some Java framework like GWT, Wicket or even Swing instead. At some point I grew tired of the pitfalls and limitations that I kept running into and decided to bite the bullet and just learn Javascript properly. It was a revelation.
TL;DR; Don't stubbornly stick to one language, choose the proper language for the job.
If you're sure you can find more clients, you can just double the rate with the existing ones.
I hear about devs billing $300-500/hr, but that must be some golden enterprise moneys.
At work I use C# - but I hope to keep learning more languages. The main thing I was worried about initially was being stuck with one language my whole career.
Anyone else ever feel that way?
Now, on that topic, what's much harder than learning multiple languages, is learning multiple language paradigms. If you have a C++ background, learning C#, Java, Swift, JavaScript, whatever is pretty easy.
Learning Haskell, ML, Elm, F#, Clojure, etc...now that will make your mind bend and spin for a bit. Those aren't nearly as common in a work environment, but you can gain a lot from learning at least one.
This is kind of similar to how if you're an english speaker, learning another european language isn't nearly as interesting as learning a CJK.
Being stagnant as a developer is something I never want to happen.
I would suggest picking a language you have an interest in and a project you have an interest in and having a go at it. Then repeat the process with a new language and a new project. At the end, you will have some working software and an expanded perspective.
Ideally I'd like to work on something others could make use of, but I've been having a hard time thinking of something interesting to work on.
I've to open a new paranthesis about Node.js. If you've never worked with Node.js before and you start in 2016 you're kinda f*cked up. The ecosystem is changing a lot and maybe 70% of the resources you can find over internet are already outdated. You start the day happy and with full batteries and you start to use some frameworks etc. The next day you realize that people already abandoned it. Beside all the disadvantages of Node.js, it's also so annoying and make the adoption process so hard. How such a simple language like Javascript could become so complicated?
GO is very cool. Relatively easy language and also very very powerful, it has a high quality community and the resources you can find are very clear. If you are trying to pick between GO and Node.js, go with GO. Your adoption will be much easier.
By the way, looks like you're living in Barcelona as well ;)
> [...]
> How such a simple language like Javascript could become so complicated?
;)
I have been developing web applications on and off throughout my now 20 year career - all the way back when Applets were all the rage. Spent time with a host of technologies and approaches: JSP/Servlets, JSF, Struts, GWT, Backbone. React has been hands down the most productive technology I've used in web space. I'm so productive using it that I now enjoy doing front-end development again. I've recently moved away from ES6 via Babel to using TypeScript with React and have been even more productive as I'm now catching more bugs either in the editor or at 'compile' time.
I'm now looking at Elm.
I think that if you're going to do React/Redux, your life would be easier in Elm.
I'm a full time Clojure/Clojurescript dev and from my perspective, the main thing Elm is lacking is Protocols (in Clojure/Swift, Traits in Rust). I know Evan has been pushing back on it because it adds complexity to learning the language and you can get by without them, but I miss them. I could quibble about other things but there's nothing I strongly dislike. From an adoption perspective, I think a focus on tooling would help a lot. There was a talk at elm-conf where a refactoring suite was written as a chat bot. Ditching the chat bot part and building a language server [1] would make it much easier to pitch the language.
[1] https://github.com/Microsoft/language-server-protocol
For a non-web developer looking to transition into web dev, the main weakness of Elm is that the community is small so you basically have to build your components yourself. This tends to be challenging for experienced programmers coming from other languages because CSS has no abstractive power at all and the traditional layout techniques are incredibly unintuitive. You'll probably have the most success using flexbox everywhere. The community is friendly and I think Evan does a pretty good job leading it. I've pushed a number of younger developers at js meetups to pick it up and they've reported back with positive impressions. Of the compile to js langauges I know, I'd pick Elm as the most likely to succeed.
Overall, I like Elm and am happy with it's progress. I don't think it's ready for unqualified adoption, as you'll be doing a lot of library building you wouldn't need in more mature ecosystems and I'm not completely confident it's on the path to great success. I wouldn't push the language in a workplace at this point. By comparison, I would push Rust. You're in largely the same position in both languages in terms of writing libraries but I think Rust has hit critical mass.
People really should not discount the importance of having a big ecosystem, at least transitively in some way (ex: Clojure -> Java/Scala/Groovy). Once upon a time I took a break from C and C++ dev to do Smalltalk. It was glorious and productive, but at the same time I had to literally write everything myself. The community, even at the height was relatively small vs. some languages today. The worst was writing low-level stuff that while I could do, gave me the voice inside my saying, "WTF why am I wasting time on this." No one should ever do that if they can help it; it just eats your time.
The only real situation that comes to mind where I personally felt justified reinventing the wheel entirely was game development (ex: custom allocators, custom pipelining, entity systems). That still was time lost I could have been using to make a game and get other things done, but there were very good reasons like performance. Console development in particular was exactly this - it's not like I could go out and ask someone for their NES libraries or even in later years, PS3. Games don't generally reuse much code and certainly not when a generation of consoles is brand new with a new architecture. I could have written code like an idiot, but I chose instead to write stuff against the platform. We did well because of it vs. competitors. You can say Engines handle some of that for my specific cases, but that's discounting that huge chunks of a game are not in fact the engine or that some games preclude the use of an engine for various reasons or engines sometimes end up having the opposite effect (ex: Star Citizen).
It's reasonably robust for the HTML/JS part. The majority of current generation Javascript frameworks are built on similar techniques and the main thing Elm adds is the type system and guaranteed purity.
For CSS, all bets are off. I expect Elm to put more effort into styling when scoped CSS becomes widely deployed enough to rely on.
There aren't many extensive tutorial materials available for K, so when I decided to learn it I pored over the reference manual carefully and wrote an interpreter to try to match the spec. I built programming environments on top of my interpreter which are probably only suitable for my own use, but they make me deliriously happy to use. I made connections with both seasoned K programmers and other enthusiasts through my open-source projects with the language. Eventually I was approached with a few offers, and I am now gainfully employed by a firm which uses K more or less exclusively for backend work.
If you find a niche that makes you happy, and you're willing to invest the time to develop an unusual area of expertise, a career can follow naturally.
For anyone else just starting out, I suggest using readline with the REPL: `rlwrap q`. It gives you history, search, familiar line editing commands, etc.
http://johnearnest.github.io/ok/mobile.html
Try entering:
pl[.5*!50;sin]https://github.com/JohnEarnest/ok/blob/gh-pages/oK.js
I'd be happy to try to answer any questions you might have about it.
Probably will help if put it in literate style or a article about how is build. Some of the functions at the start (of 2 letters) what are them?
Imagine how will be do something in the style of "Building K in small pieces".
edit: If you can get past your initial reaction to the unfamiliarity of the syntax, consider giving K an honest shot. You might find you like it.
I saw every config file differently, trying to see how the lines between config and code blurred. Method abstractions and bottom up design became much easier. I appreciated all those prefix-evaluation assignments in college. I found a new respect for languages with good REPL's. And finally, it opened my eyes to computing history, where I discovered newer is not always better. The elders of old really got many things right.
I feel sad when I hit special forms in languages, and can't just a macro to change the language to suit the way I want to do it.
It made every other language I used feel overly verbose. Sure, Scheme is a bit verbose, but with two or three macros, and a handful of recursive functions, I write about 1/3 of the code I would in another language.
Having readers, and parsers exposed makes it so easy to fit the language to the task, rather than bludgeoning the language with a hammer, or rephrasing the question till it almost fits.
Random example:
You need to allow a user to run half a dozen functions, with a syntax.
Normal approach, (after you've argued you shouldn't do this), is to write a parser and evaluator, and hope you didn't expose a security hole like SQL injection by accident.
Scheme approach: Generate an empty environment, attach only the necessary functions. Parse and handball to the environment.
Eval doesn't have to be evil, especially when the language provides the tools you need to sandbox users.
You could do this with Javascript 'eval' too and I still wouldn't recommend it. Usually when this sort of requirement comes up the answer is actually visual programming, where the user just has to join blocks up and get's some sort of immediate real time feedback [1]. It's the only time VP is a good idea as the problem is in an extremely extremely constrained environment. Putting Lisp in it's place is really just an all round awful solution. Look at how the AutoCAD Lisp experience turned out [2].
Visual Programming might possibly be useful for end users, but in most areas, there are better approaches.
Serving limited environments to users is useful in at least these situations:
* nREPL * Database APIs (ala firebase) * Mathematical APIs (ala Mathematica)
Some of these I've needed in production, such as more precise calculations for statistics. (FloNum integrations into pre-existing applications).
My main point was, LISP is unconstrained, but still gives safety to the programmer.
A simple example of a first class environment:
(eval (read (current-input-port))
(let
((add (lambda args (apply + args)))
(null-environment)))
The only function exposed is called add. There isn't a way to break that. It makes embedding Scheme into applications such as GIMP or games much easier.(Just a side note, antimony [0] seems to be gaining popularity in its niche)
really? or was that supposed to be the other way around?
Personally, I can't help thinking of scala as a hipster beard on the face of java.
Compared to Java, the inherent safety level of the type system is very similar, but since it's much lighter weight you can do a lot more of it; "newtypes" are much more concise, and for/yield makes it possible to treat errors as values in a lightweight way rather than using the second parallel type system that is Java checked exceptions.
It took me several months to develop that muscle memory to increase my productivity. Today, I can log in remotely to my AWS instance, edit a few files and do it all without leaving the terminal. I hear similar benefits on the Emacs camp too.
The steep learning curve was well worth it. I don't think I've shipped any source file without opening/editing it on Vim before.
There are lots of vim commands and most emulators do not implement the entire set. Macros, register recording, text objects, correct repeat, recursive keymappings, bookmarks/jump history, and ex mode are the most frequent casualties. Because everybody has a different subset of vim commands they use an emulator that works fine for one person will be unacceptable for others. I personally can't stand any of the VS Code vim plugins, which is a shame because I really would prefer to migrate from vim to vscode for the rest of the vscode ecosystem. The best emulator I've used is Evil (the emacs one, install spacemacs if you want to give it a go) and I find the InteilliJ and Atom emulators to be okay.
There's also plugins that are almost never carried over to emulators (though surround is in Evil):
EasyMotion [0] - Lets you jump around in complicated ways. I use the following config to be able to jump around in a minimal number of keystrokes:
let g:EasyMotion_keys = 'jfkdlghtyuievnbsa'
let g:EasyMotion_smartcase = 1
nmap <space> <Plug>(easymotion-bd-W)
nmap <S-space> <Plug>(easymotion-s)
Surround [1] - Lets you surround text objects and delete surrounding stuff easily. I use the following to save keystrokes, since I find `sw"` considerably easier to type than `ysiw"`. nmap s ysi
nmap S ysa
nmap s$ ys$
nmap sv gvs
[0] https://github.com/easymotion/vim-easymotion
[1] https://github.com/tpope/vim-surroundIt's fine to learn the basics, but the hard part for me was to internalize not only the movements, but striving to use the smallest amount of keystrokes for any given edit. Always keep learning!
IntelliJ has a particularly good plugin JetBrains created. Eclipse has a decent plugin for USD$14, or it was when I bought it years ago.
C# is a pleasure to work with. It's got generics and good support for asynchronous I/O. .NET Core is also very good, it's dead simple to spin up an API serving backend using .NET MVC.
Lastly, I think the community is great. I have jumped into a couple different projects - one is a MySQL driver and another is a MySQL implementation of the EntityFramework ORM. I was able to contribute after just a few weeks of working with C#. Microsoft seems very dedicated to continually improving the language as they develop in the open on GitHub and take user feedback.
I have been working with Core all year, in fact started learning C# on Core RCs (which was a bit interesting..), but it was all on Windows. Finally the other day I just spun up a Ubuntu VM in Azure and got a sample Core app from my Win10 environment at home published up and running in a few hours, as step 1 on a small idea I have.
This coming from never having used Azure VMs before, and I was rusty with the SSHing / Linux as well. Not a lot of my friends would dig it, but as a relatively old timer I thought it was way cool. Microsoft code, running on Linux - definitely made my day.
Although, professionally I basically only do frontend work or node work. So javascript is pretty much what brings in the cash each month nowadays.
Right!? Half my co-workers still think I'm joking when I say C# or .NET
I still strictly develop C# on Linux, using JetBrains Project Rider and VS Code. I run production apps on Google Container Engine.
I'll test in Windows for cross platform apps using Visual Studio Community Edition from time to time. Never messed with Azure but I think they have some nice integrations with Visual Studio.
C# is a great language if you use the features well. Async/await and ThingOf<T> etc.
I know .NET has a bit of a bad reputation in some parts of the tech community but it's a great skill to have for stable job prospects. It doesn't matter if it's not cool. :)
Disclaimer: I wrote a book on .NET Core so I clearly have a vested interest in it doing well.
I'm yet to find a language that allows fast prototyping while being readable six months after you wrote it - I used to love Perl, it is on pair with Python on productivity and blows it out of the water in performance, but I can't say it is easy to maintain.
I always do develop quickly a Django project (1 day) with the Django Import-export module [0] so that I can show to the client the data he wants in an Excel file or else... And most of my developers friends (php...) are blown away how I manage to do that ( i.e a perfectly working admin, nice landing page and complex import-export features). And with Python, you can even show your code to the non tech client and most of the time I've found that he really "guess" the Python code more than a Js code. I'm always delighted when a client makes suggestions on my python code.
Early in my career I noticed programmers around me with 10+ years experience still typing the "preying-mantis" way (thumb+index+middle fingers pecking at the keyboard, head frantically bobbing eye-focus between keyboard and screen).
I thought to myself that if I had the same experience as them and could touch type I would be immensely faster.
I was right. Typing faster = coding faster = learning faster.
That being said, the code output bottleneck is usually my brain and not my hands!
I work closely with non-developers a lot and they have mentioned that they didn't realise how 'big' programming, languages, algorithms etc... are. There is a hell of a lot of stuff to know. But I suppose this is the same with many industries.
But more importantly, when I read Javascript: The Good Parts by Douglas Crockford. It was my introduction (though I didn't realize it) to functional programming, closures, and thinking much more about scope. I went from thinking of JS as a pile of junk to a language with remarkable flexibility.
That doesn't mean I do everything in JS, but I find I like the language a lot more than most of my peers.
https://github.com/getify/You-Dont-Know-JS/tree/master/scope...
I remember finishing college in the late 90s and coming across Emacs (actually, XEmacs back then) for the first time. What a weird editor, how could anyone even want use this voluntarily? Until some coworkers at the place I worked back then showed me some tricks. The touch of enlightenment hasn't stopped ever since and probably never will.
Emacs is so mysterious, some people actually think it's a Text Editor.
It's like saying Android is a Phone.
This taught me: Find the tool that does the job. Even if you think the tool looks stupid.
- Django has been simply amazing to work with. It is the framework with which I measure other frameworks. Its far for perfect, but it has the features I need. It can also be customized to most requirements. Sure, it has downsides, but they don't get in the way as badly as other frameworks.
- Angular changed my opinion about front end development. My experience had been with Jquery heavy websites. Never with something better engineered from the start. Angular has issues that I'm very aware of, but it opened up my eyes to the world of better javascript programming.
- React took what I leatned from Angular and just made it easy to use. Which was my #1 issue with Angular. It was too bloated. React is so much simpler.
- Visual Studio Code made me open up to newer text editors and IDEs. I've mostly been a Vim user. But VSC has proven to be very nice to use. I have not abandoned Vim, but am doing more JS dev work on VSC.
- The Django rest framework is super amazing. It just works so well with Django and allows me to build great APIs without a lot of overhead. I wish there was something like it for Java.
Then a friend offered me a software development job that I couldn't turn down, developing in a language I hadn't used before: Perl. It changed my life. I could never handle large projects before because it was too much code and too much hassle to manage it all, but Perl is so good at letting me express what I want the computer to do that wasn't a problem anymore. Perl allowed me to make software development my career, instead of just one of the tasks I did as part of my career.
Later on, I had a similar experience with jQuery. I had been using Javascript since it first came out, but it was such a hassle to deal with the DOM and cross-browser issues that it was never worthwhile to do anything important with Javascript. The maintenance cost was too high. So we added little nice-to-have enhancements to our webapp, but nothing that had to work. Then jQuery came along and changed everything. It was suddenly much cheaper to develop complex and required functionality in javascript, and client-side web development became a big part of the platform.
These days I'm writing C# web apps, with plenty of client-side javascript. My problems dealing with large complex codebases went away years ago; Perl helped me to discover that I could do this as a career, but it hasn't been a crutch.
Here's the thing. If I read Perl code written by someone new to Perl, it's hard to read.
If I read Python code written by someone new to Python, it's easy to read.
You can write good code in almost any language, so yes, of course you can write readable code in Perl (and I expect experienced Perl programmers write readable code). With Python, everyone writes readable code (albeit some people write more readable than others).
Actually, Python is one of the few languages I've come across where the beginner's code is usually easier to read than an experts (who are more likely to use more obscure features of the language).
Do we have these contests in Ruby?
Sadly, Clojure has left me in a position where Python + Django in my day work disgusts me with its mutability and unnecessary OO semantics, but I don't have much choices in my area. Ignorance can be a bliss sometimes!
This is a curious comment, and I'd like to hear some elaboration.
I used C++ for years, then 2 years as a full-time Clojure dev, and I don't see any OO parallels in Clojure at all.
* clojure protocols map to interfaces (abstract classes for C++ folks)
* one can define records that satisfy protocol(s). This is one way to do OO in clojure, happens to map to the underlying JVM mechanisms for JVM optimizations to kick in.
* Gamma et al., Bloch and many others tell to prefer composition over inheritance. Clojure makes this guideline easy to follow.
* overall the OO leaders also recommend making classes "value classes" (everything immutable; smart copy semantics; etc) as often as humanly possible.
* Multimethods allow arbitrary dispatch (most versatile kind of polymorphism) and there is also a faster method when you only want to dispatch by protocols (the (sadly) 'usually' only way to dispatch in most OO languages) that reuses JVM notion of classes and interfaces behind the curtains.
* What you don't get is encapsulation, (and many, a great many authors cite encapsulation to be the definite trait of an OO language,) it can also be argued that immutable values do not need encapsulation per se. A value should be able to stand on its own, convey the semantics it needs & so on..
Interfaces/traits maybe (z.i is quite crusty) but it's just as good at polymorphism.
Mutability though yes -- hope you're aware of https://pyrsistent.readthedocs.io/en/latest/ I use it in every project I write.
Clojure forced me to think in a radical different way than I was used to. I started with massive functions that easily became unreadable, and slowly adapted purity and wrote side-effect free code. The paradigm shift affected me so much that even in other languages, I started writing pure code and use function composition more and more often. Coming from an imperative background, functional programming was a bit difficult at first to wrap my head around, but now I love it! (Eventually I even ditched JavaScript for ClojureScript).
Go recently because it was my first truly compiled, statically typed language after almost 7 years of working (I know, right?). My entire career consisted of Python, PHP, JS, Ruby - you get the idea. Go changed that. On top of that, it is a very biased language that forces it's coding standards on you. Not all are good but you learn a lot about the design decisions behind them and why things work in the way they do.
Plus after working with it for a while, even other compiled, statically typed languages like C++ became a good chunk easier.
And as a extra, very recently: Elixir. Loving functional language, Elixir taught me erlangs genservers and process manage and oh boy! I don't understand why that's not the default tool we use for webservers all the time. It just seems like a natural fit vs other languages. Thanks to supervision trees, it is very easy to write fault tolerant, highly concurrent applications that span multiple servers, without the need for extra tools.
For example: You can spin subprocesses up at any point, communicate with them, kill them, let them crash without fearing that anything else in your application is affected. When previously you needed a queue server, a cache server, background workers, service crash recovery, long running requests processing and more to build a concurrent system, Elixir makes it very easy to implement these things extremely easily as subprocessed without the need to leave your application and grab tool X (upstart/cron/rabbitmq). Worried that something will crash? Just let it crash and the supervisor restarts it. Worried that the supervisor crashes? Then the supervisor of the supervisor restarts the supervisor.
Your background worker process is on server 2 and you want to dispatch something from server 1 from the same mesh? Just use it's PID and let BEAM handle the rest. Same for Queues, Stores, Caches or anything really.
I am highly convinced that learning Elixir is something every web engineer should learn.
Your username intrigues me....what are you working on?
Go as an addition to a BEAM app won't add anything as it mostly does nothing much better than the BEAM and what it does better will be better handled by other languages. Some people would attempt to make a case for it being able to spawn threads, etc., but its scheduling makes in inherently as incompatible with the BEAM as any other language, so it's not a reasonable point to make.
For frontend work, clojurescript. So Elixir+CLJS for almost all web-based apps (or, you know, react native).
I credited it for don't fear and be good at use RDBMS. Also, the most productive dev environment ever.
Python (+Django).
To show me how good syntax and well design API make the difference. Also, I'm mostly on python after all this years so is my main income generator!
Delphi (until get too expensive and all the inestability...)
What RAD is. I was able to circle around some local competition that waste time with .NET or others tools. Better than any else for GUI, far better for DB development that many (except FoxPro, of course).
After the above, is from bad to worse. ALL other dev environments provide sub-par experience, more dev time, worse at RDBMs development, etc.
---- iOS.
My main differentiation and second income generator. In my country (Colombia) the developers are mostly on Android. I'm one of the few that do "native" iOS development.
--- F#.
Because is my gateway to the ML family, AGDTs and almost as good as coding in python, except for the use of type inference.
Common Lisp and Haskell turned me into a grumpy, unemployable mess. Terrible ROI.
I went 180 and now I'm starting to appreciate (and making money with) Go.
Tool-wise: Vue.js (a single file for code, templates and style is refreshing), Now by zeit.co and Sublime Text are my three hombres.
And hot-reloading, for all those hours it saves me....praise be to Websockets.
1. Google the problem
If Google don't has answers.
2. Look into the source on GitHub
2. becomes 1. if I used the lib for a longer time or I know it's really small.
I think I became a better developer that way, because I now see more often how other devs do things (code- and process-wise)
(Also using IntelliJ IDEA for the first time in 2002 - opened my eyes as to what was possible for an IDE, and what was possible to do with Java.)
Then I learned Eiffel. Preconditions, postconditions and invariants, in a language with garbage collection. This was obviously a big step up from C++, and I spent the next decade trying to get everyone else to see it too.
As Java took over the world I looked around for the next big thing after OO, and decided to learn a functional language. Having seen how C++ made a mess of the structured/OO hybrid I went for the purest language available and learned Haskell.
So now my hobby language is Haskell, and I'm hoping to make it my professional language some time. Once you learn Haskell you realise that every type system in every other language you know was designed by someone who didn't understand what they were doing. You are also finally cut free from the Von-Neumann architecture, so you can pick whatever form of computation best fits the problem you are trying to solve at the time.
Most of the time I saw it as a tool to use, when CSS wasn't powerfull enough.
After using NodeJS I was blewn away. NPM alone was a killer feature PHP was missing.
Functions as objects that can be passed around and closures introduced me to functional programming.
I really thought PHP would go downhill after I saw the whole JavaScript hype and switched 100% away from PHP. Many web-companies here in Germany were just doing Java or PHP at that time (before 2010) and if you didn't know about one of those two languages you were screwed, but now I do 100% JavaScript development AND get better projects than with PHP. But I have to admit Facebook pumping money into PHP helped tremendously to make it better.
At the moment I have smaller WOW-moments with TypeScript, RxJS and NixOS. Smaller basically because I don't have work-related projects at the moment to use them, but they seem to fix a few pain points I had with JavaScript, React/Redux and Vagrant. (undefineds everywhere, realtime-data stream control and sane dependency management)
Arduino takes care of setting up the peripherals, gives easy to use functions to control the chip, and hands over the keys to a fully ready C++ build chain. When I finished my first project I was hooked and tried to use them everywhere I could for prototyping, and always aimed to make my hardware libraries as easy to use as Arduino.
Today the learning process is far better and smoother using Elixir and Phoenix. Jump in and give it a try!
JavaScript. Once I got a solid understanding, the ability to do so much more visually and interactively on our own projects, bookmarklets and chrome extensions for sales / business department, etc, that was when they really started to notice my value at my first tech job. They felt like I was a wizard, able to modify the features of almost any existing web tool they used.
My biggest moment was when I finally learned and understood how artificial neural networks (ANNs) - and specifically back-propagation - actually worked.
It happened in the fall of 2011 - I took on the challenge of the Stanford University sponsored AI Class (Thrun, et al) and ML Class (Andrew Ng). I wasn't able to complete the AI Class due to personal issues, but I did complete the ML Class. In 2012 I took Udacity's CS 373 Self-Driving Vehicle course (and completed it) to "make up" missing the rest of the AI Class.
But it was the ML Class that really drove things home; learning and using Octave was a revelation for me (vectors as a primitive? COOL!) - and learning to think on how to parallelize problems for that (and then later learning that an ANN was just such an application) - woke up a lot in me. Finally - a practical use for a home Beowulf cluster!
These experiences have led me to this year, where starting on November 28th, I'll be participating in Udacity's Self-Driving Car Engineer nanodegree program. I believe that as we move forward in the future as software engineers, knowing and understanding ML and AI algorithms, etc will be something employers will increasingly want and expect of developers. I'm keeping my skills current - you should too.
/43 years old, been professionally coding since I was 18 - and coding in some manner or another since I was 11 (yep - TRS-80 Color Computer w/ 16k FTW!)
Suddenly CSS became fun again and my time designing websites went down by a guessed factor of 5.
Another problem I've encountered: functional CSS (such as Tachyons) is only good for minimal layout. I was recently converting a mobile+tablet+desktop PSD design to CSS with very complicated reordering rules (this <div> is full height on the right on desktop, floated bottom of the page on tablet, etc.) and all my elements had 20+ classes attached to them.
So I went back and converted regular 60+ lines of CSS. Still, for some reason, working with Tachyons was for some reason faster and "easier" to reason about.
I think it's a step in the right direction, but we're not there yet.
Also, if you're using something like React, you can share the style strings in variables.
Tachyons is different, it doesn't give you components but single-purpose classes and a font-relative layouting system:
http://tachyons.io/docs/layout/spacing/
It takes a while getting used to the names, but after that it's just awesome that you don't have to think about padding, margin and font-size values anymore. Just slap "pa1" or "pa2" there and everything looks pretty.
From experience, your method is easier to think through, but later on it is more time consuming to modify a layout. pa1 and the like should be treated the same as magic numbers.
'Wow' moments: Working in a small publicly listed company early in my career showed me how inefficient and corrupt the stock market is, gave me a brief general education in business, and showed me a lot about the nature of international business. Travel showed me how there was an alternative to decades of 9-5 work, that I had nothing to fear from failure, and that I could actually afford to start my own companies. Starting my first company from concept to break-even revenue was a great learning curve.
Best decision: Moving to China. It gave me the opportunity to start a company and learn loads very quickly.
First Vagrant, then Packer, then Consul, and soon Vault and Terraform. Everything I've been wanting to do for years, I am now doing thanks to Hashicorp.
Do you mind helping me out for some good Karma? Check your twitter! :D
After about a year of using highcharts, for a specific custom chart project, I was given the opportunity to learn and implement it in d3. I built my first line chart by hand which took me little more than a week and then the custom chart project in about two weeks. It was definitely the most exciting project I have worked on so far.
Learning d3.js also made me rethink my 'use javascript as necessary' policy. I also came to appreciate what other charts libraries like highcharts do, but I won't be using those other libraries anytime soon if I can help it.
Learn a text editor deeply (Sublime) made me extremely faster than all my colleagues.
I, as an addicted to efficiency, found my job a lot funnier everytime I learn something that makes my common task less time consuming.
Seaside as a completely different approach on how to develop web applications which turns your thinking upside down when you are used to a typical request-response workflow.
Django as a godsaint after working on a medium-sized pure-php project without any clear structuring.
Forth also made me go "wow". I really understood that way of thinking. I also think Forth is amazing for its ability to keep you from getting discouraged by allowing a problem to be broken down into new words. Postscript was my Forth "wow" combined with art.
I haven't touched FoxPro in over ten years and work primarily on mobile now. But a stint at Microsoft opened up all kinds of opportunity, and that wouldn't have happened were it not for a small company in Toledo, OH cranking out desktop database software. Otherwise I'd probably still be in Indianapolis cranking out CRUD for some insurance company.
- fabric, the python library: https://www.digitalocean.com/community/tutorials/how-to-use-...
- sublime text package manager
Made programming fun again. Don't seem to get to use it at client sites as it's too extreme an approach :(
Please have a look at the following presentation. I was also interested in the same, watched this presentation[0] & many other, made some prototypes by myself & I'm still amazed by OTP/Elixir & Phoenix later on.
The pattern I'm talking about is dicussed here: https://news.ycombinator.com/item?id=2945513
I don't use Clojure as much any more but everything I learned has had a lasting impact and much of it trickles into my other work now, in other languages (mainly C++).
This is way back in 1998, when there was still VBScript and JavaScript was still very nascent. I had no idea it would have the impact it has had on the Web today. I just found it a cool way to make rollovers and other effects.
When CSS and "DHTML" came around, its potential was starting to dawn on me. Others saw it first, but that was when I started to approach it in earnest.
I created and played with so many cross-browser JavaScript libraries in that day. (Anyone remember 5k?) This is way before jQuery. Even made a bunch of widget libraries. Looking back, it was such a Wild West. Arguably, it still is.
Somewhere around 2003-2005, a bunch of colleagues and I started to apply formal computer science discipline and principals to JavaScript. Many others were trying similar things too. I even remember using an iframe to dynamically load and change content on the page without a refresh, a precursor to "AJAX" when it was coined in 2005. Somewhere around this time, I remember colleagues talking about using JavaScript on the server too, instead of just the client.
It's pretty crazy to see how far this little scripting language running on a Netscape browser has come.
Fast forward 7 years and a couple of increasingly lucrative and interesting jobs...
Scala. Getting a bit bored with the Erlang ecosystem, got offered an (even more interesting and lucrative) opportunity at yet another startup, that was running on Scala/Akka/Reactive Streams. Jumped at the chance and went through what was probably the most grueling 6 months learning curve I've ever been through. Got to appreciate the benefits of a strong type system and a thoroughly modern/flexible language. Also gained a renewed appreciation for the simplicity and practicality of Erlang and it's virtual machine :)
That's where I am now. What comes next, I am not sure. Maybe Haskell or Clojure. In any case, after all this it feels like I could handle anything anyone throws at me.
I work on many projects with many different modules, languages, databases... What this enables me is to be one single command and a seconds away from completely switching context while still maintaining basically identical environment. It encourages experimentation because you're language/project agnostic and it reduces friction to getting started which is a great boon for productivity.
I'd messed with some of the ESRI server products and knew basic SQL but discovering PostGIS was a paradigm shift in terms of being able to easily and efficiently run more advanced spatial analysis in a database.
I came back to it quite recently and it's advanced a lot, although I use its C++ sister product, C++Builder, which pairs the same UI tech with C++, a trick that is hard to pull off (Qt manages it, through many clever C++ tricks; C++Builder does it through a couple of neat language extensions which I feel is cleaner overall. I really like it. This year I started working at the company making it, so full disclosure there, but I work there because I like the tech so much.)
First it was a weekend project, then a full project at work, now there is a full team working on it and my title has changed to "Data analyst".
All in 6 months.
I learned C and C++ in university. It was all either procedural or object-oriented.
JavaScript made things a lot simpler, especially first class functions and higher order functions. It delighted me that you can just pass the function like it's a variable instead of messing with pointers. It's also delightful that a normal function can return an object. No constructors, instantiation, hierarchies, complications. Just spit out the object. It's simple!
Lodash's "chain" was my gateway into functional programming. I am avoiding getting too deep into that because it feels kinda cultish the way adherents claim its superiority, but it has nevertheless impacted the way I approach problems.
When I landed my first job back in 2012, I used to be a PHP developer. As obvious, working in a startup will force you to be a jack-of-all-trades, I started picking up SysOps (Linux, Web Servers, Email Servers, Deployment..etc) tasks along PHP development.
In mid 2013, I stumbled up-on "Docker" and I started learning it immediately. Mostly, I used it to solve dependency and packaging issues for my PHP projects. Soon I became fluent in SysOps tasks too.
Early 2014, I wanted to get into a new job. But not sure to continue as a developer or get in-to DevOps. Instead of doing the same old boring development, I chose to be a DevOps and the opportunity was provided because I have working knowledge in "Docker", which is not an easy find at that point of time. Actually I got a pile of opportunities and landed in the best among them. After 2 years passed by now I'm at my third job in a different startup, which again I work mostly with Docker.
By looking at the Docker's growth and usability, I could even say, it's gonna get my future job also :)
Another wow moment was Perl, and its just three data types.
Then lisp.
Currently I think that the most mind changing languages for me were SQL, and C++. I don't know why, I just love Postgres, and I love the C++ speed.
However for the last 15 years I've been commercially programming in C, C++, Java, Javascript, Python, Ruby, Perl, Delphi, PHP, SQL.
What I like is different: I like Python, Postgres, SQL, Java, and I'm learning currently is the newest C++, and a little bit of Rust.
I'm not sure why I still have problems with understanding Haskell.
However when I'm looking for a remote job now, all that doesn't matter. I get some strange interviews with 10 minute algorithm tasks (if you don't remember the implementation of this task, which you have never seen before, you have no chance to write it). Or even recruiters not understanding the answers to technical questions they ask.
And most of the job offers I get require 10 years of writing in one language, so I'm wondering if I did good learning all those different things.
The biggest one though was Javascript when Netscape first invented it. Suddenly FE development went from HTML without even CSS to actual programming, and one could see the potential of the platform.
Then ActionScript 2, which was the short lived phase of Flash where it evolved from a vector toy for making spinning logos into a JS-like language (they were in the ECMA committee and everything), but you could do all sort of crazy animation and sound too. Sadly ActionScript 3 and Flex ruined it all for me, turning Flash into Java. But it was fun while it lasted.
Luckily by then JS was reborn thanks to jQuery et al, and the next "wow" moment were all the APIs known collectively as "HTML 5" - from WebAudio to WebSockets to Canvas etc.
And finally ES6 / WebPack and React / Flux, finally we could break away from the MVC model that never sat well within a browser environment, and with a modern language to boost.
In that time, I've never been quite as excited about anything as I am about Virtual Reality, and specifically what Google and Mozilla are doing with WebVR. I don't think people understand how much 2D systems are holding us back. We've had the same WIMP interfaces since Xerox invented them in 1980. And we largely do the same things with our computers as we did in the 90s when the GUI finally captured majority market share. Making computers smaller and faster is not going to change that. Only a complete change in the user interface will change that.
I've always banged around working on graphics, stereo-imagery, and simulation as a hobby, but I seriously started on making something about 2 years ago (actually, I recently saw my first commit for some reason, and it was July 10, 2014). When my son was born prematurely earlier this year, it lit a fire under my ass. I know a lot of people think that they need to get the startup stuff out of the way before they start a family, but for me, my family is my purpose, my family is what drives me. I feel strongly that well-designed VR systems are going to enable a whole new level of accessibility, interconnectedness, empathy, and collaboration. I need to make that world for my son.
So because of the stuff I started 2 years ago, I now have a job where I spend 100% of my time working on VR. For the first time in my entire career, I look forward to going to work. I feel great. I have great coworkers. We do amazing things together. And it's because of WebVR.
Six years ago i started developing android mobile apps, always in java! So java was my love and game changing language and i still use it today for both web and mobile projects (Spring is a beautiful and easy to work with web framework).
During all these years i have become a proficient developer also with groovy (Grails was great, but sloooow and little adopted), with objective-c developing iOS apps, php and javascript so i agree with who said that it is fundamental to learn different languages, but my favorite one is still JAVA, even today!
C/C++ -- learning C/C++ took me from being a backyard hacker who could figure out stuff to being somebody that could code close to the metal. It helped me understand how all other languages worked.
Javascript -- I really hate Javascript, even though I've been coding with it since it came out. But learning it gave me a front-row seat to watch the world evolve
F# -- I wanted to learn FP and started with OCAML, moving to F#. Combined with lean startup principles, F# and pure FP showed me just how much time I had been spending fighting the tools instead of just delivering a solution. Changed the entire way I look at programming.
[1] https://en.wikipedia.org/wiki/Miranda_(programming_language)
However, for the use cases where Zope shone (complex security requirements, extensible content types nested arbitrarily, etc.), there are a number of Zope-inspired frameworks that are reasonable choices today, such as:
The ZODB (Zope Object Database) is also still going strong: http://www.zodb.org
ZODB is also the underlying technology of the recently launched ZeroDB, an e2e encrypted NoSQL DB: https://opensource.zerodb.com/
Being able to fully control a remote computer as if i were in front of it is a most.
-> git
The distributed nature of git still amazes me.
-> multiple cursors & fuzzy search
Sublime Text pioneered multiple cursors and fuzzy search over all the options of the text editor, now most modern editors have included it. I use Visual Studio Code btw.
-> docker
Web development, deployment and configuration have been vastly simplified with this open source project.
-> NoSQL databases, in particular MONGO DB
My view of data fits way better with non relational databases, and not having to deal with migrations is a gift.
Additionally, Rust is a very well-engineered language, but it has few ground-breaking attributes. The borrow checker has never appeared in a non-esoteric language before, I guess. Most of the other goodies could have blown people's minds long before in another language.
It hasn't really changed my perspective on programming. I haven't been doing it long enough to have it transform my career. As an answer to the OP, it's not a particularly good one for me.
Before that (way before), telnet and ftp. Being able to deliver a new executable to personnel at a trade show floor from 500 miles away was mind-blowing in the early 90s...
On frontend I think Polymer and Web Components are a game changer - very low entry barrier and they feel like a proper way to do web development where everything is encapsulated.
Then Python, where I understood that a language doesn't have to be as toylike as TCL to be extensible and embeddable.
PHP, JAVA -> RAILS, PYTHON, JS
PERL (1998)
LISPS, ML family, SCALA, GO, RUST
EMACS
GITHUB
Pow allows you to link an app to open it as http://app-name.dev
Powder is a rails gem that automates the process for you.
Docker and containers for packaging, shipping, and sharing.
Kubernetes because it fundamentally changes the way we design and build systems.
ML (and now Cozmo+RL) cause future.
Lisp
Prolog
Tightly coupled, distributed DB queried with prolog
Tightly coupled UI engine
Everything under emacs
Seven years ago: Haskell
A year and a half ago: Reflex FRP with GHCJS
These three events dwarf everything else in my experience.
Django compared to Laravel (which is now probably the most popular PHP framework) is orders of magnitude faster. This is what I meant with Django being faster that PHP (this statement compares a framework with a programming language - not fair)
And thats for real complex projects, not making LED`s blnik.
Smalltalk - Some of the best ideas in CS that were warped, misunderstood, or ignored. Commercialism at its finest killed this and ruined the ideas from it. The productivity in this language was huge for me and the environment was and still is a wow. The aesthetics have almost always been awful though so it really bugged me that no one ever gave a practical instead of theoretical effort to improve here. The day I saw things like Gemstone Smalltalk dumping entire running states into a bug tracker and then clicking on the issue and being thrown into the debugger was one of many incredible moments. A lot could be improved, but like Lisp, lots of imitators and few equals. In terms of impact, this really led to me truly learning OOP at a higher level and made me think about code entirely differently - as a living, breathing, environment that was somehow more real than what Lisp offered. The separations from the OS into its own world made it both incredible (I still feel like using files 1-to-1 for code is nonsense) and a pain to use (ex: integrating proper source control and existing tools because of files issue).
Clojure - Finally a practical Lisp-like experience that I don't feel like a crazy person trying to "sell" to coworkers to use on a project. Lots of things here I don't like, but even the author of the language agrees with me on most of those. I like the pragmatism, honesty, openness about what is good/sucks, and more here. It's really productive for me and I feel less in Smalltalk and Lisp land. The moment was like, "Rich Hickey, OK, this guy totally gets it."
Emacs - I hated it at first, but when the concepts started to sink in for me, it made so much sense. Licensing and politics aside, it's pretty incredible. I wish there was less crust or a way to magically rewrite it and have all the good add-ons also magically rewritten. It truly is its own OS for better or worse like Smalltalk, and can be used and abused accordingly. It just still makes so much sense to me in both Smalltalk and Emacs that I'm writing code and I can use code to do things to my editor, both in terms of add-ons and while it is running (ex: if I need a special toolbar, window setup, whatever).
Acme - It's an ugly editor, but wow it's full of great ideas. I didn't particularly enjoy the mouse chording but everything else is amazing. The relationships it had with the system using it in Plan9 just made it so powerful and full of possibilities.
Overall, my best decision to improve my work was to stop listening to the masses and just try to do my own thing, with confidence. That doesn't mean just anything, rather it means follow my instincts and balance things with a healthy dose of pragmatism and extreme skepticism. That also meant ruling out new and shiny things as well as old and awesome things like Smalltalk and Lisp on many projects. Once I learned the difference of being a contrarian vs. an educated independent thinker, I became both tormented by how terrible most software is and encouraged to think completely differently and abstractly about it all. Still trying to do some great things with that attitude, and it's more the non-technical daily life struggles that are the real challenge.
Working with Clojure..would be great if you could expand on these. Curious as to what they are/Rich agrees with.
I find Clojure lacking when it comes to debuggabililty. In so far as everyone in my medium-ish non trivial codebase seems to find 'clever' solutions that are all but impossible to debug efficiently without a) understanding everything around it and b) printing everything. Debug statements seem to "ruin the cleanliness" (as well as genuinely ruining threading macro flows.
Do other companies use Clojure for non trivial web applications? Have these Clojurians ever worked on a properly complex system? A lot seem to do just data analysis with Clojure. More importantly, have they ever worked on a properly complex system that they haven't been involved with from the start where debugging comes back to 'intuition' and 'whack a mole' type debugging?
* It's on the JVM (good and bad). JVM is boring, JVM loves crazy config and Java libraries. JVM has legacy baggage. JVM has garbage collection which precludes Clojure from some problem domains or otherwise handicaps it (game dev, real-time) somewhat. The list goes on.
* Core.Async is great, but parts of it can't really be optimized because of the JVM, once again. Go does a better job supporting some of the same constructs at a lower level. Counter-point: I am light years more productive in Clojure than Go because of functional programming, immutability by default, and better/more libraries for my purposes given the entire JVM ecosystem.
* Macro Debugging. Yeah, there's not much getting around this, but I mentioned some tips in my other post.
* AOT. It's there if you need it but it's less than thrilling to work with.
* Multiple versions of Clojure in the same JVM. People are working on it, but it's an issue caused by the JVM once again. Anyone who has used Storm has probably hit this at least once.
* Editors. There's Emacs and IntelliJ/Cursive, but the rest of the pack of popular editors have questionable or more limited support. Fireplace + Vim is decent too. A good example I saw recently was someone was lacking good, bug-free Clojure support thus far in VSCode. This is mostly due to community size.
* Community size. It causes a lot of things. On the plus, the community is more friendly, open, and accessible at all levels. There's no layers between people very much or hierarchy. On the negative side, there is less output because of it, though I feel sometimes this helps with quality control. Ability to use Java libs helps here.
* Null/Nil/Exceptions. I agree with how Rich gave treatment to nil, but I mention it because a lot of people hate it, especially with some ops that return nil. If you are a monad person, this will start to get to you. Exceptions also bubble up sometimes and mess with your beautiful functional compositions because of Java underpinnings.
* Functional purity. I worked in various Lisps, Haskell, and others. I don't buy this argument, but some people would rather burn themselves alive than use an impure pestilence like Clojure.
* Graphics Programming. I mean you have Java and some Clojure GPU libraries, but it's kind of weak. This applies to most languages that aren't C or C++ though.
* Certain domains. I mentioned graphics, I'll also again mention real-time and games. I don't think you should be writing the next Mars Lander in Clojure.
* Garbage. Again, JVM, but it's worth stressing that Clojure generates even more garbage than normal in some cases. You can avoid this if you really care and can shortcut some things by making use of transients.
* Performance. Transients also will help here. Clojure performance is pretty good, but it's not Rust or C good. Like any language, you need to understand where the costs accrue with productivity.
* Legacy core or widely-used libraries. Some of these suck or have some design issues. I personally don't like zipper for example and use 3rd party stuff if I want the same thing. Core.typed for awhile was bothering me too.
* Startup time. It sucks. It's getting better, but it is a hard thing to make progress on. Pixie is one alternative if you want something similar in another language, though I'd personally either stick with Clojure or pick a different language if that was important to my app. Example: not the best thing in the world for shell scripting.
* Pre-existing knowledge. It's not a requirement, but it certainly helps to have other languages under your belt first. Knowing Java and the JVM really helps, especially with debugging if you are that lost.
* Lein/Maven. It's getting better, there are alternatives (boot), and these tools are pretty awesome compared to most (looking at you Go and also Nodejs). Still, there's some rough parts here carried over from maven. For instance, "lein clean" is a thing.
* Size. Heaven help you if you want tiny output of a binary/package (ex: JAR). But then again, you're using the JVM so I assume you didn't believe in such things.
* Lack of tail optimizations. JVM issue again. Clojure works around it, but it would be nice to have had at the start. This angers Lisp purists.
* Namespace issues. Mostly just about blowing up REPL state. Namespacing is actually pretty good, it just has some limitations in the Lisp sense.
* What is broken by design to some degree will be at best patched, not fixed. Rich has stated numerous times he doesn't want to entirely break peoples code, but he will try to patch things. A good example is transducers were an improvement, patch, and built in a way that didn't break existing stuff. This means though some of the rough parts are here to stay.
There's many more, but that's my honest perspective for you. I would never pick 1 language for all projects or even most of my projects. Use the best tool for the job. Clojure sometimes is it for me, hopefully for you too. Good luck.
> impossible to debug efficiently without a) understanding everything around it and b) printing everything. Debug statements seem to "ruin the cleanliness" (as well as genuinely ruining threading macro flows.
I've never once had to add a debug statement to my Clojure code, not sure what you are doing honestly. You can easily debug with Emacs + Cider which allows setting breakpoints, inspecting, and evaluating forms while debugging. This is much more than debuggers in many languages. Further, you can also use Cursive + IntelliJ which gives you pretty much the same thing, only more like most people who have done Java, C++, or C# are used to in the various associated IDEs such as IntelliJ, Eclipse, Visual Studio, (or Emacs/Vim for that matter) etc. Given the data you are dealing with most of the time is immutable, things couldn't be clear IMO.
The only time I find myself printing things is in the REPL. A few years ago I did this more often in Chrome in ClojureScript, which mostly goes away now with one or more of nREPL, Nightlight, Figwheel (or the many similar libraries). In fact I'd say the debugging situation here is better than most languages because you can instant eval things as well as live code, and see those changes immediately in the browser.
Regarding threading macros, I assume you're talking about (->, ->>, ->as, and so on). Again, you can just eval these partially in the debugger, and worst case, bind something to a value you set in the debug session as you would in a plain REPL session. I would agree these are harder to step through. If for some reason you meant macros in general, I'll repeat what I always say to new Clojure and Lisp users in general - do not write macros at the start, and when you do, question the reasons why you are doing so. Macros are insanely useful and powerful when you need them, but most of the time you do not for the average app (obviously many exceptions). Worst case, you can macro expand, paste that, and debug or debug the macro expand in an debug eval.
Overall, I've found debugging to be substantially less pleasant in most languages that are popular such as Python and Ruby vs. Clojure but less pleasant than say Smalltalk or a Lisp machine. Like many languages, the situation with Clojure improves over time. People complain about the stack traces but most of the time they don't bother me and each version has improved on that. I came from the assembler, C, Fortran, Lisp world, so in some ways that has made me more keen how to write code that is easy to debug and to not fear debugging.
> Do other companies use Clojure for non trivial web applications? Have these Clojurians ever worked on a properly complex system? A lot seem to do just data analysis with Clojure. More importantly, have they ever worked on a properly complex system that they haven't been involved with from the start where debugging comes back to 'intuition' and 'whack a mole' type debugging?
Yes, there are various lists out there if you Google some. A brief list: Amazon, Netflix, Pivotal, Walmart, Heroku, Factual, Capital One, Roomkey, Spotify, Soundcloud, the list goes on. I think it's fair to say at least one has a complex app and at least one is a not for data analysis. Clojure is quite often used at very large companies that are almost surely building systems more complex than yours (no offense, just basic probability). Saying Clojure seems to be used mostly for data analysis and therefore implying it might not be good for web apps is like saying that about Python, which in fact is used more than Clojure for data analysis.
Regarding, web applications, by nature they are trivial compared to many domains. Of course you can make things complicated by adding a lot of moving parts, but these things are usually complimentary to a web app (ex: stream processors like Spark, Storm, Google Dataflow). You can also make things more complex than they need to be by bolting on frameworks and trying to shoehorn your business and code concerns into it. This is one reason some people like lighter frameworks for some purposes and heavier for others (see Django vs. Flask for instance). Clojure generally spurns heavy frameworks for web stuff because functional programming tends to encourage or even require composition. As such, things already fit together and simply picking well-tested libraries to form your "stack" tends to let you use the right tool for the job more readily. Obviously this is somewhat subjective, but I think other people who insist on heavy frameworks have something to learn here. If their framework was so awesome, we would not need 10 more next week, and yet that is what happens.
Regarding "intuition" and "whack-a-mole" debugging, I would agree that the former is important, while the latter is a sign you've done something terribly wrong. Clojure like many functional or data-first languages tends to push you towards certain tracks that should really not lead you to whack-a-mole debugging. The idea of immutability by default and functional composition in part is that it is harder to screw up your state. This should make debugging very clear at runtime since you can quite often literally dump your entire state and have quite high visibility into what is happening in your application. A good example of this WRT web dev as you mention is ClojureScript (yes, not Clojure but same principle applies) and ReFrame or Om-Next. You have a single representation of your state as an immutable database that you update instead of things scattered about, meaning you can inspect it, query it, access it across threads (if it was on the server), etc. In Clojure and many languages, you need to think in terms of operating on data structures not classes, objects, or potential language construct distractions. This again drives away distractions while debugging that leads to shots in the dark. This of course should feed your intuition too in that if you see something with a weird state, you did something wrong like reset! instead of swap! or used mutability or you're just understanding your own code wrong.
It's not really fair to compare, but like I said, I find the debugging situation to be excellent. The fact that you can also live code with the browser, work directly in a REPL session (I open them for days), and so on means you can potentially write and test your code easily at the same time. This is somewhat like TDD, but instead of just writing a unit test, you actually run the code and get more immediate iteration and feedback. Of course you can still do test-first TDD too and eval those and even run the tests in the REPL. There are some traps here like stupid things you can do in the REPL, but there are many libraries to help you solve this that promote practices that are good regardless of the REPL (ex: Component, Mount).
I'm already writing too much, so I'll say with regard to what Rich says, just read Clojure news groups and JIRA and such. He has said many times Clojure is essentially a pragmatic balance of some of the super powers of Lisp with the practicality but limitations of the JVM. Do you want a perfect language or one that helps you get work done today but maybe better than a lot of what is out there? Moreover, do you want a language you can use in reality or just academia? Clojure solves that via the JVM and a huge existing ecosystem.
Anyway, feel free to ask more and good luck. I am sorry if I sound harsh, but I am trying to give you real answers rather than fluff.
I found Python around 21-22 and it completely changed everything. I could sit down and just flash through the whole process of idea to actual execution in one day and I didn't have to micromanage everything. Programming became exciting again.
A few years later I was having a hard time with some personal issues and I ended up trying to distract myself with SICP. SICP just lifted a whole layer of fog for me and while in the process of reading it I found Racket. So I went into the rabbit hole that is Racket and found myself just unmasking programming languages in general, making all of them so much simpler and easy to learn. When I was done I just had a new appreciation for language features and how to build them.
Not all that long ago I looked at Elixir and started playing with it. While doing so I realized that there is no stack that can make playing with processes as easy as the BEAM and what that means for the apps you're making. The BEAM changed the way I looked at multi-threading and concurrency and it's the platform I'd use for all forms of control systems, with the branches in those systems either running entirely on the BEAM or just communicating to external nodes in other languages when needed.
After about 4-5 months of Elixir I landed a job using Erlang at a game studio and I'm extremely happy to be using the BEAM professionally. We're allowed to create fairly amazing things and the things we build, even though I don't agree with the reason they're being built all of the time, are made possible only because of the BEAM (running interop with Lua, etc., running all communication through the BEAM).
Lately everything's finally clicked for me with Haskell and I find myself not having issues with the things I had issues with previously. I don't know how, exactly, but I think I let my brain finally absorb "Real World Haskell" (the best book, in my opinion: If you're only going to read one, don't let it be "Learn you a Haskell". LYAH is nice as a reference, but I don't think the demonstrations in it are very good, relevant and exciting) and so I was able to _not_ worry about monads and simply use them, letting the idea of them just emerge in my head because of familiarity with them from usage, instead of forcing monad tutorials on myself.
When I started to appreciate Haskell as just another language is when I finally understood why it was so great. It's amazingly practical and I've redone some of my older Python projects in Haskell only to find that I've got about the same LoC count even with types, which means that I've got more safety, more robustness and I can add things faster and with less headaches.
With these languages, there aren't many things that are impossible, and I feel like they've all changed something in me in terms of how I look at programming.
Next, JSP and Servlets, JDBC, and MySql, along with POJOS. Made it easier to write consistent, clean code, and along with the Java Cookbook, programming was a lot of fun for a while.
It all almost ended with JSF, Struts, Struts2, Spring MVC, Spring DI, Pico, Wicket, Tapestry, Hibernate, JPA... these were often the product of good minds and talented engineers, but, yeah, this almost ended my career in programming. I remember seeing a sysadmin and unix book on the desk of a web developer. I asked what he was learning for, and he gestured to a long row of Java related web books on his shelf. "I just want to be a systems administrator", he said, "I can't deal with this churn anymore." What had been fun now required a 2,000 page stack of books with constant churn, and so many little integration errors that doing even the simplest thing was a true slog. I wanted to secede as well, but many teams (and recruiting managers) absolutely insisted on this stack. I figured software was "over" for me, at least in web dev...
Then, Rails. Pretty much saved programming for me. I get it, it's not the new shiny anymore, but it was blissful to get back to such a productive environment. Although the Rails community was too brash and dismissive of reasonable criticisms and efforts to improve the stack, I understand the hurt that was behind this angry rejection of the "enterprise" world. Get stuck on an "enterprise" Java project in 2004, see nothing get done, and then watch as people try to shoot down Rails or Django, and you'll understand why the anger hit this level, why people cheered when the simple words "Fuck You" were offered as a retort to J2EE criticisms of Rails. It's better to be civil even as you disagree with everything you've got, though, (the Django community seemed to understand this better than the Rails one).
Lately, javascript framework churn has pushed me back into the way I felt during the explosion of Java based frameworks. The difference is that I know understand that this will pass, it's a period of chaos that often accompanies a large shift in technology and focus. It will settle down, and what emerges will be simple, effective, and useful. However, I am also making an effort to find shelter from the storm. Eventually, this will be sorted out, but I don't want to get sucked up into the vortex for several years like I did with Java in the mid 2000s. Like a lot of devs, I'm looking to stay on the backend - though this has always been my inclination anyway.
Lately, scipy and scikit-learn, I hope. The ease of doing formerly difficult things may lead to some awesome new directions!
Scheme - it's so concise, clean, Wow!
CL - LOOPing macros, SETF, OOP is just a bunch of slots and macros. Wow!
SML, Haskell - static typing done right. Wow!
Erlang - Wow!
Scala - concepts from SML + design choices from Erlang.
Java, JavaScript - Packers, packers everywhere...
http://mathoverflow.net/questions/251059/what-is-the-real-na...