Rust sisters? What is we doing?
- 31
- 51
Top Poster of the Day:
LiterallyShaking
Current Registered Users: 25,046
tech/science swag.
Guidelines:
What to Submit
On-Topic: Anything that good slackers would find interesting. That includes more than /g/ memes and slacking off. If you had to reduce it to a sentence, the answer might be: anything that gratifies one's intellectual laziness.
Off-Topic: Most stories about politics, or crime, or sports, unless they're evidence of some interesting new phenomenon. Videos of pratfalls or disasters, or cute animal pictures. If they'd cover it on TV news, it's probably lame.
Help keep this hole healthy by keeping drama and non-drama balanced. If you see too much drama, post something that isn't dramatic. If there isn't enough drama and this hole has become too boring, POST DRAMA!
In Submissions
Please do things to make titles stand out, like using uppercase or exclamation points, or saying how great an article is. It should be explicit in submitting something that you think it's important.
Please don't submit the original source. If the article is behind a paywall, just post the text. If a video is behind a paywall, post a magnet link. Fuck journos.
Please don't ruin the hole with chudposts. It isn't funny and doesn't belong here. THEY WILL BE MOVED TO /H/CHUDRAMA
If the title includes the name of the site, please leave that in, because our users are too stupid to know the difference between a url and a search query.
If you submit a video or pdf, please don't warn us by appending [video] or [pdf] to the title. That would be r-slurred. We're not using text-based browsers. We know what videos and pdfs are.
Make sure the title contains a gratuitous number or number + adjective. Good clickbait titles are like "Top 10 Ways to do X" or "Don't do these 4 things if you want X"
Otherwise editorialize. Please don't use the original title, unless it is gay or r-slurred, or you're shits all fucked up.
If you're going to post old news (at least 1 year old), please flair it so we can mock you for living under a rock, or don't and we'll mock you anyway.
Please don't post on SN to ask or tell us something. Send it to [email protected] instead.
If your post doesn't get enough traction, try to delete and repost it.
Please don't use SN primarily for promotion. It's ok to post your own stuff occasionally, but the primary use of the site should be for curiosity. If you want to astroturf or advertise, post on news.ycombinator.com instead.
Please solicit upvotes, comments, and submissions. Users are stupid and need to reminded to vote and interact. Thanks for the gold, kind stranger, upvotes to the left.
In Comments
Be snarky. Don't be kind. Have fun banter; don't be a dork. Please don't use big words like "fulminate". Please sneed at the rest of the community.
Comments should get more enlightened and centrist, not less, as a topic gets more divisive.
If disagreeing, please reply to the argument and call them names. "1 + 1 is 2, not 3" can be improved to "1 + 1 is 3, not 2, mathfaggot"
Please respond to the weakest plausible strawman of what someone says, not a stronger one that's harder to make fun of. Assume that they are bad faith actors.
Eschew jailbait. Paedophiles will be thrown in a wood chipper, as pertained by sitewide rules.
Please post shallow dismissals, especially of other people's work. All press is good press.
Please use Slacker News for political or ideological battle. It tramples weak ideologies.
Please comment on whether someone read an article. If you don't read the article, you are a cute twink.
Please pick the most provocative thing in an article or post to complain about in the thread. Don't nitpick stupid crap.
Please don't be an unfunny chud. Nobody cares about your opinion of X Unrelated Topic in Y Unrelated Thread. If you're the type of loser that belongs on /h/chudrama, we may exile you.
Sockpuppet accounts are encouraged, but please don't farm dramakarma.
Please use uppercase for emphasis.
Please post deranged conspiracy theories about astroturfing, shilling, bots, brigading, foreign agents and the like. It degrades discussion and is usually mistaken. If you're worried about abuse, email [email protected] and dang will add you to their spam list.
Please don't complain that a submission is inappropriate. If a story is spam or off-topic, report it and our moderators will probably do nothing about it. Feed egregious comments by replying instead of flagging them like a pussy. Remember: If you flag, you're a cute twink.
Please don't complain about tangential annoyances—things like article or website formats, name collisions, or back-button breakage. That's too boring, even for HN users.
Please seethe about how your posts don't get enough upvotes.
Please don't post comments saying that rdrama is turning into ruqqus. It's a nazi dogwhistle, as old as the hills.
Miscellaneous:
We reserve the right to exile you for whatever reason we want, even for no reason at all! We also reserve the right to change the guidelines at any time, so be sure to real them at least once a month. We also reserve the right to ignore enforcement of the guidelines at the discretion of the janitorial staff. Be funny, or at least compelling, and pretty much anything legal is welcome provided it's on-topic, and even then.
Do not use outdated operating systems that are unsupported to access SN. What are you, poor?
[[[ To any NSA and FBI agents reading my email: please consider ]]]
[[[ whether defending the US Constitution against all enemies, ]]]
[[[ foreign or domestic, requires you to follow Snowden's example. ]]]
/h/slackernews LOG /h/slackernews MODS /h/slackernews EXILEES /h/slackernews FOLLOWERS /h/slackernews BLOCKERS
Jump in the discussion.
No email address required.
Jump in the discussion.
No email address required.
Just use IS-EVEN
https://github.com/baWedekind/is-even
Jump in the discussion.
No email address required.
Jump in the discussion.
No email address required.
More options
Context
More options
Context
Jump in the discussion.
No email address required.
More options
Context
More options
Context
https://old.reddit.com/r/programming/comments/886zji/comment/dwith6b?sort=controversial I learned how to program in 2014. I created is-odd after I had only been programming for a few months, after I noticed that there were hundreds of thousands of views on the http://stackoverflow.com question asking how to check for an odd number. I was learning... not only about programming but also about how publishing packages worked.
In any case, since this entire thread is resting on the concept of is-odd being a useless library, I'll just focus on the code instead of the comments being made. Here is what you will get with the popular suggestion of using "i % 2".
I guess that's good enough for your code.
edit: to bobcat, that's exactly what I was saying. Thanks for the upvote, and thanks for nerd raging why it's not as simple as "i % 2", specifically because ofJavaScript's floating point error. Let me say it another way. In JavaScript, you might think you're testing an integer, when in fact you're testing a float.
edit 2: this is conveniently being overlooked, but you wouldn't know my module existed if you weren't depending on code someone else wrote. You're complaining about small modules, but at the end of the day, developers need to decide for themselves where the balance is between relying on their own code or someone else's. You clearly don't write all of your own code or you wouldn't be complaining about dependencies right now. You want your dependency tree to be small, but you're still complaining about work that someone else did for free to create the libraries you're using. Webpack wouldn't exist if there wasn't anything to pack. So wtf? You're going to hate on a fellow developer because they created a library? Then all of a sudden I have an evil scheme of world dominance, and it's all rooted in is-odd? Mwwaaahaaahaha! It's working!
edit 3: to the geniuses who are making comments about webpack and how "OMG THIS IS ADDING SO MUCH CODE!!!!". Let me explain how node.js and webpack work. Whether your code is in node_modules/foo/index.js, or lib/utils.js makes no difference. Both the require system, and webpack will treat them the same. Whether you inline the code or use a module, approximately the same number of bytes will be used. Specifically, you would save literally 14 bytes by re-writing the code locally, rather than using a module in this case. If you have to re-write the code multiple times, then your package might save 14 bytes, but you personally will write more code.
Both packages, is-number and is-odd, add up to a total of 371 bytes in a webpack build. You can cut this down to 357 bytes locally. You can get rid of the type and error checking if you don't need them, but we're still talking about a few bytes. !codecels
Jump in the discussion.
No email address required.
Webshits aren't human
Jump in the discussion.
No email address required.
This is true, but JavaScript was designed by deranged arcanists.
Jump in the discussion.
No email address required.
More options
Context
More options
Context
That's nice sweaty. Why don't you have a seat in the time out corner with Pizzashill until you calm down, then you can have your Capri Sun.
Jump in the discussion.
No email address required.
More options
Context
More options
Context
This is a parody of the equivalent javascript NPM package which is actually heavily used
Jump in the discussion.
No email address required.
is-even actually depends on is-odd, which does all the hard work
https://www.npmjs.com/package/is-even?activeTab=dependencies
Jump in the discussion.
No email address required.
More options
Context
Jump in the discussion.
No email address required.
More options
Context
Jump in the discussion.
No email address required.
More options
Context
More options
Context
Why does this even need to exist?
Jump in the discussion.
No email address required.
Jump in the discussion.
No email address required.
More options
Context
publishing dumb basic shit is funny
Jump in the discussion.
No email address required.
The post and exposing this is funny. I just don't understand why such a programming 101 concept needs to be a module.
How many times do you need to check if something is even or odd
If dumb shit like this is a dependency then obviously other dumb shit in your code is going to be filled in by dependencies. You're now pretty much giving everyone single third party permission to frick with your code via an update.
Write it your fricking self and if you can't then please keep yourself safe or find another job.
Jump in the discussion.
No email address required.
Jump in the discussion.
No email address required.
More options
Context
python users BTFO
Jump in the discussion.
No email address required.
I just installed a plugin that calls that guy gay every time I run my code
Jump in the discussion.
No email address required.
More options
Context
More options
Context
More options
Context
This
Jump in the discussion.
No email address required.
More options
Context
More options
Context
More options
Context
it took me a solid 5 minutes to comprehend what's going on here
Jump in the discussion.
No email address required.
Hahahahaha it took me two suck it
Jump in the discussion.
No email address required.
Jump in the discussion.
No email address required.
More options
Context
More options
Context
You lost the game.
Jump in the discussion.
No email address required.
More options
Context
More options
Context
Are rustcels r-slurred?
Jump in the discussion.
No email address required.
More options
Context
Someone should commit “is_true()” and say it’s more trans inclusive or something.
Jump in the discussion.
No email address required.
More options
Context
Why doesn't this have a Code of Conduct?
Jump in the discussion.
No email address required.
More options
Context
you know how on supernatural they kill a shapeshifter and it starts flipping between a bunch of different forms before it dies, it's like that but for a civilization
Snapshots:
archive.org
ghostarchive.org
archive.ph (click to archive)
Jump in the discussion.
No email address required.
More options
Context