Just wanted to give props to this super informative comment. Thanks for the write up and relevant links!
Just wanted to give props to this super informative comment. Thanks for the write up and relevant links!
TS is “better” but often I feel like just configuring typescript takes up a significant amount of the time you save by using it.
deleted by creator
Spotify pays artists based on how many listens their songs get, so if you can get a bunch of bots to stream your music over and over you can get a legitimate income stream.
In this case, they’re using their illegal income to pay people to use a botnet to stream their songs - which then means they have a nice legal income instead.
Mostly agree. I’m ok with single characters in a one line / single expression lambda, but that’s the only time I’m ok with it.
I came across this one just yesterday and while it was convenient at first, I immediately got frustrated when I went to add some parameters and discovered it wasn’t actually curl
Those look like small cards. But why not just inspect the page and grab the CSS if you’re so focused in re-creating them? Why try to find and shoehorn a component from a UI library to look exactly like that when your browser will tell you exactly how it looks the way it does?
GitHub Copilot is just intellisense that can complete longer code blocks.
I’ve found that it can somewhat regularly predict a couple lines of code that generally resemble what I was going to type, but it very rarely gives me correct completions. By a fairly wide margin, I end up needing to correct a piece or two. To your point, it can absolutely be detrimental to juniors or new learners by introducing bugs that are sometimes nastily subtle. I also find it getting in the way only a bit less frequently than it helps.
I do recommend that experienced developers give it a shot because it has been a helpful tool. But to be clear - it’s really only a tool that helps me type faster. By no means does it help me produce better code, and I don’t ever see it full on replacing developers like the doomsayers like to preach. That being said, I think it’s $20 well spent for a company in that it easily saves more than $20 worth of time from my salary each month.
Out of all the modern browsers, it’s always Safari that I end up needing to write compatibility code for. I’m sure the app works fine on Firefox, they just haven’t tested it.
What exactly are you trying to do with the height?
It’s not just because of nonsense, it’s more that it doesn’t really matter what you do - the only thing stopping someone with physical access to your machine is their level of determination.
At some point, there’s no stopping the laws of physics. Your data is physically stored there. You can do a lot to make it really difficult to access it, but the best you can do is full disk encryption with a sufficiently strong key, and only store that key on external hardware that isn’t accessible to the attacker.
Even then, you better make sure that your encryption key wasn’t hanging around cached anywhere in memory before you shut down your computer.
I like to draw my pages out on graph paper, then just use position: absolute
and tons of media queries to place everything with x and y coordinates. It’s the ultimate grid system.
I would absolutely consider shipping non-minified bootstrap doing something wrong
Grid is just flexbox but worse
The choice between Linux and Windows is not just about ideologically choosing open vs closed source software.
If you don’t want to use closed source software, don’t use VS Code - but if you want to use Linux, and you want to use VS Code, those two choices are totally compatible and perfectly valid
What bike do you use and would you recommend it? I’ve been looking for an e-bike recently since I work so close to home, but I haven’t found any that seem reputable and a good value. I’m definitely looking for one that’s easily repairable and not paired to a specific brand’s software or proprietary parts.
Granted, I’ve only been passively looking (I.e. when I see an ad or doing a quick google search sometimes), but from what I can tell most of the advertised bikes are just the same handful of models with a different logo slapped on it and dubious claims about its performance.
The Odin Project is an excellent resource. I’d recommend working your way through both the “paths” they have - take both the Ruby and JavaScript paths. To land a job you’ll want a thorough understanding of the back end and while Ruby doesn’t have as high of a demand anymore, I do think it’s important to build skills in more than one language to be a compelling candidate. If you don’t want to take the Ruby course, I’d recommend learning how to build a back end in C#/Java to make yourself more well rounded.
They also recently released a React course - I haven’t checked that out yet, but it’s a highly marketable skill and the rest of their curriculum is great so I’d imagine that is too.
In any case, they do a great job in teaching you how to “think like a developer” instead of just how to follow a tutorial- which should give you a good foundation for building your own portfolio. TOP played a huge role in landing my first job - but you do need to hold yourself accountable to studying every day if you want to succeed through self-studying.
You’ll never understand why people want to check out the latest app from a major tech company?
I get it if you aren’t interested personally, but it seems strange to not understand why people would want to try it.
TypeScript is essentially the “measure twice, cut once” approach to JavaScript.
Yeah, anything can be anything in JS and the type declarations don’t make it into the compiled JS, but allowing anything to be anything starts to become fairly dangerous when the size of your projects starts to grow and especially when you’re working with a team.
Rather than writing functions and just hoping they always get called with a parameter that has the properties you expect to use, TypeScript helps you make sure that you always are calling that function with the right object in the arguments. You don’t need to debug some runtime error up and down 8 frames in the call stack because this week you named a property “maxValue” but last week you used “maxVal” or you forgot to parseInt some string because you thought it would be coerced - you just need to make sure your types match and eliminate that type of debugging altogether.
All in all, TS really just enforces a bit of sanity to the foot gun that is vanilla JS.
That’s because it makes sense when dynamically creating HTML. HTML is not a programming language, it’s simply markup - so if you want to generate some block of HTML in a loop and later access that block of HTML in JS (e.g. to interact with the UI separate from creating it in the first place), it’s a completely reasonable thing to do.