skysight-inc/HackerNews huggingface dataset:
I keep a physical timer on my desk that I start and stop during the day. Hands on keyboard coding? Reading documentation? Sketching? Pushing the project forward using technical or design skills? Timer on. Anything else, food, break, YouTube? Timer off.

I don't stop working until I have five hours of coding or coding related work done each day. Some work days are six hours long, others are twelve. They all have about five hours of coding.

I keep a log book and track my hours each day. If it's Saturday morning and I'm at 24 hours for the week, Saturday morning is a work day. Some of my work weeks are four days long, others are seven. They all have about 25 hours of coding.

I've been doing this for three years and I'm incredibly proud of what I've been able to accomplish by keeping myself honest and holding myself accountable. It's easy too. Keeps you from working too much or too little.

edit Coding doesn’t mean “TYPING”. I include anything related to coding that pushes the project or my understanding of it forward.

Most people work jobs where they only get paid for the time they produce. Mow lawns or do landscaping for a few summers, it’s not fun. I set my own schedule and only put in 5 hours a day. I’m done before most people would get lunch. I feel like I’m working a part-time job most weeks.

I also like what I do, most days.

The details don’t matter much, this is the important bit: “Keeps you from working too much or too little.” Plug in whatever numbers work for you or do your own thing.

If I’m spending so much time in meetings or writing emails that I can’t do the work I’m good at, I need to hire.

It’s flexible too. I spent the first four hours of most days last week watching Star Trek or doing chores before finally getting to work. And the end of every day I have a yes/no answer to the question “Did I work enough today?”

Now, if you haven’t run your own company you might never have felt “did I work enough today” gnaw at you while you’re trying to sleep to sound of your bank account draining.
Just passing feedback from my peers at the surveillance van: fantastic joke.
NICs maybe, but there's a whole heap of cheap home switches and hubs that don't support 10BaseT. I know this from experience.
Lucid unveils performance EV that does zero to 60 in less than 2 seconds
Bounds Checking on GPU (2021) [pdf]
Here at Kohl's the price signage is e-ink.
If they had figure for home working vs in-office, that could really be something worth reading.

As it stands, I'm inclined to agree with others who have said there are just too many hidden variables here.
Always remember the context of your code. All code is ultimately used by other humans, so we should make it convenient for them, depending on how will they use it.

Are you writing a library? Make it convenient for the user to handle errors - in a way that is consistent with the language. E.g. in Go, return an error. In Python, raise an exception.

Are you writing a CLI program? Print to stderr, and abort program if execution cannot be safely continued.

Are you writing a GUI program? Create an error dialog box, and abort program if execution cannot be safely continued.

Are you writing a web service? Return the appropriate error code (or the equivalent in whatever protocol you use) and a human-readable error message about what happened.

Et cetera.
> catch any possible exception that might be thrown by a library I’m using on the same line as it is thrown and deal with it immediately.

What does "deal with it immediately" mean, that exceptions don't already do?

Edit: to explain a little more: when an error is returned from a procedure, control flow can do one of exactly two things:

1. Handle it in some specific way (retry the operation that failed, proceed with a default value for an optional operation, try to modify input parameters and run again, ignore completely, etc)

2. Return the error to an upper-level caller (calling function, OS).

You may of course add some optional extras (log the error, clean up any resources), but the above are the only 2 options for how control flow can continue.

Now, if you can do 1: perfect, do it, that is the best case scenario.

But, there will always be cases where you can't handle this error, and your only option is 2. Now, 2 can be achieved by many mechanisms: exit(ERR_CODE) to return to OS, automatic exception propagation, manual error return value propagation, set some error flag and return, etc. But they are all ultimately equivalent, and each have their pros and cons.
Thanks for your comment. Was the eink screen refresh lag a trouble on daily use?
If needs be. But ideally you get to a point where an error turns into a business rule. SQL "no rows found" error? Becomes a business "record not found" error, which is turned into a HTTP 404 on an HTTP API edge.
As already called out as vague in term, I will share my $0.02 worth of observation in regards to "coding", at least in the space of my most recent workplace: by far the largest amount of coding is being produced in SRE, followed by PE, followed by the actual software product creators.
I didnt read it that way, but if that was the topic what would have been wrong with it?
"Wrong type of meat", or unhealthy meat.
I think your argument would depend on the distinction (as much as "the authorities" ie working on a local level, vs "The EU", working on a National, and Continental level).
Product should be the glue between teams and create efficient flow of data between stakeholders.

