Live data from Hacker News

Everything I googled in a week as a professional software engineer

localghost.dev

61–70 of 399 posts

Re: Everything I googled in a week as a professional software engineer

#61

On the list of things I always Google, is how to create a symbolic link under Linux. I just can't figure out a way to remember what comes first; the source or the destination. The man pages add to the confusion by calling the "source" the target. So, the rule of thumb I now follow is cp or mv semantics.

What came first: the file or the symlink? Of course the real file came first! Mnemnic that helps me: IN SYMLINKS, REAL FIRST! ln -s REAL_FILE link_name

I know of two different ways to remember:

1. Same as mv: `mv REAL_FILE link_name`

2. The second argument is optional. Therefore, the first argument must be the real file, and the second the link name. It does not make sense to omit the real file.

Re: Everything I googled in a week as a professional software engineer

#62

On the list of things I always Google, is how to create a symbolic link under Linux. I just can't figure out a way to remember what comes first; the source or the destination. The man pages add to the confusion by calling the "source" the target. So, the rule of thumb I now follow is cp or mv semantics.

For simple shell commands like this, tldr is really handy.

https://tldr.sh

Re: Everything I googled in a week as a professional software engineer

#63

I'm actually surprised the list wasn't way longer with much weirder queries.

My most recent Google search is "reddit brushing teeth at work"

"termination with cause" - reviewing a signing bonus repayment agreement I'm sending to a candidate,

"lxde" - this morning installing a window manager in userland app on my Galaxy S10+ while waiting for some batch processes to finish.

Re: Everything I googled in a week as a professional software engineer

#68
post #64
post #48

I forget syntaxes of various languages or language features, so it's really handy that emacs can show them to me from stackoverflow with completion: https://i.imgur.com/dDvHfOn.gif

What is this magic?

It was posted on reddit not long ago:

https://reddit.com/r/emacs/comments/cs6cb4/instant_stackover...

Re: Everything I googled in a week as a professional software engineer

#69

On the list of things I always Google, is how to create a symbolic link under Linux. I just can't figure out a way to remember what comes first; the source or the destination. The man pages add to the confusion by calling the "source" the target. So, the rule of thumb I now follow is cp or mv semantics.

[deleted]

Re: Everything I googled in a week as a professional software engineer

#70

Earlier quoted context omitted.

What came first: the file or the symlink? Of course the real file came first! Mnemnic that helps me: IN SYMLINKS, REAL FIRST! ln -s REAL_FILE link_name

I know of two different ways to remember: 1. Same as mv: `mv REAL_FILE link_name` 2. The second argument is optional. Therefore, the first argument must be the real file, and the second the link name. It does not make sense to omit the real file.

This. Same as mv AND cp.
Post reply on HN