182 points · by rbanffy · 8y ago · 81 comments
Really not trying to self-promote, but genuinely interested in laziness as a quality of great developers. I talked about it at a javascript meetup [link redacted] (Ignore the David Foster Wallace hair, the math error. Security folks don't worry that address is not valid).
I bought up lzy.io and wanted to make a lazy manifesto, but I don't think we need any more manifestos, So I just collected some examples of programmers taking laziness to new levels good and bad!
Here's a basic programming example say you're writing some front end javascript to make a call to another site's api... if you have to do it once, you probably will set the headers, and make the call right? Well if you have to do it three or more times, it pays to be lazy and write some sort of function to wrap the fetch call and automatically set the headers for you each time.
This is the laziness that I'm advocating. It's not about people that don't put effort in, it's about maximizing efficiency and taking processes approach. In many cases truly lazy people will work twice as hard now to avoid work in the future.
Great site!
Does anyone use IFTTT heavily and have a better experience? Are you able to rely on it?
Automation makes most sense in the true context where it belongs, "business." Automating a complicated e-mail marketing process with targeting, statistics and all makes sense because you need tens of thousands of instances of that process to be executed to create business value.
Except for rare idiosyncratic use cases, spending time in personal automation is more of a hobbyist and educational activity. Further, if the use case is not "that" rare, there is almost always "an app for that" anyway. Therefore, have no high expectations out of that.
With that disclaimer in mind, if you are into it, check out the open-source project Huginn [3] that can "Create agents that monitor and act on your behalf." for personal automation. Lastly, the industry standard of cloud API integration currently might be Zapier [4], which has more integrations, (business) battle-tested features compared to end-user oriented IFTTT.
----
The other aspect of it is that it may help you keep long trains of thought or keep you in the zone longer if there are fewer interruptions.
As someone with ingrown toenails that has ended up at the podiatrist when I stubbed a toe badly enough, I respectfully disagree with your analogy. :)
Why am I posting this here? I am honestly on the fence about whether this has been a good use of my time. It took longer than expected and I had to use Powershell for some of it, which was just dreadful. It was ‘for business’ but I am still not sure it was a great call. Has anyone else out there found themselves automating something like this? Was it worth it?
It's generally cheaper to automate something if you can perform it on a command line. With command history, it's easy enough to copy the commands and turn them into a script with appropriate parameterization.
It doesn't help you a great deal with Windows if you've been doing everything with GUIs. But Powershell itself is an investment that can pay off. If you can automate more everyday tasks, the pain of learning is amortized away.
I generally stick with the Unix-like shell that Cygwin gives me, and use the same commands and idioms on as I do on Linux and on Mac, on the very few occasions I use a Mac.
Learn about modern filesystems with snapshots like ZFS, and PXE. If you don't need native performance, use a VM in preference to PXE.
This is how many cluster/cloud data centers operate.
https://en.wikipedia.org/wiki/Snapshot_(computer_storage)
Unfortunately, I do need native performance. My workstation runs a 5960X, 256 GB RAM, x4 GTX 980 Tis, a stack of SSDs and I use all of it regularly.
I’m very curious about this PXE solution. I am googling now. If anyone has pointers on methods that fit my needs, I would be gracious. Thanks!
UPDATE: Reading the Wikipedia on PXE suggests to me I would be using one of the Microsoft deployment solutions. I messed with these a littleand it felt like cutting bread with a chainsaw. It sort of worked but, on top of many known bugs, it it was designed for big deployments, prioritizing hundreds of features and admin relationships that I have no need for. Maybe I’m looking at the wrong thing, but it’s pretty hard to tell.
My general goal in my scripting solution was to automate out the Windows annoyances like UAC, bloatware, registry configs, and software installation. I learned how to do that with scripting and it seems predictable even after OS updates, and I can modify it very easily. It has a few run-all directories for quick mods, and some .jsons with config data. I made an install USP that puts a script on my desktop which installs git, pulls my setup repo down and runs it, downloading files needed from my google drive... just to give a picture of what worked. It takes about the length of a lunch break to run and I’m back in action, with exception of a few licensed softwares that I chose not to automate. I’m still interested in learning better solutions.
Main issues were related to RAM amount. It is rock solid since, remaining issues are caused by ancient software running on it which cannot be bumped without reinstalling the server.
The management and ease of deployment made it totally worth it and the system is much simpler than running a "real cluster" like Kubrenetes or especially a Docker setup. Original was a chroot that got messed up on OS updates.
For someone who knows little about cloud computing or VMs but is handy with Python, where would I start? When trying to learn this stuff, I have always come to the conclusion that everybody who uses these technologies is using them for drastically different use cases than what I would use them for. So, I quickly conclude these solutions will involve forcing them to do something they were not designed for.
It doesn't likely save me tons of time, but I feel like it lowers my stress levels by letting me just sit and relax or work or read for longer periods of time uninterrupted.
When I think of personal automation api. It would be to help me with my routines
1. Shower 2. Shave 3. Brush teeth. 4. Check email 5. Plan my day 4. Make breakfast 5. Exercise 6. Sleep
Any of the above could be optimized to be excellent.
For example playing my favorite podcast automatically while I go to the bathroom would be nice. But knowing/using the best shampoo, soap, or toothpaste is also of great value. Same with what breakfast to prepare/eat. Or the gym/workout routine to follow. Technology might help a little, but some active thinking about what and how to optimize is needed.
Every person I asked used it to sync some stuff from A to B, never heard something interesting...
You're better off renting a entire VPS and creating code that polls all your data sources and create your own task pipeline.
On the other hand, anacron + python + requests + lxml (or beautifulsoup when they've improved) + other nice libraries have never failed me.
Curious to hear if anyone else is making IFTTT work for them on a daily basis. My initial experience with IFTTT was buggy, tasks would fire inconsistently, with no clear way to debug.
I tried it but never understood the value they provide for users with basic programming and scripting knowledge.
I either use the API directly, or, if not available or I only need some quick and dirty solution, resort to web browser automation tools like Kantu.
It depends on what you're doing. Most users use it as a simple, time independent trigger mechanism. IE: when they post to twitter, IFTTT picks that up and reposts to tumblr.
Most popular use cases are not time sensitive or high throughput. I once heard a fellow programmer say IFTTT was not designed for people like us. Those two caveats are why. Time sensitive use cases, like getting text messages when it's going to rain, don't work well. Neither do high throughput tasks like filtering the HN firehose.