63 karma · joined May 30, 2016 (10y ago) · 22 submissions
comment 9mo ago · link · parent
https://anaminus.github.io/langding/
om would fall under "Yes, must scroll".
comment 3y ago · link · parent
local foo
do
local bar = 42
-- Same as `foo = function() ... end`, so this sets the local foo variable.
function foo()
return bar
end
end
Because Lua has no significant whitespace, it can be made to look like some kind of specific syntax: local foo do
local bar = 42
function foo()
return bar
end
end
Though I think this is too clever, so I like to insert a semi-colon to make it clear what is happening: local foo; do
local bar = 42
function foo()
return bar
end
endcomment 3y ago · link · parent
2. Smash pieces of the words together until you get something that looks good.
e.g. blurred grumble ambiguity:
- Blurlamb
- Redblig
- Leguity
Don't worry about the meaning. The meaning emerges from the identity you give it.
Extra credit: Look it up to make sure it isn't a dirty word in some foreign language. Happens more often than you think.
7.
Considering options or: How to implement an Optional type in Go(anaminus.github.io ↗)
1 points · by Anaminus · 4y ago · discuss
comment 4y ago · link · parent
This led me to believe the whole website/book is going to be like this, so I haven't read any further. I'm sure it's great.
comment 4y ago · link · parent
Problem: Very tiny.
Solution: Scale to viewport in integer increments.
Result: https://anaminus.github.io/
This disables zoom. In fact, it actively fights the zoom level to always fit the viewport. Have I committed a great sin?
comment 4y ago · link · parent
> Why not just go straight to the issue tracker?
An issue tracker adds a lot of overhead. It's sitting on a different system, so you have to have a separate window open. It's public, so you have to spend time producing a comprehensible issue. Every action is a commitment. Internet access is essential.
Meanwhile, TODO is just a file, so it can sit right next to your code. Its private, so you can just stream thoughts right into it and move on. Adding an item is as simple as typing out some lines, and removing that item is as simple as deleting some lines. Need to search? Just grep it. It's fast, and it doesn't leave a mess in your code.
comment 5y ago · link · parent
[1]: https://devforum.roblox.com/t/the-robux-exchange-rate-and-mo... [2]: https://devforum.roblox.com/t/the-robux-exchange-rate-and-mo... [3]: https://devforum.roblox.com/t/holiday-schedule-for-the-devex...
comment 5y ago · link · parent
Maybe throwing more manpower at the problem will let them reduce the minimum rate. Or they could work on altering their infrastructure to support a more automated system, possibly eliminating the minimum rate entirely.
comment 5y ago · link · parent
comment 5y ago · link · parent
Program that lets me keep track of the last time I did something (brush teeth, exercise, vacuum the floors, etc), which motivates me to do these things more regularly.
Program to convert between various units of bits, mostly so that I could do a calculation regarding download speeds.
Program to run programs without a shell, so that I could run certain commands on startup (it was faster to implement than to find an existing solution) [1].
Library to dump various useful information out of a Pokemon ROM, so that I could play the game more efficiently [2].
Playing card library, so that I could simulate certain solitaire games and figure out the chances of winning [3].
Program to quickly parse and generate markdown files from source code comments, existing solutions being too complex or not working quite the way I wanted [4]. This one ended up being a real winner, because it let me stop worrying about presentation and get back to writing code/documentation.
There's this sort of multi-tool I've been working on for game development on Roblox (very niche) [5]. A high-level overview is that it uses scripting to streamline certain workflows that would otherwise be tedious, such as parsing proprietary file formats, interacting with web APIs, or assembling a project into a final product. It's a winner because it lets me make even more tools for myself.
[1]: https://github.com/Anaminus/nosh
[2]: https://github.com/Anaminus/pkm
[3]: https://github.com/Anaminus/cards
comment 6y ago · link · parent
I've found greater success in just observing my impulses. While I'm working, I might get a desire to type the "hn" keyword into my URL bar (guess where it goes). But because I've noticed this before it happened, I can choose to not do it. If I find myself "idling" on such distractions without realizing, then that means it's time to do something else. Get back to work. Take a break and relax. Get off the screen entirely. Anything else, just don't idle. This seems to get easier with practice.
comment 7y ago · link · parent
It's great that they're trying out the process on smaller, more simple proposals. My hope is that this system will either produce really good features, or reveal that there are simply no satisfying solutions.