10,505 karma · joined Feb 3, 2021 (5y ago) · 2,505 submissions
comment 4y ago · link · parent
You create the import map by figuring out what dependencies you want to use and crafting it and your code to reference them. You can do anything--you can import five different versions of the same library but under different names if you want. This was not something even possible with node and npm. You can make it as simple or as complex as your needs require. For most people they'll keep it simple and drop a few import urls directly in their source, never even needing to touch a tool or other file to worry about dependencies.
They're giving users what they want, an ability to run packages which haven't been ported to work with deno yet. The blog post explicitly makes this clear. This is not some grand conspiracy like so many replies seem to be trying to imply.
comment 4y ago · link · parent
comment 4y ago · link · parent
Having a file to manage locked dependency versions isn't bad. Having a file that has grown into a crufty monster with millions of uses can be bad.
comment 4y ago · link · parent
Deno has a concept of locking dependencies to specific versions with a lock file: https://deno.land/manual/linking_to_external_code/integrity_...
Its the same stuff npm does but it doesn't depend on npm's CLI. It sounds like you're mad they're moving the cheese a bit. IMHO I'm glad to be rid of the npm ecosystem baggage.
comment 4y ago · link · parent
Deno's philosophy is to be aligned with web browser standards. I suspect import maps will be the path forward for most projects as it's what browsers will or are supporting today too.
comment 4y ago · link · parent
comment 4y ago · link · parent
comment 4y ago · link · parent
It's so funny when I'm with someone and navigating, they see me using Google maps and then are bewildered when I don't turn on the turn by turn yet still get where we're going. They almost can't believe it's possible.
comment 4y ago · link · parent
comment 4y ago · link · parent
comment 4y ago · link · parent
ASP.NET + Windows, sure that makes total sense. Even C++ + Windows is solid and very performant. But node.js has always been a second class citizen with Windows support (it wasn't until Microsoft themselves put fulltime devs working on node that it supported Windows) and it's a huge bet to take with very little benefit and tons of potential failures.
comment 4y ago · link · parent
comment 4y ago · link · parent
comment 4y ago · link · parent
comment 4y ago · link · parent
comment 4y ago · link · parent
It's super trendy to obsess over getting the hottest pizza oven--something that gets up to 800 degrees, etc--so you can get super authentic restaurant pizza at home. That's great and a fun hobby for some folks I'm sure, but a cast iron pan with a long overnight fermentation of the dough is a game-changer for from scratch pizza for me.
comment 4y ago · link · parent
You do have to be careful about scratching anodized stuff too. The anodization will scratch and flake off if hit with hard material like steel. But again it's usually not anodized material directly in contact with the cooking surface since they put nonstick there.
comment 4y ago · link · parent
If bash works for you, stick with it. It does not work with large teams and people who aren't deeply experienced in all the footguns of bash in my experience.
comment 4y ago · link · parent
comment 4y ago · link · parent
Going even further, what is stopping a malicious attack on the package source itself--like someone gaining control of the package source and committing a malicious version (as NPM, pypi and other registries have seen)?
The point is, "use your package manager" is not any better in the grand scheme of things than blindly curling and executing a script. Neither option is perfectly secure.
comment 4y ago · link · parent
comment 4y ago · link · parent
The font rendering is great and you can adjust padding, margin, etc. to tweak readability for your tastes. I'm a fan of plain background with good contrast color, larger than normal font, and a clean one character wide padding around the terminal. It feels a lot like a web browser display. I hate terminals that go for the smallest possible font and super dense output.
comment 4y ago · link · parent
Could your write a bash script that does stuff like enumerate all the bin scripts, pull out documentation comments, etc.? Absolutely, and people have followed that pattern for a while (see https://github.com/qrush/sub) but it's a bunch of boilerplate to copy between projects. Just pulls out that logic into a simpler config file.
comment 4y ago · link · parent