Better HN
topnewbestaskshowjobs
Log inSign up

joncampbelldev

335 karma · joined Jul 28, 2015 (11y ago) · 158 submissions

Submissions

comment 9y ago · link · parent

buildkite can be done entirely on your own infrastructure (for the purposes of source control and builds), its an interesting setup:

- the ui is SaaS, but it doesn't care about your repos or build agents

- the build agent runs on your machines (they communicate outwards only with the SaaS product to decide if they should start building)

- all pipeline config is kept inside your repo

- you can hook up any source control to connect to buildkites webhooks, they just happen to have an integration to the common SaaS source control tools (github etc)

A nice extra is that running your own build agents lets you keep costs down. If you are on AWS they have a "one-click" setup for a cloud formation template that gives you an auto-scaling build environment

comment 9y ago · link · parent

For a lightweight pipeline based CI tool (with no docker requirements) you may like buildkite. I use it for almost everything I used to do in jenkins, although I still keep jenkins around as a glorified cron job / easy generic task runner.

(not associated with buildkite, just a very happy customer)

comment 9y ago · link · parent

redux is the best you can get in JavaScript for functional UI coding ... but clojurescript+reframe utterly destroys js+redux on every feature (in the context of making functional web apps)

comment 9y ago · link · parent

reusing css is a great idea for websites, react and Vue are most commonly used for web app where the atomic unit of reusability is the component.

comment 9y ago · link · parent

perhaps this is my youth talking but I feel no compromise working hard at my job then coming home and working on side projects (current one is a multiplayer 2d space dogfighting game, was using it as a learning project for clojurescript, now finishing it cos it's fun for me)

comment 9y ago · link · parent

People with families who have a stable income capable of supporting that family will usually have time for at least 1 hobby. This covers the vast majority of middle class families. Not everyone is lucky enough for that, but quite a few software developers are (the category of people most likely to be working on an indie game in their spare time)

comment 9y ago · link · parent

unless you have anything aligned in columns then all bets are off (something which many code formatters can do automatically for you e.g. lists of bindings)

comment 9y ago · link · parent

Fair enough, what's​ the performance hit of reflection like for larger collection sizes? is this library intended for exploring data during development or a production system?

comment 9y ago · link · parent

I would recommend people to use a persistent collection library like Vavr instead (many other options too).

It provides the same functionality but without string field references (a disaster for refactoring). Additionally it won't require learning a new DSL for basic comparisons because the logic is contained in normal Java code with lambdas and method references.

this:

  Gather query = Gather.where("age").greaterThan(50).and("status").is("active");
  List<Employee> filtered = query.find(employees);
  
becomes this:

  List<Employee> filtered = employess.filter(e -> e.age > 50 && e.status.equals("active"));

comment 9y ago · link · parent

skillet is for crisping up the bottom, add a lid or a circle of aluminium foil to get a nice bubbly cheese top

comment 9y ago · link · parent

I've found that with Papa John's pizza you can significantly improve the texture and flavour by letting it cool then heating it in a frying pan with a lid.

comment 9y ago · link · parent

Only if every python programmer can easily implement and distribute their own c functions for every performance hotspot they find in their program.

This is the trade-off I was talking about, you cannot trust the language itself to be performant, you have to rely on others or jump through extra hoops. It's certainly one way to ensure you won't spend the time to fix performance issues until they're really biting you (premature optimisation quote goes here).

comment 9y ago · link · parent

This advice seems to really highlight the difference between high level managed memory languages languages:

those that fallback to native functions for performance Vs those that work on a fast VM / compilation to native code.

it seems like the former gets some quick performance wins but results in being unable to use the language as intended in any remotely hot spots.

comment 9y ago · link · parent

Also super easy hot reloading with figwheel.

Literally just 'lein new figwheel' and you've got a project ready for everything you mentioned with hot reloading ready to go

comment 9y ago · link · parent

*the js app

comment 9y ago · link · parent

From what I've found in my current job creating a js react app as well as side project with cljs is that advanced optimsation of js react === basic usage of clojurescript reagent. I've found no redeeming features when developing the is app, issues with hot reloading and constant integration work to get everything to play nice with immutable js

comment 9y ago · link · parent

quite sensible advice, will probably start minimising my use of refer. I don't agree with all of it, but that's the nature of style guides.

comment 9y ago · link · parent

Agreed, my personal favourite JVM language is Clojure, but Scala and Kotlin are also great improvements over plain Java if static typing is your thing.

comment 9y ago · link · parent

or build it on aws

comment 9y ago · link · parent

"Patching is Hard", yes but the brick wall of a massive cyberattack is harder. It's not an excuse, not patching is a bet, its people saying "This is difficult so I'm going to skip it, in exchange for increasing the chance of a huge amount of difficulty in the future"

I bet all the hospitals are really glad their managers/IT staff avoided the difficulty and small uptime impact of patching now ...

Hopefully budgets will be allocated in the NHS at least to prevent future incidents like this.

comment 9y ago · link · parent

All of that thinking is just a bet, against the future possibility of an essential need to patch/upgrade for security reasons. They are reaping the short-term benefit of guaranteed uptime, in exchange for being able to do anything easily when you really have to in future. Because catastrophic events are rare, many companies think they're just being really clever and there are no such consequences.

comment 9y ago · link · parent

Using it wherever possible at my company.

We built an async rate limiting server to protect our APIs on a per ip/per user/per customer basis. Much nicer language than node is which would be the usual choice for async code. The aleph server library is amazing, thanks Zach tellman.

We also built an internal management console for reporting on our customer base as well as simplifying and auditing common support actions.

comment 9y ago · link · parent

Whilst an easy start is nice, any language that you can pick up with no effort just means you're learning the same language + paradigm that you already know with a few differing features (in go's case CSP). Nothing wrong with that, CSP is awesome etc

I'm not a rust dev (definitely interested in picking it up though), but heavily into clojure and learning haskell slowly on the side. I hear this complaint a lot from people who think that because they learnt C#, Go, Java and Swift in a weekend that all languages will be just as quick to stick in their heads.

comment 9y ago · link · parent

Vaccinated people are not effective carriers for the disease because their body is properly fighting it. Unlike an infected person.

comment 9y ago · link · parent

They endanger the people for whom the vaccines are not effective (its not a 100% preventative), or people who have weakened immune systems / a medical condition and thus can't have the vaccine. The non-vaccinated person becomes an extra vector for spreading the disease amongst a population.

comment 9y ago · link · parent

I've heard elsewhere in this thread that blocking ads/tracking breaks their site.

comment 9y ago · link · parent

i would say the relevant "this is how it works" is having a globally trusted CA system that isn't abused by large CAs just because they think no one will dare punish them. What would any of these large Symantec customers says if in the future their security was compromised due to mis-issued certificates? I doubt they'd be thrilled they were saved some dev time getting their certificates signed by another root in exchange. it's very clear from Symantec's language here and elsewhere that they wouldn't be doing shit about this is chrome weren't taking it so seriously

comment 9y ago · link · parent

That wiki link is a fascinating rabbit hole for debugging related advice/pages. Also I'd never heard the term half-splitting, Cheers

comment 9y ago · link · parent

Given their comment history, it's either not sarcasm or they need to find a new joke.

comment 9y ago · link · parent

Of all jobs to be automated any time soon I think PhD level researchers should feel pretty safe and secure.
123456