Clicky

Saturday, 25 November 2017

Product Review – Dell XPS 13




I left my old job recently. And consequently found myself in the market for a new laptop. I hadn’t bothered replacing my old Acer Aspire V3-571 with custom 1TB Samsung SSD that had failed within two years. Because the Toshiba Satellite Pro P50-C-12Z my old job supplied worked fine as both a home and work machine. Especially once I upgraded it with the SSD from my home laptop. However, once I left that job, I found myself relying on a 10-year-old Dell Inspiron for a couple of weeks: 


 

That Inspiron is a loyal old work horse that has served me well as both a dev laptop and file server for a decade. And has been my go-to machine whenever other, newer, higher-spec machines have failed. It's had its screen and hinges replaced. And has had its hard drive upgraded several times with various SSDs. So saying it has lasted 10 years is a wee bit Ship of Theseus-y. But the motherboard, fans, etc have all stood the test of time. However, it just isn’t fast enough any more for modern development, so I needed a new machine.

After some research, I ended up opting for the Dell XPS 13. With 16GB RAM, 512GB PCIe SSD hard drive and the new 8th generation Kaby Lake Processor (i7-8550U.) I initially ordered the previous model. Which was identical in all respects to the above spec except the processor (it was an i7-7550U), and the price tag: the old spec was £300 cheaper. However, after reading  several reviews that all suggested the improvement in performance with the 8th gen processor is significant, I cancelled and ordered the new spec. It cost £1649 in early November 2017. At this time, in late November 2017, it is now retailing at £1547 on Amazon. That’s quite a price change in only a few weeks. Not waiting a few weeks to see how the price settled is my only regret so far about buying this machine.


The main thing that makes the 8th generation processor so much better is that it has a Quad Core, compared to the previous generation’s dual core. So, even with a lower clock speed, the newer processor burns through tasks like building Visual Studio solutions about 60% faster than its predecessor. That’s pretty significant. Performance gains are usually on the order of 10-20% increases between adjacent versions. As the newer processors have a lower speed, they also run cooler. So, except when you’re building solutions, you almost never hear the fan kick in. I've found that browsing the internet, watching videos, and even using MS Office are all silent experiences on this machine.

I had heard that coil whine (a low pitched noise that accompanies processor-intensive tasks like watching videos) was a problem in the previous model. But I haven’t experienced that problem myself in the three weeks I’ve been using my new machine. Similarly, I had read reports of the wireless network card being unreliable; but my machine has performed perfectly. It hasn't dropped connection to my home wireless even once.

The main things that drew me to this model were the form factor. (A 13.3 inch screen in a machined aluminium chassis, that would usually only be large enough to hold a 11 inch screen in other models.) And the battery life. (Dell reports 16 hours; I’m finding more like 9 or 10. But I do have the QHD screen, which is more battery-intensive.) Every time I’ve bought a laptop before, I’ve gone for power over convenience. But to be honest, the sort of 15-inch laptops I’ve opted for in the past aren’t great for commuting (small tables on trains.) And they typically don’t have a good battery life. (I’d have been lucky to get an hour or so on battery on my old Satellite Pro.) By comparison, this machine runs and runs. If I take it to bed at night, I have to be careful not to surf (do people still say "surf"?) or work too long. Because that battery could easily see me through til dawn. As it is, if I browse the internet or watch a video for 3  hours or so at night on battery, I find I still have 70% battery the next morning. That, to me, is better than having a 10% faster machine that doesn’t last as long.)

As a development machine

Honestly, I’ve not used this laptop heavily as a development machine yet. Though I have experimented with running old Visual Studio solutions on it. A solution with 36 projects Builds in 1-2 seconds in Visual Studio 2015 Professional and VS2017 Community from a cold start. And Re-builds in about 15 seconds. That's amazing - better than any laptop or desktop I've ever had, full size or not, with or without SSD. On my old full-size Satellite Pro laptop with 1TB Samsung SSD, that Rebuild would have taken about 20 seconds. I should warn that there are some gotchas in VS2017. e.g., if you leave the Lightweight Solution Load option on (as it is by default), then the initial build time for that same project is about 40 seconds in VS2017 Community. Also, the solution sometimes doesn't build at all. So, my advice is to switch Lightweight Solution Load off completely. It's not stable enough at the current time to be of any use.

