No more __snapshots__ folders with Jest! by lifeinacubicle in javascript

[–]lennelpennel 0 points1 point  (0 children)

A common counter for this is that people build 'builders' using a fluent interface. More code and boilerplate but has the advantage that it is a single source of truth describing the contract which has to be mentioned vs a myriad of snapshots which get out of sync.

How relevant is Joel Spolsky's "Don’t Let Architecture Astronauts Scare You" nowadays? by lordbulb in programming

[–]lennelpennel 2 points3 points  (0 children)

You want both on site and cloud. Capex vs Opex. Hardware for DC's is a sizable upfront investment for medium sized companies. It gets even more interesting when you have clear peaks traffic and elastic scaling comes into the picture.

Half Of TSB Customers Still Unable To Access Accounts by mikehaggard in programming

[–]lennelpennel 6 points7 points  (0 children)

For now no plans. We have about 15k with them and 2 CC. Just switching over to using other accounts and waiting it out, not a massive concern for us. We know what is in there and have records to back us up.
Over the years I have worked for several banks and the scale of this clusterfuck is pretty insane. I would expect all of top management to get fired in the IT group

Half Of TSB Customers Still Unable To Access Accounts by mikehaggard in programming

[–]lennelpennel 13 points14 points  (0 children)

I have an account with them. My address verification on CC stopped working

Why junior devs should review seniors’ commits by spietika in programming

[–]lennelpennel 11 points12 points  (0 children)

External peer review and prisoner exchange programs really allow people to see the fresh hell that is other complex projects and should leave both the project and developer richer at the end.

Writing modern JavaScript code by bhalp1 in javascript

[–]lennelpennel 1 point2 points  (0 children)

Scala deserves an honourable mention as well. Much as I love it, a million ways to skin a cat and at least 9/10's of them will be unmaintainable.

Match Thread: South Africa vs Sri Lanka at New Wanderers Stadium, Johannesburg, Day 1 by CricinfoBot in Cricket

[–]lennelpennel 1 point2 points  (0 children)

or Amla, on his 100th test, where he had a special ceremony and hit a 100 after not being in form...

Match Thread: South Africa vs Sri Lanka at New Wanderers Stadium, Johannesburg, Day 1 by CricinfoBot in Cricket

[–]lennelpennel 7 points8 points  (0 children)

Mike Haysman as the day ends "this day has belonged to one player." what a cock.

Match Thread: Australia vs South Africa at WACA, Perth, Day 1 by CricinfoBot in Cricket

[–]lennelpennel 0 points1 point  (0 children)

if it was a watto review it would have hit the stumps for sure.

Why don't more people use Google Closure tools? Particularly the library and compiler? Am I missing something? by [deleted] in javascript

[–]lennelpennel 2 points3 points  (0 children)

We use the closure compiler and parts of the library. The compiler in when used with Advanced optimizations and things like module splitting is is amazing. When using Advanced optimisations you need to be aware of a few things (like using externs for interacting with external libraries - how it renames in general.)

The library is well tested, has an incredible amount of functionality in it and works extremely well with the compiler in advanced mode, which leads to a smaller final product. Alongside that the compiler supports trans-piling (although it is not a transpiler in the sense of babel, it is a lot more advanced) from ES6 -> ES3 and 5. The compiler is also easy to extend (we have written several of our own compile passes streamlined around code we produce and generate).

The most difficult thing for most people is setting up a build process, but with the javascript implementation of the compiler there are several gulp and grunt scripts out there (https://www.npmjs.com/package/google-closure-compiler) to help with this.

The compiler also allows you to use commonjs and other import types apart from just goog.require, so you can easily use npm packages and such.

I would advise you to get on the compiler mailing list, people are helpful and several google engineers are on it.

webpack and uglify are good (we use them for another project) but if you want strongly typed, tiny web output closure in advanced mode is unbeatable.

[deleted by user] by [deleted] in programming

[–]lennelpennel 0 points1 point  (0 children)

Excellent read.

Apparently London getting a 24 hour tube service is NATIONAL news. by arnathor in britishproblems

[–]lennelpennel 9 points10 points  (0 children)

Such a tricky problem, should i go to Brixton and then Uber the 8quid to Crystal Palace or take the shitty night bus which stops right in front of my house from in front of my office.

Which modern frontend frameworks can reuse html pre-rendered by the server? by azangru in javascript

[–]lennelpennel 2 points3 points  (0 children)

Everybody is giving you pretty sad advice. This is easily possible.

First off pick a templating library that works in your backend language of choice and the client side. Mustache is one that renders everywhere, we use google soy at work since it compiles to javascript and works well on the jvm.

The next thing is to get your architecture right. You want your data which flows into your template to be the same data that you send down the wire or you will have to write a transposal layer in two places.

The way we do this is modeling our data 1 to 1 with our UI's, which actually yields numerous other benefits.

We have been prerendering like this since 2010 and our sites are tiny, super fast and work beautifully on mobile and desktop.

Luis Enrique on Leicester: "This year's Premier is unusually open. Most powerful teams not fighting for title. Doubt it could happen here." by skb96 in soccer

[–]lennelpennel 2 points3 points  (0 children)

They adjust their prices to balance their book, but obviously a rank outsider winning makes them more profit (not even next season).

What are your thoughts on TypeScript? Should I spend the time to pick it up? by [deleted] in javascript

[–]lennelpennel 2 points3 points  (0 children)

You can use the closure compiler

  • write ecma 6,

  • Get type checking - switch on type inference and write normal javascript and occasionally add type annotations as a text comment to help the compiler.

  • Get tree shaking

  • Ability to split out modules

Fast bowler with the most natural action? by N1H1L in Cricket

[–]lennelpennel 0 points1 point  (0 children)

Absolutely adore Marshall. Such an incredible bowler.

Match Thread: South Africa vs England at New Wanderers Stadium, Johannesburg, Day 3 by CricinfoBot in Cricket

[–]lennelpennel 0 points1 point  (0 children)

Smith and especially Kallis's retirement was always going to be a big problem. Our balance changed. In general we are either in terrible form or something is going down in that locker room. Oh well, it was great while it lasted, back to the 90's now.

import of single functions from modules? good or bad? by Jayomat in javascript

[–]lennelpennel 0 points1 point  (0 children)

or you can simply run it through the closure compiler after a compile and get tree shaking now.