📂 Common Code File Formats & Their Meanings
Understanding different file formats is essential for developers. Here’s a quick guide to the most commonly used code-related file extensions:
🌐 Web Development
🔹 .html – Web page structure (HyperText Markup Language)
🔹 .css – Styles and design (Cascading Style Sheets)
🔹 .js – JavaScript code for web interactivity
🔹 .php – Server-side scripting (PHP Hypertext Preprocessor)
💻 Programming Languages
🔹 .py – Python script
🔹 .java – Java source code
🔹 .c / .cpp – C and C++ source files
🔹 .cs – C# source code
🔹 .kt – Kotlin file (Android development)
🔹 .swift – Swift code (iOS/macOS development)
🗃 Data & Configuration Files
🔹 .json – Lightweight data format (JavaScript Object Notation)
🔹 .xml – Structured data storage (Extensible Markup Language)
🔹 .csv – Tabular data in plain text (Comma-Separated Values)
🔹 .yaml / .yml – Configuration files (human-readable format)
🔹 .env – Environment variables file
📂 Database Files
🔹 .sql – Database queries and scripts
🔹 .db – Generic database file
🔹 .sqlite – SQLite database file
⚙ System & Executable Files
🔹 .bat – Windows batch script
🔹 .sh – Linux/macOS shell script
🔹 .dll – Windows application dependency
🔹 .exe – Windows executable file
🔹 .jar – Java application package
🔹 .mrp – Game & app file format used on older mobile devices
💡 Want to learn more about coding? Stay tuned! 🚀
@Html_codee
Which HTML attribute improves accessibility but does **not** change appearance?
Anonymous Quiz
33%
aria-label
67%
title
0%
alt
0%
hidden
Which of the following HTML elements is **not** valid inside a `<dl>`?
Anonymous Quiz
0%
<dt>
67%
<dd>
0%
<li>
33%
<div>
What does the <meta charset='UTF-8'> tag do?
Anonymous Quiz
0%
Sets page title
50%
Defines character encoding
50%
Adds CSS
0%
Increases speed
CodePen Blog
Chris’ Corner: Offlinin’ Aint Easy
I kinda like the idea of the “minimal” service worker. Service Workers can be pretty damn complicated and the power of them honestly makes me a little nervous. They are middlemen between the browser and the network and I can imagine really dinking that up, myself. Not to dissuade you from using them, as they can useful things no other technology can do.
That’s why I like the “minimal” part. I want to understand what it’s doing extremely clearly! The less code the better. Tantek posted about that recently, with a minimal idea:
You have a service worker (and “offline” HTML page) on your personal site, installed from any page on your site, that all it does is cache the offline page, and on future requests to your site checks to see if the requested page is available, and if so serves it, otherwise it displays your offline page with a “site appears to be unreachable” message that a lot of service workers provide, AND provides an algorithmically constructed link to the page on an archive (e.g. Internet Archive) or static mirror of your site (typically at another domain).
That seems clearly useful. The bit about linking to an archive of the page though seems a smidge off to me. If the reason a user can’t see the page is because they are offline, a page that sends them to the Internet Archive isn’t going to work either. But I like the bit about caching and at least trying to do something. Jeremy Keith did some thinking about this back in 2018 as well:
The logic works like this:
* If there’s a request for an HTML page, fetch it from the network and store a copy in a cache (but if the network request fails, try looking in the cache instead).
* For any other files, look for a copy in the cache first but meanwhile fetch a fresh version from the network to update the cache (and if there’s no existing version in the cache, fetch the file from the network and store a copy of it in the cache).
The implementation is actually just a few lines of code. A variation of it handles Tantek’s idea as well, implementing a custom offline page that could do the thing where it links off to an archive elsewhere.
I’ll leave you with a couple more links. Have you heard the term LoFi? I’m not the biggest fan of the shortening of it because “Lo-fi” is a pretty established musical term not to mention “low fidelity” is useful in all sorts of contexts. But recently in web tech it refers to “Local First”.
I see “local-first” as shifting reads and writes to an embedded database in each client via “sync engines” that facilitate data exchange between clients and servers. Applications like Figma and Linear pioneered this approach, but it’s becoming increasingly easy to do. Some notes on Local-First Development, Kyle Matthews
I dig the idea honestly and do see it as a place for technology (and companies that make technology) to step and really make this style of working easy. Plenty of stuff already works this way. I think of the Notes app on my phone. Those notes are always available. It doesn’t (seem to) care if I’m online or offline. If I’m online, they’ll sync up with the cloud so other devices and backups will have the latest, but if not, so be it. It better as heck work that way! And I’m glad it does, but lots of stuff on the web does not (CodePen doesn’t). But I’d like to build stuff that works that way and have it not be some huge mountain to climb.
That eh, we’ll just sync later/whenever when we have network access is super non-trivial, is part of the issue. Technology could make easy/dumb choices like “last write wins”, but that tends to be dangerous data-loss territory that users don’t put up with. Instead data need to be intelligently merged, and that isn’t easy. Dropbox is multi-billion dollar company that deals with this and they admittedly don’t always have it perfect. One of the major solutions is the concept of CRDTs, which are an [...]
Chris’ Corner: Offlinin’ Aint Easy
I kinda like the idea of the “minimal” service worker. Service Workers can be pretty damn complicated and the power of them honestly makes me a little nervous. They are middlemen between the browser and the network and I can imagine really dinking that up, myself. Not to dissuade you from using them, as they can useful things no other technology can do.
That’s why I like the “minimal” part. I want to understand what it’s doing extremely clearly! The less code the better. Tantek posted about that recently, with a minimal idea:
You have a service worker (and “offline” HTML page) on your personal site, installed from any page on your site, that all it does is cache the offline page, and on future requests to your site checks to see if the requested page is available, and if so serves it, otherwise it displays your offline page with a “site appears to be unreachable” message that a lot of service workers provide, AND provides an algorithmically constructed link to the page on an archive (e.g. Internet Archive) or static mirror of your site (typically at another domain).
That seems clearly useful. The bit about linking to an archive of the page though seems a smidge off to me. If the reason a user can’t see the page is because they are offline, a page that sends them to the Internet Archive isn’t going to work either. But I like the bit about caching and at least trying to do something. Jeremy Keith did some thinking about this back in 2018 as well:
The logic works like this:
* If there’s a request for an HTML page, fetch it from the network and store a copy in a cache (but if the network request fails, try looking in the cache instead).
* For any other files, look for a copy in the cache first but meanwhile fetch a fresh version from the network to update the cache (and if there’s no existing version in the cache, fetch the file from the network and store a copy of it in the cache).
The implementation is actually just a few lines of code. A variation of it handles Tantek’s idea as well, implementing a custom offline page that could do the thing where it links off to an archive elsewhere.
I’ll leave you with a couple more links. Have you heard the term LoFi? I’m not the biggest fan of the shortening of it because “Lo-fi” is a pretty established musical term not to mention “low fidelity” is useful in all sorts of contexts. But recently in web tech it refers to “Local First”.
I see “local-first” as shifting reads and writes to an embedded database in each client via “sync engines” that facilitate data exchange between clients and servers. Applications like Figma and Linear pioneered this approach, but it’s becoming increasingly easy to do. Some notes on Local-First Development, Kyle Matthews
I dig the idea honestly and do see it as a place for technology (and companies that make technology) to step and really make this style of working easy. Plenty of stuff already works this way. I think of the Notes app on my phone. Those notes are always available. It doesn’t (seem to) care if I’m online or offline. If I’m online, they’ll sync up with the cloud so other devices and backups will have the latest, but if not, so be it. It better as heck work that way! And I’m glad it does, but lots of stuff on the web does not (CodePen doesn’t). But I’d like to build stuff that works that way and have it not be some huge mountain to climb.
That eh, we’ll just sync later/whenever when we have network access is super non-trivial, is part of the issue. Technology could make easy/dumb choices like “last write wins”, but that tends to be dangerous data-loss territory that users don’t put up with. Instead data need to be intelligently merged, and that isn’t easy. Dropbox is multi-billion dollar company that deals with this and they admittedly don’t always have it perfect. One of the major solutions is the concept of CRDTs, which are an [...]
Html codes
CodePen Blog Chris’ Corner: Offlinin’ Aint Easy I kinda like the idea of the “minimal” service worker. Service Workers can be pretty damn complicated and the power of them honestly makes me a little nervous. They are middlemen between the browser and the…
impressive idea to say the least, but are complex enough that most of us will gently back away. So I’ll simply leave you with A Gentle Introduction to CRDTs.
👍1
🇨🇳 Ex-Google engineer busted for stealing AI secrets for China!
A former Google software engineer, Linwei Ding, has been charged with stealing AI trade secrets and allegedly funneling them to China.
Ding, hired in 2019, secretly uploaded 1,000+ confidential Google files while working with Chinese tech firms—and even launched his own AI startup in China.
Prosecutors say he stole supercomputing and chip design secrets to benefit the Chinese government.
@aipost 🪙 | Our X 🥇
A former Google software engineer, Linwei Ding, has been charged with stealing AI trade secrets and allegedly funneling them to China.
Ding, hired in 2019, secretly uploaded 1,000+ confidential Google files while working with Chinese tech firms—and even launched his own AI startup in China.
Prosecutors say he stole supercomputing and chip design secrets to benefit the Chinese government.
@aipost 🪙 | Our X 🥇
🔥 Must-Know APIs for Developers! 🔥
If you're a developer, these APIs will save you time and boost your productivity! 🚀
Which API do you use the most? Let us know in the comments! 💬
📌 Follow for more dev tips: @Html_codee
If you're a developer, these APIs will save you time and boost your productivity! 🚀
1️⃣ OpenAI API – Add AI-powered features like ChatGPT to your apps.
🔗 https://platform.openai.com
2️⃣ GitHub API – Automate repo management, CI/CD, and more.
🔗 https://docs.github.com/en/rest
3️⃣ Unsplash API – Get high-quality images for free.
🔗 https://unsplash.com/developers
4️⃣ Weather API (OpenWeatherMap) – Fetch real-time weather data.
🔗 https://openweathermap.org/api
5️⃣ Firebase API – Manage databases, authentication, and hosting easily.
🔗 https://firebase.google.com/docs
6️⃣ Twilio API – Send SMS, WhatsApp, and make calls programmatically.
🔗 https://www.twilio.com/docs
7️⃣ Stripe API – Integrate secure payments into your apps.
🔗 https://stripe.com/docs/api
8️⃣ Telegram Bot API – Build powerful Telegram bots.
🔗 https://core.telegram.org/bots/api
9️⃣ Google Maps API – Add interactive maps and geolocation to apps.
🔗 https://developers.google.com/maps
🔟 OCR API (Tesseract.js, Google Vision) – Extract text from images.
🔗 https://cloud.google.com/vision
Which API do you use the most? Let us know in the comments! 💬
📌 Follow for more dev tips: @Html_codee