Live data from Hacker News

Ask HN: What technologies did you learn in 2018?

news.ycombinator.com

101–110 of 620 posts

Re: Ask HN: What technologies did you learn in 2018?

#101

Real World Embedded Systems. Built a dishwasher that cleans and sets your dinner table. C++, Arduino, Electrical Engineering, and worked with a mechanical engineer on the design execution. Here is the story, skip to the bottom if you want to see the youtube video- Started this year working on a finance App, this one needed to be perfect. React Native, Laravel PHP mysql. The app is almost finished, and is worthy of a…

THaNks for the nice write-up."In the process I started automating my Electrical Engineering job in python" Care to explain more. I am an EE aswell and could some inspirations and ideas to Automate the boring stuff.

Re: Ask HN: What technologies did you learn in 2018?

#108

Terraform and Packer are the new way to automate devops. It’s a very powerful approach. And the ease of setting up traditional VMs struck me as much simpler than using Docker. When I wrote “Docker is the dangerous gamble which we will regret” I was thinking about Tereaform as the counterfactual: http://www.smashcompany.com/technology/docker-is-a-dangerous...

you should checkout habitat https://habitat.sh

with habitat you now have the reproducibility and isolation of containers without being forced to use them. (also supervising and config management)

Re: Ask HN: What technologies did you learn in 2018?

#110
post #63
post #8

Weirdly, perl. I found myself on a client site in a locked down environment with only the Windows version of GIT installed. Powershell disabled, no other programs allowed. I had to produce reports on the log files for this machine, but had to obfuscate information before taking it off the server. I discovered that git had bash installed quite early on, so my initial automation and reporting was based on UNIX pipeline…

Im curious to what tasks you felt you could not solve in bash incl. the nix toolchain?

Many of my issues will be specific to the environment. The thing that made me use the first perl one-liners is because I was used to using 'rename' in the command line and I was able to emulate this with perl more easily (using a regex substitution) than 'mv'.

The second and more pivotal one liner was when I needed to create a primary key to ensure I wasn't getting any dupes later down the pipeline (a requirement that came about as some of the other contractors on the project were messing with my exports and then blaming my files for their conflicting numbers). My first approach was to use the MD5 tool included in GIT bash, but this was prohibitively slow, taking 45 mins to loop through each line of a 4mb file. Not sure if there was a performance penalty on the box I was using, but the perl one liner did the job in a couple of seconds for all the files I had.

After that it mostly became a question of maintainability, with the performance being a boosting factor. I found my perl deduping one liner was faster than either 'sort -u' or 'sort | uniq'. I was able to add new features and account for weird issues more easily. Regex was better than sed, syntax was more flexible than awk, there were more filtering options than grep.

Plus it was good fun. Perl has so many things that just feel so nice and tidy compared to bash.

Having said that, I still use Unix pipelines extensively, they just tend to be for ad hoc queries rather than for my automated reports.

Post reply on HN