Imo the problem with Product Manager is it's a catchall term when there are 4 types.

Research, OPS, UX/UI and technical. They are all very different in their execution and value but they are seen by some as 'you manage the backlog but with data to prove my ideas aren't wrong'

Zero point of having a PM if this is how they get deployed.

It's too bad as the role, when assigned and matched well, can cut through to the core pain points.

Also 100% agree, you want to talk to high, medium and low supporters to get a good map.

For one I worked at, I deployed receptive.io (now part of Pendo) and it showed every customer demographic wanted a specific feature and ALL their great ideas where shit on by the users.

The echo chamber at C level is, imo, the reason PMs get sidelined.
Now tell me what exactly was wrong with fopen()/fread()/ferror()?

> They simply don't work, at all, in any kind of concurrent application, even a single-threaded one.

What am I missing here? Why does this make no sense at all to me? For concurrent programming, containing errors / handling them asynchronously is basically a requirement.

It's how distributed systems work.
A network graph analysis of Spotify podcast recommendations
Retire early.
So? Who cares. Just because he is a thinking and breathing human being with a pulse and a different view than you. How many times have you made the front page of a prolific website? That’s like me telling the world — you, based off one comment sampling that you are stuck up and one dimensional ….
Which we both know isn’t true, right?
Benefit of the doubt.
The author of the Go diff library has just released it under the MIT license: https://github.com/seletskiy/godiff/commit/865648740d705a24a...
I work for a small fulfillment business. When I found out I was pregnant with my second baby I told them I was either giving 8 months notice or I could work remote 4 days a week. After they hired someone to cover my maternity leave, they offered me full salary to stay on because I was that valuable to them. Even after training someone else for 6 months, she still couldn't keep up with the work I was pushing out.
Pixar’s 22 Rules of Storytelling
My Wakatime stats beg to differ. My daily average is 4 hours and 57 minutes.
> Exit the process.

Nooooooo!

Unless you're running PHP in cgi-bin or some anachronistic madness like that, never do any kind of process- or thread- level control for mundane issues. That makes code fantastically dangerous to reuse because rare but expected exceptions will kill everything unexpectedly, making it very hard to log and troubleshoot with tools like an APM.
Careful, you will upset the poor fools who have to deploy our - I mean, their - own products (and therefore have to write the config files, too!)
Yep. Majority of creating code is thinking, thinking, thinking and making sure that everything will work and be maintainable into the future. Then there are also cases in which business considerations step in. Those are even more complicated.
You seek answers in semantics. A human operates on emotion. The drug, ‘we are better than you’, there’s no knowledge in that. It’s a despair. We are unable to think through it. I don’t want to drive this home too far, but I hope you can feel it.
Oh nice, I didn't notice that.

I certainly don't have a problem with it being 'done', I just had 'move to nuTensor' on my mental to-do list just for the potential security/API fixes, ensuring it remains available etc.
>This has been completely debunked numerous times in the last week

show us
It’s a small company that prides itself on its leadership. They work hard to retain people.
and their logo used to be a rainbow apple.
> If you have some bigger all-hands events…

Just do something else instead. Have an internal podcast that I can listen to async while I mow my lawn or clean my house. There’s no need to tie up your entire workforce for a live stream. Deal with Q&A (which is usually terrible anyway) by having a Q&A episode where you answer the top 10 upvoted questions.
At those developing prices, is it now just cheaper to self-develop, and take advantage of bulk buying the chemicals and paper?
tbf real world tradeoffs are usually more like "save one person with high degree of likelihood of success" vs "attempt to save two people with significant likelihood of failure"
"Elkin (1949) notes further that among the Pitjantjatjara and other Australian groups, a medicine man would often seek out a colleague for treatment when he himself was sick".