I’m always dubious about using versions of Visual Studio in the same year as they are named for. But VS2017 appears to be particularly bad in terms of buggy-ness and generally poor design decisions. (e.g., I found that the Javascript Language Service (the part that should make Intellisense work for Typescipt and JS files) has been arbitrarily turned off in VS2017 for some of my existing solutions. Seemingly because some Microsoft developer had put it in the “too hard” pile to make Javascript / Typescript work properly in VS2017.) Note to Microsoft developers: if you can’t handle more than 20MB of Javascript / Typescript files for a single solution, you’re just wasting developers’ time. Don’t bother doing less than that and considering the job done. Turning off features that worked perfectly well in previous versions of VS is pretty inexcusable. The only reason for using Typescript over Javascript is that it provides object-oriented capabilities. But you can only leverage those features meaningfully if you have Intellisense. Disabling such a key feature at such a stupidly-low threshold is like having a car whose doors fall off if you go over 30 MPH. And closing bugs about same on the basis that you meant to do something that stupid is even more stupid than the design decision was in the first place. FWIW, I fixed the problems with JS/Typescript Intellisense that are evident in VS2017 by disabling the new Language Service completely using this option:


and including the following settings in a file named "tsconfig.json" in the root of my web project:


        {
          "compilerOptions": {
            "disableSizeLimit": true,
            "module": "commonjs",
            "allowJs": true,
            "outDir": "out"
          },
          "exclude": [
            "node_modules",
            "wwwroot",
            "out"
          ],
          "compileOnSave": true,
          "typeAcquisition": {
            "enable": true
          }
        }
 

Anyway, this review is about my XPS 13, not the poor design decisions of the Visual Studio 2017 development team. I mention these issues with VS2017 vs VS2015 purely to note how hard it is to assess new hardware if running new software too. Sometimes, it’s not the hardware that's to blame for any failings observed. Overall, like-for-like, my XPS 13 performs better than my old Satellite Pro + SATA 3 Samsung SSD. Even though that machine was no slouch. I’m glad I bought it, and will continue to use it as my main development laptop.

Battery Life

In terms of battery life, the XPS 13 is a world away from any laptop I’ve owned before. Realistically, I get about 10 hours out of it if I’m just browsing the internet, or watching videos. As noted, I haven’t used it for actual development in anger yet. But going by the way the fan kicks when I build VS solutions, I’d suspect that I’d get around 4-5 hours max out of it at full throttle, possibly less. All previous laptops I’ve used have only got around 1-1.5 hours on battery, even if I were only browsing. So, whilst I have to be careful this doesn’t make me sit up too long at night. It is a huge improvement. That battery life is the main reason I bought the XPS 13 over its big brother, the XPS 15. Every time I’ve bought a laptop in the past 10 years, my ‘sensible’ head has kicked in and coaxed me to go for raw power over portability and battery life. With this machine, I don’t need to compromise. It provides both ultra-portability, and processing power in one package. Whilst no doubt the latest generation XPS 15 probably could out-perform this model in sheer processing time. You can’t argue with sub-5 second builds in VS2015, combined with a full day’s battery life for commuting or using in the evening for lighter tasks. 

Other features

The XPS 13 has two features that I particularly like. Firstly, it has a nice, carbon fibre, rubberised keyboard surface. The keys themselves are pretty tactile, chicklet-style. As a touch typist, I find it suits me very well. But the palm rest is rubberised, which makes the keyboard pleasant to use if the laptop is cold. Had Dell opted for Aluminium all round, I think that would have made for some pretty cold hands when typing a quick email first thing in the morning. Or when transferring the laptop from a cold car boot to a warm office.

Secondly, the keyboard is well-lit. With differing levels of white lighting available. Including "off." In a dark room, that backlighting makes positioning your hands far easier. Also, the keyboard light only comes on when you type; so it's not distracting if you generally want a keyboard light, but also don't want to be distracted by same when watching a video. 

Minor Quibbles

My old Inspiron and new XPS 13 both have one design feature that I find annoying. Namely, there is a battery charging light right on the front of the machine. And it can't be disabled. It goes off when the battery is fully charged, but it'd have been nice to be able to switch it off electively. My old Inspiron battery has reached a stage where it doesn't hold a charge any more; it's therefore even more annoying, as it flashes orange to warn that the battery needs replaced. My new XPS 13 is too new to be able to tell if it does the same thing, though my understanding is that it will when the battery is too old to charge any more. It'd be nice not to have to use black electrical tape to switch this feature "off." 

