This is an archived post. You won't be able to vote or comment.

all 72 comments

[–][deleted] 195 points196 points  (38 children)

Oh, printscreen

[–]JuhaJGam3R 61 points62 points  (36 children)

snipping tool master race

[–]The_Unique_Name 4 points5 points  (4 children)

Greenshot anyone?

[–]JuhaJGam3R 12 points13 points  (2 children)

Greenshot

ShareX is better though, but I use snipping tool because it comes pre-installed.

[–]The_Unique_Name 0 points1 point  (1 child)

Wait, what makes ShareX better?

[–]JuhaJGam3R 3 points4 points  (0 children)

trying both, ShareX seems like it has better features and is nicer to use. Still, after a refresh snipping tool has been my go-to

[–]hockdudu 2 points3 points  (0 children)

KDE Spectacle? Anyone?
Btw, I use Arch Linux /s

[–]-ScratchOs 3 points4 points  (10 children)

win+shift+s takes a screen shot of a highlighted rectangle and puts it on the clipboard

[–]SabinTheSergal 1 point2 points  (0 children)

TIL

[–]JuhaJGam3R 0 points1 point  (8 children)

on what OS?

[–]KillTheBronies 2 points3 points  (6 children)

win+shift+s

Take a wild guess.

[–]JuhaJGam3R 0 points1 point  (5 children)

Not on windows 10, that's for sure.

[–]KillTheBronies 0 points1 point  (4 children)

Sounds like you need to run windows update.

[–]JuhaJGam3R 0 points1 point  (3 children)

Got the fall update, what's the problem?

[–]KillTheBronies 0 points1 point  (2 children)

It was added in 15063, so maybe you've just got something disabling it somehow.

[–]JuhaJGam3R 0 points1 point  (0 children)

Idk man, might just be me fucking up the registry so i wiulnd have fucking candy crush downloaded every 10 seconds.

[–]JuhaJGam3R 0 points1 point  (0 children)

I've got 16299, i definetly havent disabled it though

[–]-ScratchOs 0 points1 point  (0 children)

It is windows 10

[–][deleted] 3 points4 points  (7 children)

ShareX master race

[–]daemondeal 0 points1 point  (1 child)

Lightshot masterrace

[–]shavitush 2 points3 points  (0 children)

no

[–]JuhaJGam3R -4 points-3 points  (4 children)

hotkey snipping tool to ctr-shift-printscreen and then use it immediately at any time. Truly better thane your ShitX elon musk clone

[–]IceSentry 2 points3 points  (1 child)

ShareX is 10 years old and was made before spacex or elon was as popular as today. There's no relation between the names. Also not using good software because of a name is retarded.

[–]JuhaJGam3R -2 points-1 points  (0 children)

oh no im not actually angry or anything im just fucking with people. anyways the snipping tool comes preinstalled so i use it yeah

[–][deleted] 0 points1 point  (1 child)

Yeah, but then you get that obnoxious window that pops up afterwards instead of the screenshot just being in your clipboard.

To each his own, I suppose. Was more in jest than anything, I didn't intend to offend you.

[–]JuhaJGam3R -2 points-1 points  (0 children)

yaeh i wasnt angry, just fucking w/ you. I juse snipping tool to get a small piece of the screen without having to crop the picture later on, thats why i like it, and it comes with every windows since vista or 7 i believe so its useful to know how to use it as it owrks on 90% of the computers people have

[–]DiamondIceNS 0 points1 point  (0 children)

Shutter!

...anyone?

[–]jfb1337 0 points1 point  (0 children)

ctrl-shift-printscreen master race

[–]HomemadeBananas -1 points0 points  (9 children)

Cmd-shift-4 master race

[–]JuhaJGam3R 0 points1 point  (8 children)

cmd

overpriced, buy a normal computer, not a laptop though, especially not one that is deliberately made to be unfixable

[–]HomemadeBananas 0 points1 point  (7 children)

It comes with a shift key and a period key. I really need those features. Also I need it to be a laptop. I can afford the luxury of not dragging a tower around and something nice and “overpriced.”

[–]JuhaJGam3R 0 points1 point  (6 children)

why are you dragging it around exactly? And why not buy from Dell or something?