I often wonder if magnetizers/Energy medicine healers and other charlatans believe in what they do and if they would seek the assistance of their colleagues when sick.
You can set a Google calendar as the default calendar. I'm not sure what happens when icloud users share items with you though.
Maybe it's my lack of artistic background but I don't really understand what point they're trying to make.

I had to look up what this "Don't give them 4" was referring to, and it sounds like it means Don't give the audience the answer, give them context and let them figure it out.

But even given that knowledge, I'm still not sure what point they're trying to make and how their photos relate to giving the audience context and what the camera has to do with it
> If Linode can do it, then surely Google can.

No, because Linode is using humans to interact with you. Google will not humans in those situation, their mantra is to automate everything so they can scale up with minimal human effort, even when it doesn't make sense to scale up that way.
> Making data public isn’t enough when it’s incomprehensible to the people it affects. ProPublica set out to decode a complex EPA data set to expose hot spots of industrial air pollution across the U.S.

If at some point AR becomes commonplace I expect visualizing the hotspots directly would cause outrage.

Not sure how best to visualize it in AR though.
> Most mature languages have a logging system which allows the internal logging of a library or module to be silenced, redirected or almost any other action. I think there is a lot of value in libraries doing appropriate logging which can't easily be replicated in application code.

Info/debug level logs sure, I don't disagree. As long as there is some built in or community standard logger and not the libraries own custom thing.

Errors, I'd rather they throw and my own app's logging facilities kick in that can provide more context: which server, which container, request info (method, path, request ID), etc. Granted some of that could come from configuring a logger with it.
I asked, they agreed. I'm paid 4/5ths of a slightly below market rate salary, but I'm happy.
The most recent version of the plugin seems broken, so I had to revert to a previous version. Using this plugin for a few months now, and it works quite well.
Back Pain Relief in 5 mins with AI
Dealing with back pain pain sucks, so I'm building an AI Pocket Physiotherapist app to help

Hi everyone! I'm Bryan, CEO and Founder of Lexly Health. At the age of 24 years old, I was told I had a body of a 40 year old. I had numbing fingers and lower back pain whenever I sat in front of my computer for hours. As a developer, it was extremely disruptive for me whenever my back pain affected my productivity.

I spoke to over 200 chronic pain users and this was what I found:
- Existing pain-relief experts are expensive (>$100/hour)
- Solutions are not sustainable because it's too expensive
- Ultimately, pain creeps back

Our product delivers an easy to follow 5 minte physiotherapy programme to treat chronic back pain.

How it works:
1) Fill up a pain assessment
2) Algorithm creates 5 mins physiotherapy programme based on (1)
3) Get real-time feedback for your exercise posture with our AI Motion Tracking technology
4) Get matched with our in-house Health Coach and Physiotherapist for a 1-to-1 tele-consultation

We're currently on Android only but working very closely with our first 10 paid users to curate the product.

What are your thoughts on my app? Would love to get your feedback!

Waitlist: https://bit.ly/lexlyhealthwaitinglist
Video demo: https://youtu.be/-s8Z_4lJM10
Integrity and availability are security too. I would call arbitrary file delete a security issue even if it could only be triggered by a non malicious actor.
Thanks for this, I ended up down the rabbit hole of David Lee Roth and no brown M&M's backstage which is both an amusing story a) about how the media industry works and also b) of putting something seemingly innocuous but easily verifiable in the middle of a long checklist as an early warning sign of a process not having been followed properly, which obviously has applications anywhere something critical is being done.

Hopefully the surgeon insights in the book are equally valuable.

