Comment on
Today, Reddit forcibly removed me (and everyone else) as mods of /r/iOSProgramming, a subreddit of about 130k users. I was keeping the sub private / NSFW | Tanner B 🦕🧁 (@[email protected])
Who are the mods now?
Comment on
Today, Reddit forcibly removed me (and everyone else) as mods of /r/iOSProgramming, a subreddit of about 130k users. I was keeping the sub private / NSFW | Tanner B 🦕🧁 (@[email protected])
Who are the mods now?
Comment on
Markdown everywhere
Reply in thread
The thing I dislike about Atlassian is everything from Atlassian
Comment on
The Human Shader
It would be even nicer if we could click on a pixel and see the computations screenshot, so we can find the error.
Comment on
*Permanently Deleted*
Goodbye Bram, teach angels how to quit vim.
Comment on
Introducing Numbat: A programming language with physical units as types
Reply in thread
I disagree.
I worked with a software for quantum physics and electronic transport from microscale to mesoscale. It had a "python based" DSL that had support for units through that module. Seems the perfect scenario for such entity, so we wrote it integrating another similar package (it's not the units package, I can't find it anymore. In any case, it let you say things like speed = 3 * meters / second)
The results were... interesting.
There are many major problems:
So, it looks cool, but in practice it's pointless. The only practice to follow is:
In other words:
user gives stuff in micrometers -> store it in length_um -> convert it in nanometers -> store it in length -> use length from now on (implicitly in nanometers)
The reverse for output
Comment on
Git files hidden in plain sight
interesting. Is it required for the refs/ to be "atomic" or can it be anything that is not "agreed upon convention" and thus recognised by github?
Comment on
A proposal for java's "throws" in python: Extend type hints to cover exceptions
Reply in thread
I heard the same, but not sure why. Do you have a link?
Comment on
How to handle the erasure of your 'digital legacy'?
Everything you code is disposable. Get at peace with that fact and you will be happy. It was crappy code anyway.
Comment on
*Permanently Deleted*
Reply in thread
Yes the problem is that they are management. You can say they are shitty managers all you want, but the only result you'll get is that they will fire you.
Comment on
Introducing Numbat: A programming language with physical units as types
Reply in thread
My point is that it's mostly useless to use a language that supports these kind of things, because the proper programming practice is to normalise and treat the edge cases at the interface. Once you are inside your own codebase, you use SI at the scale that makes sense and that's it. No more ambiguity, no more need to carry the unit around. The unit is implicit and standardised throughout your code, and you don't have to carry around dead weight (in memory and computation) for nothing.
Comment on
Python errors as values
I don't really see the point of this approach. The whole bane of programming in low level languages like C is that you had to write one line of code, then 10 lines of error management for that line. Repeat until 500 lines, potentially with gotos in order to rollback previously successful operations. The result was that C was mostly error handling of function calls, and the ways to return such errors were hackish. Add reentrancy and multithreading requirements and it became a mess.
The idea of exception throwing is to forget all of this and have a separate channel where exceptions conditions flow, so the code is mean and lean and just does things, and when something goes wrong it throws a fit. If someone understands and manages that fit, great, there will be a specific handler for that, otherwise it won't. An exception is never ignored. Either it's handled or it reaches the top and stops the whole thing. With value as errors, the default is exactly the opposite.
So I don't really see a big case for going back to the old days of errors as values, because it really, really sucked.
Comment on
What are the things you dislike about R?
Everything. R is an absolute disaster on a lot of aspects.