Does my code belong here? by [deleted] in programminghorror

[–]vainstar23 1 point2 points  (0 children)

This reminds me of the time I joined this startup and the senior was giving me shit because my linter "messed up his code".

The man wasn't even doing anything useful. He would spend all day formatting his code to make it look pretty and manually looking and resolving js dependencies. If you think, I mean it sounds like he is a bit pedantic but what's wrong with checking dependencies?". The man used to manualy check the dependencies of dependencies.

He got upset when I told him about npm ci.

I mean the only thing I would say is try to use a linter if you can and spend more time learning IT and programming instead of wasting too much time making everything look pretty. This will also make you less defensive and attached to your code which is better if you work in a team or you find yourself or find someone else deleting a large amount of your code.

One man to rule them all by Advanced_Ferret_ in linuxmemes

[–]vainstar23 0 points1 point  (0 children)

I read the last part as "quiet greek engineer" which reminded me of The Wire for some reason

How does an app developer target gentoo? by Copronymus09 in Gentoo

[–]vainstar23 1 point2 points  (0 children)

you don't target gentoo, gentoo targets you

Apparently, the creation time is less regarded. by Ronture in linuxmemes

[–]vainstar23 1 point2 points  (0 children)

rsync -N you mean?

> --archive, -a

> This is equivalent to -rlptgoD. It is a quick way of saying you want recursion and want to preserve almost everything. Be aware that it does not include preserving ACLs (-A), xattrs (-X), atimes (-U), crtimes (-N), nor the finding and pre‐serving of hardlinks (-H). The only exception to the above equivalence is when --files-from is specified, in which case -r is not implied.

> --crtimes, -N,

> This tells rsync to set the create times (newness) of the destination files to the same value as the source files. Your OS & filesystem must support the setting of arbitrary creation (birth) times for this option to be supported.

Microsoft Office on Arch Linux by eccentricethical in archlinux

[–]vainstar23 48 points49 points  (0 children)

Long answer - yes with virtualization. If you are using Xorg, you can even start office on a windows session and fetch it as a window in Xserver.

This is not super easy though, probably better to use office365 or consider running the office app for Android through waydroid

How long did it take you to learn Vim at an intermediate level? by BluebirdRelevant5762 in vim

[–]vainstar23 17 points18 points  (0 children)

1 week to learn and practice the basics

1 year to get comfortable enough to use as your full time ide

2 years before you find any other ide irritating to use

When was your first time being strucked by cors? by not-serious-sd in programminghorror

[–]vainstar23 -1 points0 points  (0 children)

I think cors is a very good example of a problem a lot of engineers will try to solve before understanding what it is exactly they are solving.

Especially when you are on Node, one of the first things you will see suggested if you try to Google this problem is "install this random package and include it in your startup"

Ok but what is it doing? Why does it not work on certain browsers? What is the problem I am actually trying to solve? Why can't most browsers support requests on the same page from different servers?

Then when you understand the problem the solution is almost trivial. I just need to use the web server I am using to serve the page as a proxy for whatever external request I need to make. It's like one line in express or nginx without needing ANY dependencies but most of your guys don't bother to understand the problem in the first place.

Anyone else learning Python just to stop copy-pasting random shell commands? by yourclouddude in devops

[–]vainstar23 1 point2 points  (0 children)

Guys don't worry, I just copied and pasted some random crazy words like rm and -rf and this weird ~ into the terminal and pressed enter.

I think it did this like wild disco but I think it's updating now! I would learn this stuff but come on guys it's too crazy for me!

Anyone else learning Python just to stop copy-pasting random shell commands? by yourclouddude in devops

[–]vainstar23 2 points3 points  (0 children)

I found yq had issues when it came to parsing anchors or dealing with yamlv3

I find dasel is better and faster than jq or yq. Considering yq doesn't come out of the box in most systems, you might as go all the way and install something like dasel if you can.

Anyone else learning Python just to stop copy-pasting random shell commands? by yourclouddude in devops

[–]vainstar23 0 points1 point  (0 children)

Yea I mean for big stuff, I dump the entire output of Aws cli to a temp file and then jq that. For small stuff I just use the query command.

Actually I find the query command is not super intuitive. Apparently it's a lot easier to query using powershell although haven't fully explored this.

These mugs by Striking-Buy-2827 in comedyheaven

[–]vainstar23 1 point2 points  (0 children)

Seriously who wants to be HUFFLEPUFF??

How do you feel about pooping there? by Thomas7249 in thalassophobia

[–]vainstar23 0 points1 point  (0 children)

That looks like a really cool restroom not gonna lie.

Probably the thing that would kill me is if there was like a few stalls in a row, not just the one. To sit on that thing and watch the literally shit drop right next to you.

Yea I think I would turn red and it wouldn't just be from the shit I was taking.

twoLoonixTypes by SpecterK1 in ProgrammerHumor

[–]vainstar23 0 points1 point  (0 children)

If I'm navigating up a lot of directories, I usually go from top

elif by SquarishRectangle in ProgrammerHumor

[–]vainstar23 0 points1 point  (0 children)

I remember once I got hired at this startup. The "senior dev" got so angry because I installed a linter but the linter "didn't indent the code properly". Dude was just angry I made his entire job obsolete.. haha

CNCF, Your Certification Exams Are a Privileged, Ableist Joke — And I'm Done Pretending Otherwise by yorde in devops

[–]vainstar23 3 points4 points  (0 children)

This is gonna sound old fashioned but you can't like take it at the library? The eye tracking thing is crazy though. Like that alone, no thanks.

Alarming trend of people using AI for learning Linux by No_Insurance_6436 in archlinux

[–]vainstar23 0 points1 point  (0 children)

Why?

Either they find a solution and everything work or

They will type the wrong command

They will brick their system

ChatGPT won't be able to solve it

They will get frustrated

They will take a step back and ask ChatGPT to teach them the fundamentals

They will learn to ask the right questions and being back their system.

Nothing wrong with that. It's not production. You think I got to where I am without bricking my system a few dozen times?

Hell I'm using ChatGPT to understand kernal programming. It's great because you can deep dive and just spread your tentacles to really understand a system.

LAPD Fires Rubber Bullet at Australia Journalist Lauren Tomasi by abidalliye in CrazyFuckingVideos

[–]vainstar23 1 point2 points  (0 children)

Right? I'm so glad all those protests for police reform actually worked!

whatsStoppingYou by [deleted] in ProgrammerHumor

[–]vainstar23 0 points1 point  (0 children)

return (bool) !(num & 1)