https://rockcelebrities.net/the-reason-behind-david-lee-roth...
Why the indie maker playbook is dead (or how I learned to spend money on ads)
How can you call yourself a web developer when your PDF viewer doesn't even require 2 GB of RAM. This is the future, old man.

One day, each window, page, tab -- and even individual elements of the web page -- will run in its own docker container. Imagine all the clock cycles we could harness.
I worked a 4-day week for years, but that only means you get the same shit done in 4 days, not 7. I was due to get a promotion as an engineering manager, but I refused the promotion and the increased salary in lieu of fewer days at work. Over time, lesser quantum of work gets thrown your way because you are away from people's faces for a larger fraction of the time. That particular equation has changed because of WFH.

It was fantastic to have a long weekend every week. I also miraculously became more disciplined, because I promised and delivered by Thu evening. For some reason Friday evening used to always spill into Saturday, then Sunday, into the interstitial spaces between home and social life.

The downside was that people would more often than not hold meetings without me, and get to work on more juicy projects, and I would feel hurt at the beginning. I had to continually remind myself of the increased free time. At the peak frenetic pace of the early 2000's and the dot com boom, this was seen as career suicide. I knew that it wasn't any such thing, that you can always get work when you show quality, but the social pressure still made me doubt myself sometimes.

As edith piaf sang, je ne regrette rien. I regret nothing.
Maybe because it's using PDF.js under the hood
what's wrong with working at facebook? stop acting so morally superior, christ
Time spent at the keyboard is definitely not the mark of an effective coder. Code is just the implementation of a design. For any nontrivial module, the design should take up the majority of your time. If you're designing as you're writing code, you're probably doing it wrong.
They don't do sport or clubs, but still spend plenty of time on grading and preparation.
Is it just me, or does imgur never load on Firefox mobile?
Wait, Reddit is a DAW now?
I'm one of the maintainer of an Open Source project [1] that strongly relies upon libcurl. I'm really grateful to Daniel and all the contributors for all the work in curl/libcurl, this is one of our common software gem that is used by many (even in space [2]), so thanks a lot!

[1]: https://github.com/Orange-OpenSource/hurl

