Hacker Newsnew | past | comments | ask | show | jobs | submit | pytness's commentslogin

We already have two keys, they are called Shift and Enter


I think I have about a 50% success rate in typing a multiline message without accidentally sending it early, having to edit / copy and delete the message and finish typing it before the recipient has a chance to read it, confusing both me and them in the process.


A similar frustration / reason for getting it wrong sometimes: in slack, the behaviour of shift+enter entirely reverses if you're inside a multi-line code block. If you normally have enter to send and shift+enter to line break, then it'll do the opposite while inside a code block.

This is useful if you're trying to type verbatim inside a block, it's less so if you have a strong muscle-memory to shift+enter and do so while in the code block and find yourself sending half a message.

I also use a mixture of teams, discord and slack, and while slack does allow for customisations, I'd always rather get used to defaults to avoid having to configure on every machine I use.

There isn't quite a consistent well agreed default for the behaviour across applications, and that too is a source of frustration.

So I've taken to typing up any long messages in a PM to myself, and then copying that out to my intended target once I'm ready.


> in slack, the behaviour of shift+enter entirely reverses if you're inside a multi-line code block

There's a setting to turn that off so it behaves consistently. Or there was last time I used Slack.


Indeed, it was browsing settings which made me realise the root cause of why I was accidentally sending so many messages.

But changing settings on platforms which I need to use across different computers and accounts is also cause for frustration, so I try to adapt to the defaults, no matter how frustrating.


Thanks!


> I think I have about a 50% success rate in typing a multiline message without accidentally sending it early, having to edit / copy and delete the message and finish typing it before the recipient has a chance to read it, confusing both me and them in the process.

That won't change if you had a different dedicated key for "move one line down but don't send `enter` keycode". You'd still accidentally hit `enter` due to muscle memory.

After all, if you could get past muscle memory, you'd simply press Shift while hitting Enter.


Same but with editing a message on a browser and trying to delete a word with Ctrl+w


yes but you have to type sfhit+enter, while a single "new line key inside the message" would be better for the specific task.


From the wiki[0]: "It is believed to be the first compound to have formed in the universe"

They created the molecule under space conditions:

"The experiment was carried out at the Cryogenic Storage Ring (CSR) at the MPIK in Heidelberg — a globally unique instrument for investigating molecular and atomic reactions under space-like conditions [...] They found that, contrary to earlier predictions, the rate at which this reaction proceeds does not slow down with decreasing temperature [...] Since the concentrations of molecules such as HeH⁺ and molecular hydrogen (H2 or HD) played an important role in the formation of the first stars, this result brings us closer to solving the mystery of their formation."

[0]: https://en.wikipedia.org/wiki/Helium_hydride_ion#Interstella...


if a gpg signature check fails, is it a correctness issue? a security issue? or both?


If RewriteCond (or any other Apache directive) doesn't behave as documented, that's a correctness issue.

If you use RewriteCond as the basis of securing your website, that's a security issue for you.

If it's a security issue for a significant number of users, or if the documentation recommends using the directive for a security role, then it's also a security issue for the product itself.


If upgrade/reframe that last point more strongly. Any configuration of software that is accepted by its own parser is in product scope.


RewriteCond is a mechanism to redirect under certain conditions.

Security becomes irrelevant if the whole Apache module is broken.


I don't see how it becomes irrelevant. It's as if I have a door in the entrance to my building that serves multiple purposes, such as holding the company logo and keeping the A/C-controlled air in, and then someone smashes the door with a sledgehammer. The fact that all of the door's functionality stopped working doesn't make the security aspect of not having a door irrelevant.


A better analogy is that you decided to replace your door with a new one, and before installation you notice that it is smashed to pieces and can't be used.


I'll take that. But in this case it's even worse, as apparently they never bothered to check if the door is in one piece and just screwed the smashed pieces onto the hinges regardless. So now it's not working as a door neither functionally nor security-wise, but it took someone visiting from outside to see that the emperor has no door.


Obligatory xkcd: https://xkcd.com/356/


Relevant or not, python 3.13 shows the same thing:

Python 3.13.0: 799.6559143066406 ms

Node 18.20.4: 59.34080000221729 ms


Note that the book uses python 2


Interesting potential use case for AI: automatically rewrite the code in a book like this for python 3 vs 2. I know that’s not trivial, but seems like a very trainable use case


We don't need to cram AI into every possible technical corner in existence. It shouldn't be the first solution suggested for every problem that arises.

There are already Python 2 to Python 3 converters that don't use any AI. It's usually unnecessary.


But, and hear me out, converting this book from Py2 to Py3 using AI might be fun for the person doing it.


  "draw a line under the last word in this line"
                                           ____


Sorry, I expected "the last word in this line" to be underlined, not just "line". Right to vote denied.


It depends how you measure the time i guess. I would say from 4 hours to 6 hours on an average workday (thats what wakatime says at least).

But is writing code, stopping for reading docs / thinking and continue writing code counted as 1 big unit of coding, or 2 small?

I dont code that much outside of my work anymore, buy i could go for 17+ hours when I was younger.


For being a relatively new language, there are almost no "entry level" positions.

Just take a look at https://rustjobs.dev/. Most of them are well paid remote jobs, but they are asking for +3 years of "professional experience" with rust, "with a proven track record of building and deploying production-quality code", and more. Hell, iirc, i saw one asking for proof of contributions to the rust repo (eg, being a core maintainer).

edit: to be fair, i saw one position a while ago asking to be willing to learn rust


> For being a relatively new language, there are almost no "entry level" positions.

Isn’t this a fairly well-known phenomenon though?

- new language makes waves. The people who picked it up early do some impressive stuff.

- early early adopter companies either snap them, or internally make the choice to learn it too. In turn, they do some stuff with it.

- gets a reputation for being the hot new thing. Other companies “want in on it”- they want to be able to do the fancy cool things the other places did, but they don’t have the patience, time or culture to grow it themselves so they aim to hire out seniors and everyone with lots of prior experience. <——- many orgs are here.

- proliferates enough that it’s well and truly mainstream. Also known as the “hire 1000 Java devs and throw bodies at stuff” stage of hiring and availability. Python, Node, Java, PHP, etc are here.


Yeah though bear in mind most job requirements are really job desirables. No skilled jobs say "0 years experience, no track record required".

Asking for proof of contribution to the Rust repo is insane though.


Also, the site is really slow. The only thing that the site manages to turn on is the computer fans.


Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: