335 karma · joined Jul 28, 2015 (11y ago) · 158 submissions
comment 9y ago · link · parent
For me its a huge advantage, massive ecosystem of existing libraries to fill any gaps in the clojure ecosystem and an extremely fast garbage collector + JIT.
Stack traces are annoying though, but fixing those is waayyyy easier than replicating the JVMs advantages.
Fast, bulletproof GC is beyond essential when using persistent data structures.
comment 9y ago · link · parent
Clojure protocols, Haskell typeclasses (and many other examples I'm sure) provide the same functionality "a la carte" without the rest of OOP's features coming along for the ride (to paraphrase Rich Hickey and Stuart Halloway). More eloquently explained details in this talk at around the 21 min mark [0].
comment 9y ago · link · parent
- use HTTPS
- no hardcoded security tokens in your requests
- any personal data stored is inaccessible to the outside world without AT LEAST a password
- minimum password length for users
just anything to slow the shitstorm combination of incompetent developers and corner cutting executives.
AND such regulations are reasonably easy to enforce, anyone can check network traffic to verify protocol and api tokens or setup a new account with a short password, port scanning would catch most public databases.
comment 9y ago · link · parent
- protocols have the same performance as interfaces but with significantly more power (solving the expression problem by default prevents so many headaches when you have to add more functionality later)
- loops and other binding constructs can have type hints to allow java-speed numerical operations
- immutability by default does have a cost in memory and cpu, but the ease and safety of concurrency it has enabled in my codebases more than makes up for it, e.g. "oh i've got a large (>100000 elements) of data being processed here in various ways (map, filter etc), lets parallelise that and give it a thread pool"
I feel that if I were truly performance constrained in clojure its likely I would have performance troubles in java, the difference is just not big enough.
BUT if such a situation came up, theres nothing to stop me coding up my super duper ultra performance needed code in java and just calling it from my clojure codebase. Interop is very nice.
YMMV but its never been an issue in my day to day work (mainly involves analytics, visualisation, web services)
comment 9y ago · link · parent
I find clojure a significantly better language, and theres always kotlin / scala if static typing is your thang.
People tend to conflate the not-so-nice java language with the good parts (libraries and JVM). The performance of the JVM and the same massive ecosystem of existing libraries are available in clojure, scala and kotlin.
comment 9y ago · link · parent
Some of that comes from clojure specifically, but the lisp syntax and macros are a big part of it.
comment 9y ago · link · parent
Most people's day to day experience of vulnerabilities is someone getting access to their password or (for the techies) their private server. Stupid actions aside (like leaving a database open to the internet), it'd be nice if things like heartbleed weren't so prolific.
Perhaps when we're living in a dystopian facist state we will wish we started out by fixing the hardware vulns, but until then it'd be nice if, for example, a person who has setup ssl correctly can assume it won't leak data all over the place.
comment 10y ago · link · parent
comment 10y ago · link · parent
I was building an admin ui to configure basically a fancy slideshow for employee performance metrics (gamification). We originally had planned a few days work to put proper validation and error messages in, but then flipped the task around and made it so that every field had a sensible default, and no mistaken values were possible to be filled in (e.g. number fields with automatic limits, date pickers instead of free text).
It turned out to be much less work and the user never sees an annoying "hey you've not filled in this field in the way one of our devs wanted you to".
comment 10y ago · link · parent
What I cannot understand is how anyone is so careless to submit a CV or cover letter with spelling and simple grammatical errors. Spell check + proof reading from someone else, its not hard.
comment 10y ago · link · parent
I cannot understand how any half-competent startup dev team would find it difficult, most of it can be done with point and click UI, especially for setting up your basic load balancer + web servers + database stack.
comment 10y ago · link · parent
comment 10y ago · link · parent
Most decent RDBMS have a good way to ensure isolated locks across tenant ids e.g. MySQL partitions.
comment 10y ago · link · parent
The text you quoted says "a 9-5 job that they only do because they must", which I believe would exclude anyone "extremely passionate about programming and learning and problem solving". I'm talking about people that have no passion for it, regardless of what their other passions are.
Our new hire arrives at work at 9:30am and leaves at 5pm.
With regards to hobbies, families etc. Thats understandable if they don't have time to complete the test even though they are job hunting. However, I'd rather miss out on a good hire than risk a bad hire. My company can more easily survive spending a bit longer recruiting in our reduced talent pool compared to living with several bad hires.