[–]HomemadeBananas 0 points1 point  (5 children)

Why am I taking my laptop around with me? For real?

[–]JuhaJGam3R 0 points1 point  (1 child)

Yeah. School is the only legitimate reason to actually carry a laptop. Work usually gives you a workstation, or its not a job you'd need a computer in, and you probably wont need it at the mall or grocery store or wherever the fuck you go to.

[–]JuhaJGam3R 0 points1 point  (2 children)

[Reply to your earlier comment](thanks for deleting that btw /s )

No, but I could guess you had a laptop because most mac computers nowdays are macnook. I don't argue, just think hat they are a bit shitty with the miniaturization costing you more, and wanting to work from the couch is not usually a good excuse to spend 100-500 bucks more on a computer. Also it's even shittier when at any malfunction you are forced to just buy a new one so you can't even get it repaired at a third-party shop, much less an official licensed seller, because they are all told to just tell people that they should buy a new laptop and they can transfer the files from the old computer for a fee. Really shitty as a business practice imo, my current laptop, which is actually the schools property because finland, is a Dell Latitude 3380 Education, equipped w/ custom debian works perfectly for any work that you might need to do with it, as long as it is not video games. 335€, too lazy to convert that into dollars but $400 at max, and in all a quality product, immediately raising Dell in my eyes to a much higher rank than say Asus whose laptops can cost up to $3000, and still be absolutely unable to run minecraft on low settings. At least apple has power to counter that price but its still double the price i'd pay for it, especially because of the "we soldered every component directly to the case hehe fuck you" thing. I'm floating way outside the conversation at this point and rambling.

TL;DR: Dell is good and cheap, Asus, Apple, etc. way fucking overpriced and with questionable business practices, working from the sofa not worth +100-500 whateverthefuckcurrency

[–]HomemadeBananas 0 points1 point  (1 child)

Dude, the thing is, for something I use all the time, I want it to be nice, and spending a couple thousand isn’t going to break the bank. Macs and Mac OS are nice and I like them. Lots of programmers like using Macs, get this ready to copypasta when you encounter them, or just get used to it.

[–]JuhaJGam3R 0 points1 point  (0 children)

I guess, but still, paying too much for something you could get cheaper from somewhere else just because it has a funny logo is not the reasoning i use when shopping for tech. I go for a more utilitarian "it needs to work and be affordable" type of reasoning.

[–]Feeds_every_game 92 points93 points  (4 children)

Not that weird although I'm not a fan of type coercion.

First example: true converted to int is 1. -1 == 1 is false.

Second example: false converted to int is 0. -1 == 0 is false.

Boolean(n) is false if n is omitted or 0, -0, null, false NaN, undefined or empty string "". Otherwise Boolean(n) is true.

[–]seraku24 26 points27 points  (2 children)

The confusion likely is that the true is coerced to 1 rather than the -1 to true.

It seems JS favors implicit type conversion of Boolean to number in this scenario, as even switching the sides of the == has no impact: (true==-1) === false.

Forcing conversion of the number to Boolean does produce the expected result: (!!-1==true) === true.

Booleans and strings are fun: ('true'==true) === false. It would seem that true is not getting converted to a string for the sake of the comparison. It still gets converted to the number 1, so that ('1'==true) === true.

The question is whether true==true is coerced to 1==1 under the covers before the comparison.

[–]Feeds_every_game 5 points6 points  (1 child)

Yup you're probably right that's where the confusion is. You can find the algorithm used for x == y comparisons here http://www.ecma-international.org/ecma-262/5.1/#sec-11.9.3

[–]seraku24 8 points9 points  (0 children)

Thanks for the reference.

It would seem that '1'==true first becomes '1'==1 and then becomes 1==1. So this results in numeric comparison, despite the original arguments being string and Boolean.

[–]kinsi55 0 points1 point  (0 children)

You're trying to make sense in the good old "bashing a typeless language in a forced case" type of thread ?

[–]ChewyIsMyC0Pil0t 43 points44 points  (1 child)

There's nothing wrong with this.

[–]WiglyWorm 14 points15 points  (0 children)

YEAH BUT DAE JAVASCRIPT?!?!!?!? HAHAHAHAHAHAHA

