346 karma · joined December 7, 2019
There are no textarea on that page. The code sections are using a <pre>
(it's an internal tool, don't look for a pricing page)
> So I’m going to try to bootstrap my software engineering longbeard wisdom in the following manner:
> 1) Write out my inane thoughts on some software engineering topics.
> 2) Share out my thoughts to people smarter than me and invite vicious critique.
> 3) Update based on #2.
> 4) Attempt to come up with a methodology for finding and prioritizing useful information to read about software engineering, or reflections based on new projects, and integrating into #1.
If there is an error when reading a file or accessing a database, unless the file or database API is horrendously designed, it will reject the promise or throw.
Now yes, our uni probably shouldn't be giving out userdirs to all students, much like wifi, you should only let in the people you trust. But that's exactly the point of the article.
using npx (included with npm):
npx serve .
using the php CLI: php -S localhost:5000 -t .
You weren't hitting the limits of vanilla JS, you were hitting the limit of reading files directly from disk instead of through a web server.That's just silly. Assuming it also disallows duplicates next to one another, that means that there is only 7 valid digits for position 2 through 4, aka 10 * 7 * 7 * 7 = 3730 possible combinations, less than half the search space.
https://www.destroyallsoftware.com/screencasts/catalog/a-com...
Basically compile the text content of all your files into a JSON file, and search over that in JS. If the site is not small enough for this approach, go with an external search provider or don't make it a static site.
I have to disagree here. Messing with people's pinned taskbar icons is much more intrusive than a suggestion (which anyone sane has already disabled)
> why are they so heavy handed on the windows side of things
I'm sorry but that's pretty funny right before suggesting to literally change users settings without their consent.
https://lk-games.itch.io/citizen-of-nowhere
This game is made using love2d
When you're starting out, you're not going to do much in the first place
> the language itself has at least as much WTF as php does
Oh absolutely! My argument was mostly that for getting started, JS has actually less setup than PHP, not that it's a better language, or that it's a better learning language (although I happen to also believe both of those things but for different reasons, mostly because of the easily available REPL and debugger available in browsers, whereas debugging PHP is much more involved)
> Most people starting from zero should be able to build & deploy a todo list app in 1-2 days
and you can make a (local) todo list app in JS in the same amount of time without installing anything (because let's be real, setting up a database and web server, even bundled solutions like XAMPP can be a real challenge when you're starting out if anything at all goes sideways), and you can deploy it for free by just uploading the files to github from your browser. And if you feel that doing this without a framework is too hard there's a slew of tutorials to do it with jQuery (in the old and outdated category) or React/Vue (which don't have the added typescript complexity of Angular)
I am not saying that PHP isn't great to start with, but I feel like more and more JS can really compete in that space, and has some key advantages for further progression.