And it has pretty robust browser support: https://caniuse.com/dom-manip-convenience
If you don’t care about IE or Opera Mini you should be fine. And in nearly no project anyone cares about these two anymore. (But for Opera Mini you should definitely check your target audience!)
The $$() method returns an array (not a NodeList like the Element.querySelectorAll() method) of matching items. #Coding#WebDev#JavaScript
In Short, #NodeLists aren't a #JavaScript Feature it's an language agnostic Browser API. 🤯 querySelectorAll() and getElementsByTagName() aren’t JavaScript methods either. 🤪
I love how I use JavaScript for about 17 years now and still learn new/old things about it. ^^"
I don't care what anyone says, #ChatGPT and #coding is a match made in heaven. It's like having an assistant at your side that's available 24/7 and knows the most obscure crap imaginable.
Did you know in python you can stick a for loop in the list brackets and just BAM have a list? No “append” check it:
l=[chr(i+65) for i in range(0,26)]
print(l)
> [‘A’, ‘B’, ‘C’, … , ‘Z’]
(it will be the letters A-Z since the unicode for the capital letter starts at 65, chr renders these numbers as letters.)
Is that classy? For some reason this neat little feature isn’t really taught. I guess with a loop and appending you have not flexibility— but still this is cool. #python#coding#tricks
#AI tools like #GitHub#CoPilot can impressively improve #coding productivity, but before using them, check with your employer/client first! Every client I've reached out to about this has wanted to run it past their legal department first (which is a really smart move on their part!).
DO NOT, under any circumstances, allow these tools to send client/employer data to the AI vendors (which is necessary for their operation) without getting client/employer consent first.
This will be a core tenet of #professionalism for #developers enhancing their services with AI assistants, so best get in the habit now.
For anyone that wondered why Questlog only links to YouTube videos like game trailers and doesn't just embed the No Cookie version.
There are many reasons but one of the biggest reasons was the privacy philosophy of Questlog. But didn't I say No Cookie version? Yes, but it is not what you expect.
59 years ago today, the first computer program written in #BASIC was run.
The easy-to-learn and -use #programming language revolutionized #computing. A decade later, #BillGates would co-found #Microsoft to develop and sell the BASIC interpreter for the #Altair 8800, the first commercially successful desktop microcomputer.
I first learned it as a child on the #Commodore PET and #C64. Does that say anything about the current quality of my #SoftwareDevelopment? At least I don’t pine for line numbers, GOTO and GOSUB.
I'm Kuba, interested in #linux :arch_linux: #coding :programmer: and #FOSS, but also #cooking 🍛 and #fiction. I use he/him pronouns. I love people :QueerCat_Bisexual:
Aspiring pirate 🏴☠️ who is exploring his way of being #free, looking for a people who are full of positive energy and trying to give them the same :blobcatheart:
I just pushed a little performance update. If you want to learn more about this feature and a bit about the future of updates for Questlog, you can read my short post on Ko-Fi: https://ko-fi.com/Post/Small-update-on-images-Z8Z2KW1YT
Anyone good with HTML and CSS that can tell me why one of my pages have a gap and the other doesn't? It happens because of the backstory bit, but I don't see anything wrong? #HTML#CSS#Coding#help
Hi everyone. Would you all be willing to share your favorite resource for learning #go Right now I’m using code academy and am currently learning functions. #developers#programming#coding
While clearing out some messy directories on my laptop, I stumbled upon this old gem:
From that time I was working as a sysadmin, got bored, and wrote a solitaire game to play on the console.
How would you code this sort of outset gradient border with:
❌no JS
⚠️only 1 img element
❌no magic values for the gradient stops, they're obtained from img source
⚠️no SVG, no images in general other than the actual image & the border one
I've been doing it for 20 years, but every time there is a moment when you come across a bunch of code that you wrote a long time ago and you don't want to touch it anymore so as not to break it, and you look for a solution for half a day, and then you add one line and everything is fine