[2]: https://daniel.haxx.se/blog/2020/12/17/curl-supports-nasa/
Don't have call stacks 15 layers deep. It's a problem in itself when the only choice you have is either ignoring the error or cancelling 15 layers of god-knows-what-code-must-still-run.
I can see the value in a distraction-free system (although you'd have to run MSDOS on an old PC, not in an emulator).
But why not just turn the unwanted features off? If someone is smart enough to get by with MSDOS they are probably smart enough to configure any wordprocessor...
To be fair, most employers include a lot of things in their job ads that shouldn't necessarily be taken literally or in the strictest sense possible. For example, a decent chunk of ads I've seen ask for a set of qualifications that would leave them with zero applicants if taken literally. I've also heard from multiple hiring managers and recruiters that "if you're not qualified but you really want to job, you should apply anyway".

Applying for a "full time" job, if you expect to be able to handle a "full time workload" is not a great stretch.

Also, as several other commenters have pointed out, employers routinely leave a lot of critical details out in the early stages — especially details that might make applicants not bother applying at all. Unless you're very clearly a rare exception to that norm (i.e. an applicant can tell that easily from the job ad) then it's a bit rich to expect applicants to lay everything on the table before you've even met.
It's time we moved towards a world of "you may not vent anything to the atmosphere".

Ie. nothing may have a chimney, exhaust pipe, pressure release valve, or anything similar.

All gases must be stored in a tank and reprocessed at gas recycling facilities, which can separate out and sell the gases.

Even in your house, when you 'ventilate' the house, you are taking the stinky stuffy polluted indoor air and putting it into the environment. The volatile organics, farts, Nox from your cooker, CO2 from breath, and cooking smells aren't 'natural'. Instead, your house should purify its own gases with filters.

Will it be expensive? Yes. But looking after the environment is expensive. But it's worth it.
The map: https://projects.propublica.org/toxmap/
Developers who quit the industry. Why? And what do you do now?
As title says. A little background on me and I'm sure many of you relate:

- I've been a web dev in the UK for around 10 years now, it kills my soul. Lots of startup snakery over the years, company using and abusing you, mass-layoffs nowadays or years prior etc.

- I feel very manipulated and used in this industry behind all the smiles and creepy niceties. By managers, PMs and even other devs who are lapdogs of upper management (then those same devs get fired later for made-up reasons when they do the dirty work of management). I find it hard to genuinely trust anyone, yes, even the ones with "bring your dog to work" / "free Friday lunches!" / super-friendly staff / engineering managers who look like they read a book on how to speak like a friendly manager / other BS

- My creativity and drive to create side projects outside of work hours is gone. I don't remember the last time I coded for fun or with the intention to make money off it. Most weekends are spent trying to "heal" from the week, same for outside work hours. I get better at disengaging whenever needed nowadays though.

- On the plus side, I'm quite financially well off because of web dev and paid off my cheap mortgage (I live well below my means, super frugal, no dependents) and have 1 property I let out. I'm tempted to keep on this path as I know nothing else professionally.

- Now that every one calls themselves a developer, bootcamps churning out devs that know the exact same thing as seniors (on paper), I'm not sure if this will drive salaries down in 5-10+ years time or would our jobs even exist then? Don't even get me started on interview processes and how high their standards have become such that you will get disqualified over minutiae.

- So I do am tempted to quit, but don't know what else to do, so I was curious what you guys who have been disillusioned by this industry have done and are doing nowadays?
Strange that an ability wrt sight, that birds fish, fish, reptiles have in their eyes (tetrachromacy) is not available to humans - we are trichromats.
Yeah, this totally feels like an overzealous manager definition of coding - i.e. you're only working when you're hammering the keyboard - whereas 90% of the actual software development cycle is done while typing nothing (or at least no code) on the keyboard.
2.5T cubic feet of natural gas found offshore south cyprus
The real world is always going to be different to your development environment. You can't necessarily go into debug mode. Therefore logging is your friend.

Normally I leverage the underlying logging and get my code to write to its own log file. I like it if I can independently turn on the logging and the verbosity for my module, even if logging is turned off for performance reasons in the main code.

Once everything actually works you might end up with 'carpet logging' in your code, where every bit of data is getting logged just in case there is an error. You might also have catch blocks around everything.

At this stage you can remove the excess logging and allow exceptions to bubble up, resisting the temptation to refactor anything else. If this works and you have something stable, then you can optimise your code without it being 'premature'.

I agree with @jameshush, however, if the code you are working with throws exceptions and has a sophisticated way of dealing with them, then you can throw exceptions that are going to work with what there is already.
Why do you need security updates so often and so bad? I dont know what websites or apps you install, but normally there shouldn't be any problems with normal use even without security updates. And even then, you can always install a custom rom instead of having to buy another one.
Where in the article it insinuates that developers aren't productive? Quote from the article:

> Our takeaway: Our findings suggest that developers frequently face constraints at work that prevent them from finding uninterrupted time to code.

While the title on HN is "Report: The median developer codes 52 minutes per day", actual title on report page is "Global Code Time Report".

I think the report addresses the thinking-planning-designing parts of your comment believing these things are "issues" and need to be offloaded to someone else so that the "coders" could code. Which is a narrow way to look at things, for sure.
I guess you are completely oblivious to how HFT's work and their actual position in the markets. I am a bit biased considering that I work in the industry but actually working in the industry gave me the inner workings of it and how actually they help to close / tighten the bid - ask spread for various securities.

I would highly recommend you to read this book ( https://press.princeton.edu/books/hardcover/9780691211381/tr... ) or if it's too long form, read this article ( https://www.thediff.co/p/jane-street )

I am not saying HFT's are in charitable business but they do serve an important role in the financial markets.
My new project: Kind Popup
Cloud providers have a minimum spend for invoice billing. For GCP you need to spend at least $2500 a month for 3 months to qualify.