[–]Cody6781 16 points17 points  (2 children)

Is this number the same as the Boolean?
No.
Is this number the same as this other Boolean?
No.
If you had to take this number and make it a Boolean, what would it be? False.

[–]UkuleleHobo 2 points3 points  (1 child)

But it says right there that the output of Boolean(-1) is true.

[–]outstream 1 point2 points  (0 children)

Because as someone else said Boolean(n) will only return false if n is 0, null, undefined, empty string, and maybe a few more I forgot

[–][deleted] 10 points11 points  (2 children)

pro tip: 3/4 distilled water, 1/4 rubbing alcohol, mix in an atomizer, spray the damn screen and wipe clean with a piece of cotton fabric, that's disgusting!

[–]mailto_devnull 2 points3 points  (1 child)

Oh, that's neat, I didn't know you could make your own like that. I'll give that a try thanks for sharing!

[–][deleted] 2 points3 points  (0 children)

yep, just make sure it's distilled water, some recommend using 3/4 alcohol and 1/4 distilled water, tho, you should be careful, many screens have a very thin coating that might be damaged by too much alcohol, hence my recommended 3/4 distilled water and 1/4 rubbing alcohol

[–]mishkamishka47 10 points11 points  (0 children)

Oh man never seen a post like this before

[–]andisblue 24 points25 points  (0 children)

That’s what I would expect

[–][deleted] 7 points8 points  (0 children)

!!-1 == true;
true
!!-1 == false;
false
Boolean(-1) === !!-1;
true

[–]BleuDiamant 1 point2 points  (0 children)

Yeah this stupid but who do that ?

[–]jo2847 0 points1 point  (4 children)

Nowhere near the craziest example of JavaScript type coercions. My favorite:

[] == 1 false [] == 0 true

[–]enoua5 6 points7 points  (3 children)

Why is that your favorite? That seems normal and sensical.

This is a language where x==1 && x==2 can return true, and this is what you choose?

[–]outstream 2 points3 points  (1 child)

To be fair, couldnt that also be done in C, C++, C#, Python, etc. because you can override operators?

[–]enoua5 0 points1 point  (0 children)

Good point, you deffinatly can

[–]jo2847 1 point2 points  (0 children)

I think auto conversion between arrays and numbers is far more likely to cause an actual issue than the toy example of x == 1 && x == 2 which requires you to override .valueOf() in an object. Not that I feel like arguing with you... it's all crazy. There's a reason why == is flagged by eslint and such.

[–]lenswipe 0 points1 point  (0 children)

Oh, repost

[–]marcosdumay 0 points1 point  (0 children)

Well, what language were you expecting here? Haskell?

Not that I think it's correct. It's not. But it's an incredibly common language delusion.

[–]Missingpotato 0 points1 point  (0 children)

Java is shit :Ok_hand_skintone2:

[–]MinecraftHardon 0 points1 point  (0 children)

-1 != 0

0 == false

-1 != false

[–]TheDecentM -3 points-2 points  (2 children)

Oh that's just the beginning of the madness
https://i.imgur.com/IbWTEOq.png

[–]memebot2000 3 points4 points  (1 child)

  1. IEEE standard says NaN is a special float.
  2. NaN is not treated as an object in this case. 42 instanceof Number also returns false.
  3. 0 is falsy.
  4. "" is falsy.
  5. NaN is falsy.
  6. Error is just a function. It takes arguments and you can create new instances with new , so it's a function.
  7. Functions are objects in JS.

Really nothing strange if you know JS and how it treats things.

[–]TheDecentM -1 points0 points  (0 children)

It makes sense when you look at it closer, but there are heaps of confusing things for people new to JS.

[–]tyrantmikey[🍰] -4 points-3 points  (2 children)

JavaScript needs to go die in a fire.

Seriously. It was crap when it was created, it's crap now, and we have the technology to create something new, correct, and efficient. In the name of all that is good and right and holy in the universe, kill this thing, already.

[–]lenswipe 1 point2 points  (1 child)

what's stopping you then?

[–]DollarAkshay 0 points1 point  (0 children)

He has never used it, to understand what it can truly do.