19 ms·
Test your product on a crappy laptop
- mikeytown2 5y agoRaspberry pi works well for this
- LeoPanthera 5y agoI second this! A Raspberry Pi 400 is often my primary web browsing device, while my workstation is busy with other things. There's no reason why a website should overwhelm it.
- jimmont 5y agothis, and old mobile phones/tables
- bluedino 5y agoMicrosoft was famous for testing the Mac version of Office on base model 60MHz PowerPC machines
- cube00 5y agoApparently they had whole labs full of banks of machines in many common configurations to test their software. However now the "insiders" get the privilege of doing it for them for free under the guise of shaping the product direction. Windows Updates are drip fed out to classes of machine so they can limit the damage when they hit a class that inevitably fails because it was never tested before rolling out to production on that hardware. I appreciate they can never test every configuration but based on what they used to do it's clear they identified a need for this kind of testing in the past so what's changed? Why don't they need to do this testing anymore? Why make your users do it for you, for free, no less.
- seoaeu 5y ago> Why make your users do it for you, for free, no less. I think you answered your own question.
- Dagger2 5y agoThey did the same for Windows 95: developers were given 386s with 4 MB of RAM to test on, because that was the minimum requirement for Windows 95. And in the end, it ran -- just about -- on those specs.
- kiwijamo 5y agoDid later editions (e.g. 95b) still run on the 386? I remember running 95b on a Pentium 166 MMX with 32MB of RAM and even that was a challenge at times!
- p_l 5y agoOSR2 ran pretty nice on 486 DX2 with 16MB of RAM
- kazen44 5y agothe same with Dave cutler, the lead on windows NT, making sure everyone dogfooded NT as soon as possible.
- grishka 5y agoI often test my Android apps on a nexus 5. Though its battery is so bad it sometimes shuts off while booting while plugged in, I do wonder if they're still selling batteries for this thing.
- scblock 5y ago"It’s also no secret that the average size of a website is huge, and it’s only going to get larger." This attitude seems common, that websites are just going to be fat and get fatter. That's a lie. Not if you, as a web developer, stop the bloat. The power is in your hands, you just need to use it. No, you don't need that 8 MB hero image. No, you don't need that bloated framework. No, you don't need those 37 tracking libraries. No, you don't need a "Read More" button hiding most of the content. No, you don't need dynamically loaded clickbait at the bottom of the page. No, you don't need an autoplaying video. No, you don't need load a script to inject text into a copy operation. No, you don't need 87 cookies. No you don't need to load random unvetted code from a third party advertiser. No, you don't need the page text to fade in on scroll. No, you don't need any of that. In case you forgot, https://idlewords.com/talks/website_obesity.htm https://idlewords.com/talks/website_obesity.htm
- jahewson 5y agoBut… marketing put the 8MB hero image there using their CMS. The other marketing people put the 37 trackers there using Google Tag Manager. There’s also mystery JS that slows down everything and breaks random parts of our app - that’s your Chrome extensions :)
- nine_k 5y agoThe technical worker who codes up the web site and its backend does have a say, but not a lot of it. Product and sales people have a stronger say, because they optimize for the money the web site produces. Explaining them how much worse the bloat makes the site's experience for the user, showing how many pages are left partially loaded because the user did not have the patience and navigated away, how the competitor's site loads faster, may help convince them to keep the experience reasonably slim.
- bitwize 5y agoThis. Asking for web sites that don't have 27 trackers, enormous hero images, a full copy of framework of the week, etc. is like asking for native games under Linux: the money isn't there to justify the added hassle and support costs.
- eatonphil 5y agoAny recommendations for a solid, representative crappy laptop? $100 xSomething Thinkpad off Ebay? Or is there something more representative of today.
- reaperducer 5y agoJust see what's on offer at your local thrift shop. I don't recommend garage sales, however. People tend to overvalue their electronics. I tried to buy a radio that was worth maybe $20 from some guy. He wouldn't part with it for less than $150 because it reminded him of his father. That's nice, but I'm not paying $130 for your memories.
- NullPrefix 5y agoCould it be that he was forced to sell it?
- reaperducer 5y agoMaybe. His wife was standing right there. But I'm still not going to pay $130 for sentimentality that I cannot share.
- NullPrefix 5y agoYou were not supposed to buy it, that was the point.
- Spooky23 5y agoTry the shittiest laptop at Walmart. Like an HP stream. Remember the low res 1366x768 screen.
- yjftsjthsd-h 5y ago> Remember the low res 1366x768 screen. The low... um. One of us is in a bubble. I'm typing this on a laptop with a 1280x800 screen and it's perfectly fine. Like, not super spacious but I code and browse the web on this box and I don't have any problems. (To be clear, it might well be me in the bubble; this laptop is over a decade old)
- kome 5y agoI believe that most of the "web developers" have absolutely no idea of how to build a website using bare html+css. Actually, I worked with "web developers" that are basically not touching code much, but using all sorts of tools and framework - without fully understand what they are doing. And that's also why website looks like each other more and more. And that's the silent majority of the industry.
- bdcravens 5y agoAs I suggested in my other comment, how many backend developers don't know SQL? I would also suggest that highly skilled cabinet installers aren't always master carpenters.
- LAC-Tech 5y ago> As I suggested in my other comment, how many backend developers don't know SQL? I mean that isn't acceptable to me either.
- Gigachad 5y agoThere is no way to be a modern web developer without knowing everything you need for raw html/css unless you are talking about square space or basic Wordpress work. Things like react are purely extra knowledge needed over the top of the basic website building blocks.
- unionpivo 5y agook, html maybe, because html if anything is easier than the one in 90/00s (no more tables, or divs everywhere) But in my experience 80% react developers could not layout a page with raw css. I am not even talking anything "fancy" like transitions or animations. They just import libs and frameworks and customize a bit.
- tonyedgecombe 5y agoBack when I was consulting pretty much every customer I visited had people who weren't proficient with the technology they used. The corporate world is particularly prone to this. You would work with a team of ten and find two people were doing the bulk of the work. I doubt this has changed since then.
- londons_explore 5y agoThere is a hidden feature in Chrome Devtools to apply a CPU slowdown... Simply head to Devtools > Performance tab > Gear icon > CPU > 6x slowdown. That isn't a perfect representation of an old laptop (doesn't throttle GPU operations or trigger low memory behaviours), but it's a good start. As a bonus, it makes your fans spin up wildly whenever loading a page!
- paulryanrogers 5y agoNot only CPU but slow networks and mobile screen sizes too. These are all very helpful for quick sanity checks and reproducing races.
- dmitriid 5y agoLighthouse also emulates slow-ish web on a mobile device. Though I would take its results with a grain of salt: it can show near-perfect green scores for a website that takes 3 seconds to render
- agumonkey 5y agosimilarly i often let throttling on.. very nice way to tame dopamine rush :)
- omgitsabird 5y agoUnless you mean that the menu is hidden behind the gear icon, calling it a hidden feature is a stretch. https://developer.chrome.com/docs/devtools/device-mode/#cpu https://developer.chrome.com/docs/devtools/device-mode/#cpu
- londons_explore 5y agoSufficiently deep in menus that I suspect most people here on HN would consider themselves familiar with devtools, yet wouldn't have been aware of this option.
- deleted 5y ago
- deleted 5y ago[deleted]
- etxm 5y agoTest it?! I develop it on a crappy laptop!
- 0xy 5y agoGmail has nearly 50mb of JavaScript that thrashes I/O so hard that clicking the search bar and typing too soon will cause it to skip letters (because the search bar is probably some Angular-powered abomination). It is and was a regression from the previous design which was fast even on 3G connections. It's driven by Google engineers running their bloatware on i9 MBPs with 64gb of RAM. Oh Gmail is slow? Have you tried not being poor?
- bdcravens 5y agoThey do still support the basic HTML version: https://mail.google.com/mail/u/0/h/ https://mail.google.com/mail/u/0/h/
- quelltext 5y agoIs that really the previous design, though? I remember being presented with this button before and ended up on an extremely bare bones version of Gmail (like something built for 2G feature phone browsers) that didn't have support for changing mail settings, etc.
- Narishma 5y agoThey seem to have disabled the option to make that the default view. Or rather, the option is still there but it doesn't do anything, always opening the bloated interface.
- angularbot77 5y agoHey now you can make plenty fast Angular apps, there should never be a case where you skip letters, it's all about how you use the tools available. There are dozens of barebones websites that recursively SELECT 1 row at a time from a remote database and that is just as painful.
- tjr225 5y agoThere’s a similar sentiment in the music/audio mastering world; test your mix on crappy speakers.
- simonw 5y agoIt's not just performance here: colour grading is really important too. Many years ago I had a fascinating incident with a client. We were building a custom skin for our product for them, and they had quite a striking brand identity that we tried to match. When we showed them what we had built they complained that it was illegible. Eventually, after visiting their office, we found that they were all working on cheap Windows laptops attached to horribly configured monitors - and our site really was illegible. We had done our design work on an iMac!
- kingcharles 5y agoIndeed. Buy a crappy 15 year old LCD TV with HDMI and hook it up. Most of the really cheap Chinese models have terrible gamma that means half the colors look the same.
- namibj 5y agoI highly recommend setting (non-HDR) screens to sRGB color mode or at least gamma, to have at least decent color reproduction.
- kingcharles 5y agoYes, do this if you want to actually use the screen properly. But do not do this if you want to test how awful your content looks on other people's setups.
- Orphis 5y agoAt the beginning of the pandemic, my team worked on optimizations as priority number 1 as we got a lot of new users with terrible configurations who wanted to do a lot more that what ever intended for that same hardware. I managed to find a crappy laptop to do some testing and work on optimizations, and it wasn't pretty. No development tool would work on it. My recommendation is thus: aim low, but not the lowest. You'll still be able to measure impact of your changes, and you'll be able to collect some data and other measurements about what is slow.
- donkeybeer 5y agoDev laptop need not be your test laptop. You should still test on that machine even if you can't develop on it. And I have a feeling this test also indicates a lack of optimization in the dev tools as well.
- ehsankia 5y agoEven more than crappy laptop, please please test your application on bad/degraded networks. So many apps completely glitch and breakdown in bad network environments.
- deleted 5y ago[deleted]
- nine_k 5y agoI've used toxiproxy [1] to imitate various network problems (slowness, lost packets, dropping connections, etc). It works pretty well, and is even amenable to running during functional / integration tests. [1]: https://github.com/shopify/toxiproxy https://github.com/shopify/toxiproxy
- faeyanpiraat 5y agoThis looks amazing
- paxys 5y agoIt's frustrating that this is so easy to do in one click using the browser's in-built developer tools, and yet no dev team spends their time on it (or even know that it exists).
- speedgoose 5y agoThe built-in tools are a good start but they don't simulate most of network issues and don't do anything about existing websocket connections. On windows I used clumsy that was much more realistic. On some tablets, I used my microwave oven or my feets to walk away from the Wi-Fi.
- LeonM 5y agoThis. 2 rules: - Always indicate that your application is performing a network action (like showing a spinner, disable forms/buttons while submitting, etc) - Always catch errors (including timeouts) and give some form of feedback to the user when something went wrong. Try letting your local development backend return a 500, timeout or a 4xx error every now and then, and check if your frontend handles this in a graceful manner. It should at least give some feedback to the user that the operation failed. You can emulate a slow internet connection in chrome devtools, though I find the experience not accurate. You can also just add a sleep() call somewhere in your local backend. Maybe inject a sleep() into your acceptance environment, and let the test team work through the scenarios with that sleep() call in place. I've seen so many frontends that don't catch errors, and just show the spinner indefinitely. Or worse, show nothing at all. This is extremely confusing to less technical people.
- everyone 5y agoHN is so full of rich silicon valley assholes, they've never even had to make do with a cheap laptop. They need an article like this to remind them how the proles live.
- l0b0 5y agoThere are three kinds of web developers: - Those who don't care about performance, as long as it loads within a few seconds on their own beefed up system on the LAN. This article is for them, and we can only hope they will listen. - Those who care about performance, and work for people who care. They are already doing great work (or are about to), producing those rare low-friction, high-speed, content-is-king sites which we all love. - Those who care about performance, but work for people who don't. Since the developer doesn't get to decide what to work on, they can either get cracking on feature #357, work on performance on the sly at the risk of losing their job, or quit. Not much of a choice, really, unless you have some other-worldly lax schedule and minimal oversight. And don't forget, if you are allowed to work on performance the burden is on you to prove how much faster things are with your changes (which can be really hard to show conclusively) and that your N days is worth more than Bob working N days on that sexy ticket #357. Substitute "security", "UX", or anything else you want for "performance", it works the same way.
- taeric 5y agoExplain Gmail.
- Rygian 5y agoGroup 3, clearly. With a bit of the "minimal oversight" thing.
- quelltext 5y agoWhat do you mean?
- bowmessage 5y agoThe search box is that way ^
- zagrebian 5y agoThanks for reminding me why I use HTML Gmail instead. https://mail.google.com/mail/u/0/h/ https://mail.google.com/mail/u/0/h/
- renewiltord 5y agoI will if I want to target that kind of user. Personally I much prefer targeting people who have nice laptops. Poor people are frequently low LTV customers unless you’re getting paid by someone else (say the government) and even in that case you only have to please the buyer not the user. So maybe if I was building like payday loans or something.
- everyone 5y agoYou're obviously being facetious, but probably most HN users really do feel this way.
- renewiltord 5y agoHaha, I am glad I entertained but no irony was intended. I understand why you believed I was being facetious, though.
- iveqy 5y agoI know many successful and high paying individuals who just doesn't care or understand technology enough to have decent hardware. Even if you buy premium hardware, it will get old and slow after a decade.
- bdcravens 5y agoB2B apps whose customers may be small businesses may be surprised at just how low-grade some of their hardware is. For example, a small mail and parcel store (many of my employer's customers) Additionally, apps designed to be used in the field by top-tier customers often fail basic requirements. (Funny how many apps and sites fall apart on my iPhone 12 Pro in places where the connection drops down to LTE)
- r_hoods_ghost 5y agoBig businesses too. In job 2 my employer provides services to pharma, medical and biosciences corps and our users are almost invariably using terrible hardware despite being senior scientists heading up labs.
- killingtime74 5y agoI just put the throttling on in the network tab of Firefox/chrome developer tools. Plenty realistic
- paxys 5y agoThat throttles the internet bandwidth, not CPU, memory, disk reads/writes or any other constraints that lower-priced hardware will have.
- killingtime74 5y agoIt’s true but as an approximation it’s pretty good no?
- rovr138 5y agoCPU cores, cpu frequency, available memory, disk read/write speed all affect performance too. CPU cores and available memory can be limited via a VM. CPU frequency, and disk speeds can't. 5200RPM disk vs SSD/NVME is a HUGE difference. If it's swapping often on a 5200RPM, that's a significant slowdown.
- starburst 5y agoIt's not only about poor network connection but also poor CPU / RAM, having a website visually lag / taking multiple frames to render is not a great experience and having a top of the line desktop can make you easily not aware of those issue. There is something very pleasing about everything running smoothly without any hiccups.
- kingcharles 5y agoPlease. I beg you to buy a 2GB of transfer cell plan from a cheap carrier and try your sites via tethering. If you can only load your SPA a couple of times before your line gets disconnected, you've fucked up your design. I had plans with 35GB of transfer and the modern web meant I was having to restart my plan every single week. Some of us live in Internet deserts where there is no hope of getting a wired connection (downtown Chicago in my case).
- avereveard 5y agoOr, do not endorse people's bad buying patterns. I do care about crappy network and load times. But there's some laptop that have worse performances than three years old tablets, and there seems to be no end to what scummy companies sell at low end. At some point down the crappy pit, there's a line where it's no longer my problem.
- grishka 5y agoIt's not that hard to write optimized software if you know what you're doing. Problem is, developers these days routinely prioritize their own experience over their user's. They would add a huge library just to use one function from it. They would put multiple abstraction layers they don't understand on top of their platform just so their code is "beautiful". They would use their platform in a suboptimal way (for example, moving a DOM element using position instead of transform). And so on. I mean, I know a guy who recently got into frontend development with react. I did the backend for an app he was building. I had to explain him what an XMLHttpRequest is so he could send me one. It just blows my mind that there are people who legit write code with some framework but don't know the basics of the language they're writing in and/or the platform the whole thing runs on.
- avereveard 5y agoWhat condescending bullshit.
- grishka 5y agoWhat do you even mean? A website has no business to have minimum system requirements. It's a hypertext document with some optional macros here and there.
- avereveard 5y agoAbsolutely trivial to demonstrate to be false. I can use websites to videoconferencing. Streaming considered video and audio comes with non trivial loads. I can use websites to compress images, to compute tabulated data on various Excel clones, remotely control devices or play games. This isn't 1995 and we're way past indulging user lazy choices which have us a decade of internet explorer nightmares. Web is much more than that, and one need to know where to draw the line where their products minimum requirement lies.
- cable2600 5y agoI use Cheap Acers for $150 they seem to run Windows 10 slow enough to be a craptop. They also run Linux just fine because Linux has less of an overhead. In Windows 10, Acer laptops have a huge CPU time working because it struggles to keep up with the main OS.
- hu3 5y agoI understand you started with "cheap" but don't generalize brands like this: > In Windows 10, Acer laptops have a huge CPU time working because it struggles to keep up with the main OS. My coleague has an Acer laptop with i9 processor, RTX 3080 and 64GB RAM running on Raid NVMEs. It's screamingly fast.
- kingcharles 5y agoI have one I bought new for $300 on Amazon in the summer. It's my main Visual Studio development PC. I have it hooked up with a second monitor. Honestly, it runs everything perfectly under Windows 10. The only upgrade I performed was to add some extra RAM.
- jimnotgym 5y agoI would substitute the term 'Netbook'. Several brands make them along with Acer
- animal_spirits 5y ago> British soldiers in World War I were equipped with a Brodie helmet, a steel hat designed to protect its wearer from overhead blasts and shrapnel while conducting trench warfare. After its deployment, field hospitals saw an uptick in soldiers with severe head injuries. > Because of the rise in injuries, British command considered going back to the drawing board with the helmet’s design. Fortunately, a statistician pointed out that the dramatic rise in hospital cases was because people were surviving injuries that previously would have killed them—before the introduction of steel the British Army used felt or leather as headwear material. I've seen this same story except with warplanes during the War. Story goes that an allied air force tried to improve the percentage of planes that would return from a bombing raid, so they inspected returning planes, found the places where they had holes in them and added extra layers of steel to those areas for the next bomb run; but this had no improvement on the percentage of planes that returned. That is until a "statistician" realized that all of the places on the plane that they found holes in were actually parts of the plane that could get hit and survive and return. They then started adding extra steel to the parts of the planes they found no holes or damage assuming that if those parts were hit the plane would get shot down and not return. After this change they started seeing a dramatic increase in the amount of planes returning from a raid. Does anyone know the true source of these stories? Regardless, it really opened my eyes to how changing your perspective on the cause of the problem can help find the best solution, and to this day I still think of this story when solving a problem.
- mwcremer 5y agoYou are thinking of Abraham Wald: https://en.wikipedia.org/wiki/Abraham_Wald https://en.wikipedia.org/wiki/Abraham_Wald
- Sniffnoy 5y agoNote that the Wald story may not have actually happened: http://www.ams.org/publicoutreach/feature-column/fc-2016-06 http://www.ams.org/publicoutreach/feature-column/fc-2016-06 (But yes, Abraham Wald is the statistician that the story is about.)
- rock_artist 5y ago> You can run Linux from a Windows subsystem to run most development tooling. To be honest, this feels like the author never used "craptop". WSL even with quad-core hasewell laptop and 8GB is pushing it. It's better to RDP / develop on one machine and run on another. Having said that, It's important to test on low speced always. Even not for website (we test our cpp code on some 2009 machines)
- Narishma 5y agoI think it says more about your tooling than the hardware if it can't run well on 4 cores and 8 GB of RAM.
- watersb 5y agoOh God yes. Back in the 20th Century, I was on a team for a major web browser. They were attempting to extend web browser technologies to crawl and cache web sites. The idea was to enable complex web experiences in a time when Internet service was analog telephone, 9600 baud. We worked for months on that. At the office. In Silicon Valley. On $6000 Compaq computers. When I returned home via my two-hour commute, I would try it: dial up and crawl, overnight, and surf around on the train to work the next day. I was the only person on the team to actually do this. I could understand that; after a 12-hour day of intense times at the office, the last thing most of us wanted was more of it, as soon as we got home. A year later, I was at an ad agency. Big clients, national brands. Everyone there used the very latest Macintosh machines. Those could be like $8000 each. Beautiful work in Photoshop, then stuffed into a web browser. They had a room with a few PCs, but nobody went in there.
- alkot89 5y agoI'm sorry, but I don't understand the point you are trying to make here either with regards to the original topic or even how the second part of your story relates to the first.
- tommek4077 5y agoDevs are lazy and wont give up there luxury macs, even for testing.
- alkot89 5y agoThat's like 10% of the comment - I feel like some point was trying to be made with the dialup caching product but it went over my head. Also back then, Macs weren't so much a luxury like they are today (this is pre Jobs) -- they were just defacto standard in the creative fields. DTP and Photoshop were strictly better on the Mac up until about that point and it would be a number of years for PCs to erode the entrenched Apple dominance in that field. Much like UNIX workstations still had a lock on CAD/CAM/engineering in those days that was rapidly eroding to NT PCs. $8000 was the price for a well-equipped workstation whether it was Wintel, Apple, or UNIX (well a bit more for those). As alluded, the big issue with Internet publishing was taking into account a 56K dialup vs a corporate T1 rather than hardware differences.
- nirui 5y agoHowever, there maybe another darkside of the story. Almost a decades back I talked a game dev, asking him why the game that they released demands such high hardware requirements. The two reasons that he offered was: 1) It costs money to produce & maintain content such as Level of Detail assets to enable support for low end devices, and 2) People cannot afford good computer usually also cannot afford to pay for the game. I think it's also somewhat fitting in this case: the industry only focuses on making money out of the people who can or potentially can afford the service, and left out those who can't. The user-end requirement is just an implicit barrier that allows companies to generate rainbow farts. No, I'm not criticizing those companies that actually employed such dark patterns. After all, everyone wants money. However, these kind of practice can be costly as well in the form of 1) bad UX for paying users, and 2) higher cost of bandwidth (for both the user and the company).
- urthor 5y agoI imagine the problem with game development is that, for 99.95% of the game development cycle, you are creating only internal builds for fellow developers on workstations. And this is game development, the industry famous for over-scoping everything because it's a winner take all economy. Followed by death-marches to implement said over-scopes. Doing anything special for quartile 1 of the standard distribution goes out the window. Realistically I just think this pattern is true of every domain. 95% of software is made up of throwaway prototypes, where thoroughly thought out engineering isn't necessary because the business case demands minimum viable product for very good reasons.
- meheleventyone 5y agoThen Roblox and Minecraft came along and showed everyone there was a large audience of kids on crap PCs and Chomebooks who will also play games and have parents who will spend for them.
- littlehugie 5y agoThis. My kids Play minecraft on the Amazon Kids tablets. They startet with a older Version with only 1.5GB of RAM and the game kind of worked good enough for them to enjoy it. It worked for many years and only had Problems with large Outdoor areas. Now they use the newer 3GB kids Version and it works really well. I am very happy to not needing to buy them 400€ tablets for this game. (Btw, i developed medical dicom viewer for large CT and MRI data, on a 10yrs old dell Laptop. The viewer was always fast on customer machines. If it would not work on my machine, i tunded the Software until it does ;) )
- beebeepka 5y agoI my experience, those who don't care about performance almost always happen to be bad developers. Interviewed with plenty of those. I've worked with machines so underpowered you can notice execution time difference between minified and non-minified code. And where CSS animations are considerably slower than GIFs. Oh yeah. Right now I am with people who are pretty good at architecture but kind of suck at the pieces that power their designs. It's an ego problem. Big one at that
- watersb 5y agoThere are lots of good options for sub-$200 laptops at Wal Mart right now. ChromeBooks or little Windows machines. Every web dev should use one. I am fascinated by the low end options, you learn a lot about a system when it's pushed to its limits. Or maybe you learn even more about your pain threshold... I've heard it said that it's more difficult to make a $10,000 car than it is to make a $1,000,000 car. I don't recall the source, via Horace Dedieu maybe. My first job out of college was at a spaceship company. One of the most senior engineers told me of the footrest he had designed for early 747 airliners. First Class. He considered it his greatest work. That foot stool was quite literally more difficult than rocket science.
- DennisAleynikov 5y agoI have been fascinated by this question ever since seeing an all apple school employ macbooks as a minimum bar. using Samsung dex, and now budget arm chromebooks I have found most websites do work on even mediatek and qualcomm chips, and design my own experiences to work there accordingly. The lenovo Duet is an incredible device, its sad how poorly optimized some of the heavier websites are and you can't do anything about it. I find the bias towards powerful desktops as the only place any apps are written and tested ridiculous and something we can work to correct long term with progressive web.
- kiwijamo 5y agoI work in Education and I have to admit things are just easier in the Apple ecosystem. Things like AirPlay and AirDrop etc are lifesavers for many of the less tech-inclined staff in schools who can actually manage to use these (and other) tools. It's not just about websites and apps--there are accessible QOL features macOS offers that simply aren't present or are packaged up in a non-obvious way in ChromeOS or Windows.
- LeonM 5y ago> I've heard it said that it's more difficult to make a $10,000 car than it is to make a $1,000,000 car. It is, but probably for a different reason than you'd think. In automotive, the difficulty is not designing the car, but the facility to mass produce them. Elon found out the hard way. In his words: "it's trivial to design the machine, but it's hard to design the machine, that builds the machine". He is currently facing the same challenge with the production of the raptor engines for starship. A million dollar low volume "hand made" car can be build by a small team, with relatively few resources. Operating a factory that produces thousands of affordable cars per day takes tens of thousands of people through the entire supply chain.
- zuhayeer 5y agoI actually find Chrome's developer tools quite handy for this: for example, emulating slow Internet connections, checking your Lighthouse score, simulating different geographies, being able to adjust between many responsive device dimensions etc. Super worth it to get familiar with the whole host of tools that come installed with your browser.
- r_hoods_ghost 5y agoIt's not just developers, and it's not just about speed, it's also designers / UX bods who need to heed this. My decently powered work laptop from job 1 has a fairly rubbish screen, which means that a lot of the subtle hover effects, 1 pixel light grey on lighter grey divisions and skinny fonts either aren't visible or are incredibly difficult to see. A good trick if you're working on a large, hi res screen is to have a small and crappy second monitor hooked up if you're doing any UI work so you can see what it will actually look like to a lot of your users.
- scns 5y agoThis is done quite often in audio production. The Auratones mimicking real world consumer equipment, ie mono, low bass and a rolloff at the top, had a revival because of that. Another company offers speakers the correlate to the ones in TVs, for audio engineers in the movie industry. The body is made from the same material as TVs are and they have no parallel walls.
- kitsunesoba 5y agoWill echo this. It’s astounding how bad the worst laptop screens are, and how many machines that you’d think have decent screens don’t (like many Thinkpad models, which used to and still might by default come with some of the worst TN panels I’ve ever seen). I once had to do some photoshop work on one such machine and it was nigh unusable because many details weren’t or were only barely visible. So while I wouldn’t recommend making a screen like that one’s primary screen, yes absolutely test on it periodically.
- kiririn 5y agoThis is one area that really grinds my gears: the trend in UI design to reduce contrast because full black on full white text is too contrasty. Whatever minor improvement in readability on their quality 3000:1 contrast ratio monitor pales in comparison to the loss in readability on a 200:1 trash TN display. Even on a good display at low brightness low contrast design choices can be infuriating (e.g. phone at min brightness in pitch dark room)
- 5y ago
- 1vuio0pswjnm7 5y agoTo those who test their work on crappy laptops, Thank you. Sincerely, Craptop user All work I do is tested on crappy low-powered computer because that is what I use to do work. If it is not fast on these underpowered computers, then it is not usable (for me). That means on anything better than a craptop, generally, performance can only improve. Similar principle applies with shell scripts. I prefer to use the ("crappy") scripting shell as the interactive shell. That means scripts generally run fast under all conditions and I never have to worry about scripts not working due to use of interactive shell, e.g., Bash, features. Target the lowest common denominator. That's how I work. No overpowereed workstation with multiple monitors, or expensive "developer" laptop.
- lowwave 5y agoMost people in large cities in US and European countries are not aware that many people don't connect to the internet regularly nor do they use fast laptops. Always make software that works without internet or fast process. That way if it works on crapy laptop and slow connection or no connection, to me those are only software I'll use or buy.
- kazen44 5y agoan old colleague of mine work on a project bringing internet to rural communities in east Africa. his reasoning about network usability were always useful, especially considering jitter and latency. also, it is surprising how usuable some internet connectivity is compared to none at all. having a shitty ADSL based setup is far better then no internet at all.
- grouphugs 5y agodon't be a part of shitty corporations that produce garbage and unsustainability
- veermanhas 5y ago> https://twitter.com/davatron5000/status/1429866381831544836?ref_src=twsrc%5Etfw%7Ctwcamp%5Etweetembed%7Ctwterm%5E1429866381831544836%7Ctwgr%5E%7Ctwcon%5Es1_&ref_url=https%3A%2F%2Fcss-tricks.com%2Ftest-your-product-on-a-crappy-laptop%2F https://twitter.com/davatron5000/status/1429866381831544836?... As a business having to create ideal scenarios is difficult. Mostly, I would focus on my major target audience which pays me the most and add the optimization to roadmap when I want to experiment and test the said market for my product/service. Running a business is complicated as is. For SaaS businesses focussing on tech companies wouldn't be an issue. Example, using Figma requires a good machine a score on Speedometer of 80 should suffice as we go below than that things aren't so great. But mostly tech companies using Figma would have a good machine. Yes, there would be an accessibility issue for new comers and college goers who cannot use Figma due to a crappy laptop but even small businesses in services like myself help them buy a new laptop for work.
- tommek4077 5y agoThe same survivor bias analogy goes for usage of Firefox and Javascript in general. "Our users dont block JS and are 99% on Chrome." Because the tech savvy users just block your surveillance stuff.
- varajelle 5y agoBut we anyway don't care about people who block our ads
- cblconfederate 5y agoI ve always wondered why all computers don't have a "slow down" setting
- phil294 5y agoThey have, kind of, it's the energy save mode. On Linux, (besides GPU) you'd set /sys/devices/system/cpu/cpu$i/cpufreq/scaling_max_freq to cpuinfo_min_freq, for all $i. I always look for minimum (idling) CPU frequency in devices before buying them, but this info is almost never available. My laptop has a min freq of 800 MHz, but I would like to go even lower, to better test low performance devices and limit energy usage. In web dev, you can simply use chrome dev tools cpu throttling though
- exikyut 5y agoThere are two ways you can go lower: the cpu cgroup, and cooling_deviceN. I'm still working on memorizing the first approach :) but it works well just about everywhere; the second is simpler but employs intel-specific hardware-level throttling which may or may not behave usefully (it may have been the cause of a couple of mystery soft hangs on an old Pentium box I have here, presumably things are less glitchy now given how frequently laptops throttle nowadays). While the cgroup approach is (like cpufreq) doable by poking around in /sys/fs/cgroup (you mkdir new directories to create cgroups), cgroup-tools makes it a tad more straightforward by making the steps less verbose. (Besides cgroup-tools, "unshare" and "nsenter" ship with util-linux and can issue the syscalls necessary to start a process in a given cgroup, which you can't do with pure bash.) The setup is always the same - you create a new "cpu" cgroup (here named "cpulimit"), then configure CFS (completely fair scheduler, I think? I thought there were multiple schedulers... maybe this only applies if using CFS? I think CFS is the default everywhere) with a period and quota. I think the period is used to derive an internal tick rate. The quota is a fraction of the period and the ratio (yay you get to do the math yourself) represents how much CPU the task gets to eat. I think the ratio applies across all the CPUs. I have no idea what happens if you bring PID-level CPU affinity into the equation. Maybe you can select which CPUs are enabled for the cgroup, and the math applies to whatever's enabled. Haven't answered any of that yet. In any case: # cgcreate -g cpu:cpulimit # cgset -r cpu.cfs_period_us=1000000 cpulimit # cgset -r cpu.cfs_quota_us=100 cpulimit A fairly straightforward demonstration: in one terminal run # cgexec -g cpu:cpulimit yes | pv -l > /dev/null while in another terminal rerun the last `cgset` with quotas of 1000, 10000, etc, and watch the output rate go up and down. (In this case 100 is a good starting value, but anything more complicated than printf(); in a loop will probably finish launching in 2023 if started with a quota of 100.) The nice thing is that the cgroup happily sits in the background until explicitly deleted (and systemd leaves everything it didn't create alone) and you can just poke at its values anytime. Network cgroups can probably do interesting fun things to traffic as well (oh yeah, network namespaces = discrete iptables/nftables per namespace). Lastly, the cooling_deviceN entries are in /sys/class/thermal, and have cur_state and max_state. YMMV; setting cur_ to max_ may well take several minutes to undo (very much the case on older systems at least) - maybe try that on a throwaway-able session. :D (Think "Task Manager (Not Responding)"...)
- normaler 5y agoI had a similar experience building a NAS on a SoC. Suddenly things like transport or at rest encryption are no longer perceived to be free but really limit your performance. First time I actually had to be concious about choosing appropriate ciphers and hashing algos and not just using defaults.
- exikyut 5y agoWhat config did you end up setting with, if you happen to have the info easily to hand? I might be able to speed up SSHing to some of the slower hardware I have here. Also, I'm very curious what SoC this was.
- normaler 5y agoIt is/was a RockPro64 with 4GB oft RAM. The biggest issue I had was with zfs native encryption using aes256-gcm per default. The SoC has AES support but with gcm the hashing function is not AES based, so i had to change to aes256-ccm to profit from the AES support. For sshd i severly limit available hmac and cipher to use chacha20 but i also force that in the client side. I will post the relevant lines tomorrow. Wireguard is also costing much more CPU performance then I am used to.
- exikyut 5y agoVery useful to know. Thanks for the reply!
- chronogram 5y agoFitting because that EOY 2021 header makes the website unbearably slow when I have the browser maximized on a 4K screen, I guess the css-tricks people should read the blogpost too.
- ggfgg 5y agoIn the sector I work in it’s probably better if you test your product on a crappy Citrix or Windows Terminal Server. They are always run by the lowest bidder. I had to sit on a call where they had 32 users on a 32Gb EC2 node with each user running ten chrome tabs open each. The CPU was rammed at 100%, the RAM at 100% and the disk IO (page file) bashing the EBS hard. The irony of this is they were RDPing into this piece of shit from their i7 laptops.
- bullen 5y agoI go one step further, all software I make is developed on Raspberry 2 (2W, JavaSE server) and 4 (7W, C/OpenGL client). That way I don't have to worry about missing any performance beat! Since energy prices are guaranteed to increase forever, I'm surprised this is not default behaviour.
- mehdix 5y agoI do it sometimes on a Pinebook Pro. It's like raspberry pi but with a solid aluminium body, a good keyboard and a good enough screen.
- kristopolous 5y agoTry it on a low end smartphone under $50 as well. (Some are under $30) Most things are painful on one of those. Be the exception
- habosa 5y agoEven if your users all use high end laptops, this is still a good idea. Making your site fast enough on a craptop will make it blazing fast and delightful for everyone else. It’s like how baseball players warm up with weighted bats.
- mrich 5y agoAlso use https://pagespeed.web.dev/ https://pagespeed.web.dev/
- pawelwentpawel 5y agoQuite interestingly while building a WebGL application I had a slightly reverse experience. While it worked surprisingly fine on some older potato laptops, the experience on Macbooks with retina screen was consistently problematic. That was due to the sheer resolution that had to be rendered per each frame. Took quite a bit of optimisation work to improve it.
- usr1106 5y agoThe point they make is more than valid. I don't like the attitude calling them craptops. A Gigabyte of memory and 10 Mbit/sec are enough to meet 99.9% of the user needs for Web browsing. If sites were implemented in a resource-aware manner of course. Instead of looking down at craptops I would look down at people introducing 4K and using many Gigabytes of memory for personal computing. Even worse making masses use it. It's irresponsible greed and short-sighted capitalism that ruins the planet.
- nottorp 5y ago> A Gigabyte of memory and 10 Mbit/sec a more than enough to meet 99.9% of the user needs for Web browsing. If sites were implemented in a resource-aware manner of course. The devs need that just for Slack sadly.
- Ekaros 5y ago10Mbit/s is actually bit high in my mind... 256kbit/s should be reasonable.
- jcelerier 5y agoMy personal rule of thumb for native development is to almost always run with -O0 and ASAN / UBSAN enabled on my dev computer. If the software is too slow that way it will be too slow on low-end machines (Pi 3) at -O3 -flto -march=native.
- kuon 5y agoI still encounter websites/UI that are laggy on my high end workstation, I cannot image how unusable those websites would be on a low end laptop. The funny thing is, most of the time those websites have no complex requirements, it's mostly news site with things likes a covid map embed, but the map has a resolution to the meter for country boundaries... A few KB image that open the interactive map on click would work just the same. And for website with heavier requirements (web app), there are two camps, those which are excellent (like onshape, that thing is amazing, or draw.io) or painfully slow to the point I had to ditch them (notion, clickup). I have a feeling that many of those laggy website could do some key optimization to make everything order of magnitude faster/lighter.
- genericacct 5y agoWould advise testing on ios 10 devices as well; many websites don't work well on an old iPad 1 for no good reason
- ngold 5y agoBonus stage. Develop your product on a crappy laptop.
- shireboy 5y agoShould be pointed out you can simulate slower internet speeds in your chrome dev tools. The others- display/ram/cpu may be easier on a craptop, but a VM could also simulate resource constraints.
- kazen44 5y agomind you that VM constraints are not to same as physical CPU contention and in some cases, this could be a bad test. (although unlikely for web developers).
- iamleppert 5y agoDon’t forget to implement real user metrics like Sentry. I add in timing checks for critical features that log out to my analytics and have a regular habit of analyzing the data. Your user base greatly influences what kind of performance optimization you should be doing. In some cases it’s worth it, but if your primary user has a fast machine, it’s generally not worth it. Reminds me of the time when I had a project manager who insisted on optimizing page load time for a heavy mapping application. And if your app is a simple shopping cart or a few forms, you probably don’t need a JavaScript frontend framework. I can’t tell you how many times I’ve removed all the unnecessary React and Vue and increased performance by at least an order of magnitude.
- danlugo92 5y agoI test all of my apps in the oldest-still-supported iPhone (currently the iPhone 6s) and optimize accordingly, carries over to Android performance (cross-platform apps) pretty nicely as well.
- wffurr 5y ago>> Powerful devices can become circumstantially slowed by multiple factors The slowest device we test with is actually a very expensive Chromebook with severe thermal throttling issues. Using our WebGL app that runs fine on a low-end Chromebook tablet will bring this expensive Chromebook to its knees within minutes. It throttles down to like 600 MHz or something. The worst part is that every tech reviewer seems to have one of these things in a drawer somewhere that they pull out for testing. The usual duty pattern of Chromebooks is very bursty, e.g. page loads, but sustained GPU usage just crushes this particular device.
- je42 5y agoI like the idea of a testing tuesday, but not sure how many companies set this up and what it actually entails?
- nkrisc 5y agoCrappy phones, too! At one of my previous jobs there was a "device lab" where they had all sorts of phones and laptops for anyone in the company to come in and use and test things on. They had various generations of iPhones and iPads, high end and low end Android phones, some Windows laptops and an old MacBook. The room was open to all and freely accessible by anyone. I saw UX, dev, QA, product managers, and even the occasional person from sales testing stuff the site in there. Every time I went in there and used an old, slow phone it reminded me to consider the person using that device for real. It's so easy to forget when you're working on your giant monitor with a super fast computer and a high end phone in your pocket.
- nicbou 5y agoWe had that too and our QA team made good use of it.
- can16358p 5y agoIf you don't have a crappy laptop in handy, you can test slow connection with Network Link Conditioner (if you have a Mac) and small screens with any browser's responsive design mode too.
- ahmetkun 5y agoChrome and Firefox (probably others too) Devtools also have network simulators to test slow connection.
- kirillzubovsky 5y ago> Wealthy individuals can, and do, use lower-power technology. Surprisingly true. I've seen quite a few fairly wealthy people use some janky Android phones. Their reasons to use them can be best summarized as personal preferences, but the fact remains.
- fortran77 5y ago> apps like virus scanners that are resource-intensive and difficult to remove. My brother bought a premium Lenovo laptop. He's not very computer literate (he's a lawyer). I cautioned him to run "Add / Remove" programs and remove the McAffee trial and turn on the built-in Windows virus scanner. I told him I'd talk him through it. Of course he didn't. A year later when I visited him (we live on opposite ends of the country / world depending on the time of year) I saw that he simply uses his computer with giant red warning popping up all the time from McAffee "WARNING YOUR COMPUTER MAY BE UNPROTECTED" and a link to buy McAffee.
- errcorrectcode 5y agoCrappy laptop with grandma who doesn't speak English natively, and with 8-year-olds.
- nunez 5y agoAbsolutely agree with this, doubly so if your target market is international
- marttt 5y agoReminds me of game designer Jason Rohrer who developed his games on an old laptop that the previous owner wanted to throw away. A link from 2010: https://usesthis.com/interviews/jason.rohrer/ https://usesthis.com/interviews/jason.rohrer/
- phreeza 5y agoOn the Google campus there are at least two wifi networks available, one regular one that provides good connectivity, and one that provides degraded connectivity simulating a 2G cellphone connection. Of course one can simulate this easily with a little effort but I found it a nice touch to make this available to everyone at the push of a button.
- rozap 5y agoIf you want to write fast software, use a slow computer.
- nicbou 5y agoThe article omitted an important aspect: craptops have crappy screens with terrible contrast. It makes some elements really hard to discern, even though they look fantastic on your development machine. The screen size can also have an impact. Developers rarely use 1366x768 monitors, or even low DPI displays. There's also internet speed. Wired internet is fast, but people use your website on crappy hotel wifi, or in the underground.
- Ekaros 5y agoThis also applies to desktops. Where contrast and brightness can be anywhere and they might even be placed in direct sunlight...
- deleted 5y ago[deleted]
- deleted 5y ago[deleted]
- tk90 5y agoOne time I was working in a co-working space with terrible internet (<5mbps). It was OK until I had to order lunch from Sweetgreens - their site was so CSS/JS heavy that I couldn't even load the page to order my salad. Made me laugh at how ridiculous it was.
- edgedetector 5y agoCrap phones too. My phone is four years old and is borderline unusable because most websites don't bother to load all the way. Most apps have trouble loading too.
- VMtest 5y agojust throw more cpu at the problem, this is not my idea btw so don't quote me I learnt it from my colleagues, they are the engineers
- Ivanjefferey 5y ago