Secondly, the webcam is badly-placed. I don't use it anyway, so it's not an issue for me. But if you do a lot of web conferencing, be aware that it is placed on the bottom-left of the screen. This is because the 13.3 inch display takes up nearly all of the height and width available. But it means that any Webex you have will involve participants looking right up your nose. Not pleasant.

Lastly, the hinge on the lid is very strong. I personally like this, as it means the screen doesn't move when you use the touchscreen. But some people have complained about having to use a whole two hands instead of one to open the lid. The main issue I do have with the lid is that it doubles as a very effective set of pliers if you placed your fingers on the hinge whilst opening. (Just as well you need both hands to open it then really, isn't it?)

Other options

Other options I considered included the Razer Blade Stealth. (In the end, I decided the lack of a 8th gen processor, combined with the fact I could only get the “gamer” version with a green logo and rainbow-coloured keyboard lighting were deal breakers for me. Plus, support is US-based whilst I’m in the UK.) I also liked the HP Spectre very much indeed – it seems a very nice machine. Just not quite as capable as the XPS 13 in terms of power or battery life. Beautiful, though.

Thursday, 17 August 2017

Product Review - Wago Connectors

I was re-wiring my garage recently, when I got fed up screwing wires into choc blocks. I figured someone must have come up with a better way of connecting wires together, got Googling, and found these guys - Wago Connectors:




Wago make lots of different kinds of connectors, some of which are re-usable. Those are the ones I went for. For historical reasons, there are two kinds of re-usable connectors. The 222s:







And newer 221s:





Both kinds come in 2-way, 3-way and 5-way forms. (For connecting the respective number of wires together.) The 221s are slightly more expensive, and take up about 40% less space. But they do the same job of letting you join wires together. Potentially wires of different gauges (such as when connecting twin and earth solid-core to multi-core flex cable used by most appliances in the UK.)

I can highly-recommend these useful little guys. They sped up the job considerably, and have proven very reliable in use.

I don’t have a fidget spinner, so I kept a few of these connectors on my desk over the next month or so to footer with whilst coding. Opening and closing the levers repeatedly. From that unscientific "test", I can say that the 222s are quite a bit more robust than the 221s. After a few hundred “opening and closing” operations on their levers, the more expensive 221 wouldn’t stay open fully any more. It is still usable, and I could hold it open whilst inserting a wire if I really needed to. But then it becomes just as fiddly to use as a choc block. So if you're going to be installing/uninstalling and re-building a lot, I'd say go for the 222s. If weight is a primary concern (e.g., building a drone) then use the 221s or just solder and accept that greater build time and reduced ability to dis-assemble is the price you pay for less weight.

On the upside, the levers on the 221s are considerably easier to open. Though neither is particularly difficult. There is a dedicated tool for opening them that costs over £100, but really it's a ridiculously over-engineered solution that I can't image anybody needing. Even people that are installing these all day would have no difficulty opening them with just their fingers.


The first time you open one of the 222s, you’ll be unsure if it’s broken. Because its jaws initially open to about half way quite easily, then you need to use substantially more force to open the lever all the way. It can also give you a nasty “mouse trap” snap on your fingers if you’re not careful whilst you close the lever to clamp your wire in place.





Over all, I think I’ll be using the cheaper 222s where space isn’t a consideration. To that end, I bought a box of the 3-way and 2-way 222s, and a box of the 5-way 221s. (Since when I need to connect 5 wires together, that’s usually when space is tightest.)


With regard to their ratings, I'm honestly not quite sure what amperage / voltage they can take. The problem is there are two ratings on each model. (Presumably to satisfy more than one set of tests for different markets.) 

The 222s are rated at "20A 300V" on one side and "600V" on the other side. The 221s have labels showing they are variously rated at "450V 32A" or "20A 300V". Confused?, you will be? Here is a YouTube video of someone actually burning the things out to test their limits

In practical use, I've had no problems having about 10 of these things in the same switch. I've also used three in series on the same circuit.

2-way 222 connectors: £13.23 for a pack of 50 @ Screwfix 

3-way 222 connectors: £15.13 for a pack of 50 @ Screwfix

5-way 221 connectors: £13.80 for a pack of 25 @ Screwfix 



Addendum: Thelma quite enjoyed these little devices too. She reports that the 222s, being rounder, are 50% “more chasy” than the “boring” more square 221s. They therefore fly faster when she bats them with her paws to simulate spontaneous movement.