|
poemdexter posted:I assume any javascript book published is instantly outdated because javascript suffers heavily from flavor of the month libraries. I also assume no one writes pure javascript any more either. It's not a real Javascript book if it doesn't come with DRM that bricks it the second someone quoted there gets angry and ragequits the project.
|
# ? Aug 27, 2018 17:02 |
|
|
# ? May 21, 2024 00:05 |
|
Javascript the good parts, new edition, in its entirety:quote:transpilers from usable languages exist
|
# ? Aug 27, 2018 17:08 |
|
Huh, could've sworn there were second and third editions, but nope! Still just the 2008 version. Good thing the industry/field is so slow to change, I guess.Suspicious Dish posted:Senior architect at PayPal lol they're still paying him to jerk off in the corner. I bet they require everyone to use his inferior linter internally, too, to help justify it.
|
# ? Aug 27, 2018 18:23 |
|
TooMuchAbstraction posted:Nope! It just gets silently truncated! That or somebody intentionally disabled strict mode, probably to get rid of thousands of warnings. Turn it back on to embrace true horror, or find out it really does truncate silently. Unrelated:
|
# ? Aug 27, 2018 18:24 |
|
unfortunately, they actually don't
|
# ? Aug 27, 2018 18:27 |
|
Ranzear posted:
FYI: WebUSB is a thing.
|
# ? Aug 27, 2018 19:28 |
|
MrMoo posted:FYI: WebUSB is a thing. Let me tell u about NodeOS
|
# ? Aug 27, 2018 19:30 |
|
MrMoo posted:FYI: WebUSB is a thing. Abstract posted:This document describes an API for securely providing access to Universal Serial Bus devices from web pages. On a scale of 1 to 11, how bullshit is this?
|
# ? Aug 27, 2018 19:31 |
|
Absurd Alhazred posted:On a scale of 1 to 11, how bullshit is this? Webcam, microphone, and storage media are already securely accessible from web pages. It's not quite as insane as it sounds, and they propose similar security mechanisms.
|
# ? Aug 27, 2018 19:35 |
|
feedmegin posted:Let me tell u about NodeOS Appears to be a Linux kernel with the init process being node, a bit weak sauce really, much like monowall runs PHP as the init process. Google are the ones pushing for webUSB: https://developers.google.com/web/updates/2016/03/access-usb-devices-on-the-web Apart from the cute Arduino integration they point towards authentication, i.e. replacing crusty Gemalto junk. I would approve on that front. MrMoo fucked around with this message at 19:48 on Aug 27, 2018 |
# ? Aug 27, 2018 19:36 |
|
Absurd Alhazred posted:It's not a real Javascript book if it doesn't come with DRM that bricks it the second someone quoted there gets angry and ragequits the project. is this a reference to something? sounds hilarious.
|
# ? Aug 27, 2018 19:51 |
|
Shinku ABOOKEN posted:is this a reference to something? sounds hilarious. isnt that leftpad, just w/o the drm bits
|
# ? Aug 27, 2018 19:57 |
|
Doom Mathematic posted:java script: The Good Parts is very out-of-date now. I wouldn't recommend it.
|
# ? Aug 27, 2018 20:12 |
|
bob dobbs is dead posted:isnt that leftpad, just w/o the drm bits You need some kind of DRM, otherwise books usually don't brick. comedyblissoption posted:over time the good parts have gotten narrower What's left?
|
# ? Aug 27, 2018 20:19 |
|
Absurd Alhazred posted:You need some kind of DRM, otherwise books usually don't brick. A soother (pacifier).
|
# ? Aug 27, 2018 20:27 |
|
comedyblissoption posted:over time the good parts have gotten narrower Huh, actually, none of that seems too out of line to me.
|
# ? Aug 27, 2018 21:56 |
Munkeymon posted:Huh, actually, none of that seems too out of line to me. They're definitely in line with how I prefer to do JS. The book was also fine in its day and still has good points. There's a perfectly fine little functional language hiding in the bloated beast of JS. With a bit of discipline you can avoid most of the gotchas. Of course it would be better if the language didn't have those gotchas, but oh well.
|
|
# ? Aug 27, 2018 22:29 |
|
Plus, the automated tools for catching those gotchas are getting better every year. Get ESLint and crank the settings up, or just get a well-regarded canned configuration for it, and the amount of discipline needed becomes minimal.
|
# ? Aug 27, 2018 22:59 |
|
Munkeymon posted:Huh, actually, none of that seems too out of line to me. I still use "new" / "this" and "null", but then again I also use TypeScript which has incredible amounts of safety around those features. poemdexter posted:I assume any javascript book published is instantly outdated because javascript suffers heavily from flavor of the month libraries. I also assume no one writes pure javascript any more either. If by "pure JavaScript" you mean "raw DOM up the rear end, no helper libraries", then I do that and enjoy it.
|
# ? Aug 28, 2018 03:35 |
|
|
# ? Aug 28, 2018 09:55 |
|
|
# ? Aug 28, 2018 14:30 |
|
What do Front-End Web
|
# ? Aug 29, 2018 05:55 |
|
Absurd Alhazred posted:On a scale of 1 to 11, how bullshit is this? An insane security disaster waiting to happen posted:If a device is compromised then in addition to abusing its own capabilities the attacker may also use it to in turn attack the host to which it is connected or if the exploit is persistent any host it is connected to later. The methods above are the ways in which this specification attempts to mitigate this attack vector for once the device is under the control of an attacker (for example, by uploading a malicious firmware image) there is nothing that can be done by the UA to prevent further damage.
|
# ? Aug 29, 2018 06:26 |
|
comedyblissoption posted:over time the good parts have gotten narrower ... is he wearing a morning coat?
|
# ? Aug 29, 2018 13:36 |
|
He's clearly conducting an orchestra.
|
# ? Aug 29, 2018 16:09 |
|
MrMoo posted:FYI: WebUSB is a thing. that's about as useful as writing a browser that runs in webassembly.
|
# ? Aug 29, 2018 20:02 |
|
I noticed that Chrome OS also supports JavaScript USB drivers minus the web bit. Consider there are a fair number of long life devices that could work well in this scope: security keys, CNC machines, electron microscopes and similar. Think of all the junk Windows 95 and aged equipment people are keeping purely because lovely software and drivers don't exist on even near modern systems. MrMoo fucked around with this message at 20:15 on Aug 29, 2018 |
# ? Aug 29, 2018 20:12 |
|
MrMoo posted:I noticed that Chrome OS also supports JavaScript USB drivers minus the web bit. Ok, but who's going to bother to adapt their drivers to that webusb spec if no one could be bothered to update said drivers to run on like Vista or some kind of Linux?
|
# ? Aug 29, 2018 20:27 |
|
It's more of a selling point for new hardware. The existing equipment you are probably better off finding an investigative engineer to reverse engineer a webUSB driver.
|
# ? Aug 29, 2018 20:34 |
|
MrMoo posted:It's more of a selling point for new hardware. The existing equipment you are probably better off finding an investigative engineer to reverse engineer a webUSB driver. And why should we expect the WebUSB driver interface to not end up changing enough that your driver shipped with the device now won't require an old browser to still work in 20 years? I'm not seeing anything in it that'll be inherently amenable to long term compatibility.
|
# ? Aug 29, 2018 20:38 |
|
USB interface is well defined and a significant implementation base, the comparison is older proprietary interfaces and junk that may no longer be in production or has significant limitations on integration: such as lack of plug-and-play with most legacy interfaces. It's guaranteed that USB will be replaced some day but it's not like something that will be inherently lost and already has proven connect integration such as USB over ethernet or Thunderbolt & Lightning.
|
# ? Aug 29, 2018 20:48 |
|
MrMoo posted:USB interface is well defined and a significant implementation base, the comparison is older proprietary interfaces and junk that may no longer be in production or has significant limitations on integration: such as lack of plug-and-play with most legacy interfaces. Most of the old devices with missing drivers were on standard ports too - RS-232 or 422 serial, the same parallel standards as printers, and hell many are in fact USB. This tells you nothing about whether you'll be able to make the device do what it's supposed to do in the future, just like this old digital camera with USB port I have doesn't function past Windows XP.
|
# ? Aug 29, 2018 20:51 |
|
The bigger challenge is when the HID and layers above change, that's when all the old cameras died as USB file access became a standard and you no longer required drivers. The typical Chinese vendor would have written to one driver interface in 32-bit code that is now incompatible with 64-bit platforms and newer interfaces. You can follow the progress with Vulkan, Metal, DirectX for what can happen when things are going well, many developers are creating compatibility layers and libraries so stuff works together and you don't have the gigantic cost of a full OpenGL stack. If HID layers above USB change then there will likely be teams of developers creating compatibility layers to keep all the legacy interfaces still running. Serial devices are hard to keep running because of the synchronous clock, that hasn't prevented people trying with the 1001 USB-RS232 adapters and similar. Now that everything supports asynchronous communication to some degree keeping that compatibility is significantly easier. MrMoo fucked around with this message at 21:03 on Aug 29, 2018 |
# ? Aug 29, 2018 21:01 |
|
https://twitter.com/mattblaze/status/1034844783691190272
|
# ? Aug 30, 2018 01:59 |
|
I also want a data structure way of life. I lounge in the shade of a binary search tree.
|
# ? Aug 30, 2018 05:55 |
|
I'm a heap.
|
# ? Aug 30, 2018 14:33 |
CPColin posted:I'm a heap. I'm a stack. This is awkward.
|
|
# ? Aug 30, 2018 14:39 |
|
I'm a queue. Don't ask.
|
# ? Aug 30, 2018 15:32 |
|
With FIFO and LIFO taken, I'm an octree with two spatial dimensions and one temporal.
|
# ? Aug 30, 2018 18:56 |
|
|
# ? May 21, 2024 00:05 |
|
I’m a dictionary implemented as a linked list of linked lists each of length 2
|
# ? Aug 30, 2018 21:00 |