7,020 karma · joined May 31, 2008 (18y ago) · 3,135 submissions
https://www.github.com/fiveNinePlusR/tabist
comment 2y ago · link · parent
comment 2y ago · link · parent
a nice ide integrated experience:
https://code.visualstudio.com/docs/languages/ruby#_debugging...
https://github.com/ruby/vscode-rdbg
https://code.visualstudio.com/docs/editor/debugging
heavy metaprogramming in any language is going to be a pain to debug so i'm not sure what you're expecting but there are tools to help. you can also call source_location on some method to figure out where things exist.
comment 2y ago · link · parent
yeah... there should be no extra side effect if you call something more than once on it with the same parameters. ie foo(x) is the same as foo(foo(x)) is the same as foo(foo(foo(x)))
or in networking GET x is the same as GET x followed by a GET x etc... the GET request doesn't (*shouldn't) change anything.
comment 3y ago · link · parent
I was using the more complex examples from their README as well (except added a name to the second one to make it more useful).
> I would still argue I can get the same results with less typing.
so what? we type words and sentences much quicker than having to type control characters like - and |. also, you still have to know the invocations to sort and head off the top of your head without looking them up whereas a simple sql select statement is something most programmers would know how to do in their sleep.
git for-each-ref --format='%(refname:short)' refs/heads/ | while read branch; do
commit_count=$(git rev-list --count $branch)
[ "$commit_count" -le 10 ] && echo "Branch: $branch, Commit Count: $commit_count"
done
I think we can agree this is much more complicated to write than: SELECT name, commit_count FROM branches WHERE commit_count BETWEEN 0 .. 10
> If I run the 2nd command example against the chromium repo, it takes several minutes where a shell script using git for-each-ref takes about 8 seconds. I would also argue that this might be better expressed as commit_count <= 10 but I realize you're also using an example. This is the script I ran:if speed matters then your script is fine to bang out if you need it but for one off queries that you know to be correct (look at how simple the second query is) it is probably fine and most people aren't working on chromium so speed is probably never going to be an issue in the first place.
comment 3y ago · link · parent
SELECT name, COUNT(name) AS commit_num FROM commits GROUP BY name ORDER BY commit_num DESC LIMIT 10
something like that is more complex and less easily gleaned by the git gui. or something else that's dead simple to remember how to do in sql vs probably having to open up the git manpages or cobble some script together to do: SELECT name, commit_count FROM branches WHERE commit_count BETWEEN 0 .. 10comment 3y ago · link · parent
comment 3y ago · link · parent
https://www.thedrive.com/news/small-cars-are-getting-huge-ar...
comment 3y ago · link · parent
86% is nearly all to be fair(edit as of 2017)... not 99% nearly all but it's well more than half.
comment 3y ago · link · parent
comment 3y ago · link · parent
google operates on the pay 15$ and then you can submit any app and if people report you enough it gets removed and your account gets flagged. they might have some static analysis tools like the oop said. but in general apple is restrictive by default and google is permissive by default.
comment 3y ago · link · parent
https://www.gov.ca.gov/wp-content/uploads/2023/10/SB-58-Veto...
he's not anti-mushrooms but he's anti-unfettered access to mushrooms without guidelines in place. I don't know if it's the right call or not but mushrooms are something that's not really fit for general consumption; cannabis being fairly benign and understood is a different issue altogether and one that makes sense to have fairly unfettered access to at a population level.
354.
We now know how cats purr–why they purr is still up for debate(arstechnica.com ↗)
2 points · by weaksauce · 3y ago · discuss
comment 3y ago · link · parent
they don't mind that actually... they just want you to not sell it or anything too close to the original game. if you want to figure out how to compile it and play it they are fine with it. it seems to be the don't screw me over license.
comment 3y ago · link · parent
> Non-legal summary of license: Anyone can use or compile the code EVEN WITHOUT OWNING THE GAME. The code is open to everyone. If you're doing noncommercial or commercial things with a low budget ( < $50k/year), you can do anything, so long as you credit us. Don't sell anything unaltered (don't sell our sprites or music unaltered, or compile and try to sell the game unaltered.)