programming-language

DEV Community

Images are still the single heaviest asset on most web pages, and one unoptimized hero shot can wreck your Largest Contentful Paint (LCP) before a line of your JavaScript even runs. The catch is that manual optimization — dragging files through a desktop tool before every deploy — simply does not scale. The moment your users start uploading their own avatars, products, or listings, compression ha…

computer-scienceprogramming-languages
DEV Community

If you have ever hand-written networking code to talk to a backend, you know the pain. You read some documentation, design your request and response types, write the URL handling and JSON decoding, and eventually get something that seems to work. Then the API changes, the docs fall behind, a field gets renamed, and suddenly your app is silently failing in production. gRPC removes most of that fri…

computer-scienceprogramming-languages
DEV Community

Building My First Real API in Go — with Gin In part 4 I worked through Go's error handling model and came around on if err != nil . This is the post where everything from the last four parts — structs, interfaces, goroutines, error wrapping — stops being theoretical and actually gets wired into something that runs, accepts requests, and talks to a database. I'm building a small Orders API: create…

computer-scienceprogramming-languages
DEV Community

doc: Update readme to set stage to 2.7 by JeanMeche · Pull Request #578 · tc39/proposal-decorators · GitHub Updated the stage of the decorators proposal from 3 to 2.7. github.com

computer-scienceprogramming-languages
DEV Community

13.5.0 Before We Begin During its design, Rust drew inspiration from many languages, and functional programming had a particularly strong influence on Rust. Functional programming often includes passing functions as values to parameters, returning them from other functions, assigning them to variables for later execution, and so on. In this chapter, we will discuss some Rust features that are sim…

computer-scienceprogramming-languages
DEV Community

13.4.0 Before We Begin During its design, Rust drew inspiration from many languages, and functional programming had a particularly strong influence on Rust. Functional programming often includes passing functions as values to parameters, returning them from other functions, assigning them to variables for later execution, and so on. In this chapter, we will discuss some Rust features that are sim…

computer-scienceprogramming-languages
Semiconductor Engineering

Researchers from University of California, Riverside and Futurewei published a technical paper titled “LLM4RTL: Tool-Assisted LLM for RTL Generation.” Abstract: “Large language models (LLMs) have facilitated impressive progress in software engineering, code generation, tooling, and systems. Concurrently, a significant body of research has developed which explores a growing variety of methods and …

aicomputer-sciencemachine-learningprogramming-languages
DEV Community
luiz filipe neves
8h ago

Easy way that compress files in ruby is using zip lib. Zip :: File . open ( './compress.zip' , create: true ) do | zip | zip . get_output_stream ( "./stuff_to_ziped.pdf" ) do | f | f . puts File . read ( "./stuff_to_zip.pdf" ) end end When you need to zip larger files or when you need to perform any task that requires opening many files, good practice is to avoid loading all files into memory. To…

computer-scienceprogramming-languages
DEV Community

Bridging Python and Rust: Mitigating GIL Contention in a High-Throughput LLM Gateway When building Aegis , an open-source OpenAI-compatible governance proxy, we made a core architectural decision: use Python (FastAPI/ASGI) for rapid development and API adaptability, but offload high-performance cryptography, Write-Ahead Logging (WAL), and Merkle Mountain Range (MMR) operations to a compiled Rust …

computer-scienceprogramming-languages
DEV Community
JP Hutchins
9h ago

The C standard allows the programmer to define new types, including enumerated types—or "enums"—that improve program readability and type safety. This article explores the specification for enumerated types, the compiler options that improve enum type safety, and why type safety prevents run time errors. The focus is on the GCC and Clang C compilers targeting ARM32 (e.g. Cortex-M MCUs), but the s…

computer-scienceprogramming-languages
DEV Community

Over the course of a few posts, I will be constructing an NES emulator that will allow you to play NES ROMs. Today’s post is the first in this series, where I will be walking through the process of emulating the CPU the NES used, the MOS 6502. STRUCTURE The 6502 has 6 primary registers we need to emulate in our program. The A register is the accumulator, which is 1 byte long The X register is an …

computer-scienceprogramming-languages
DEV Community

Quick context: final-year CS student, self-teaching full-stack via 100xDevs. College isn't teaching me real dev skills, so I'm doing it myself. What I've built so far: Counter App, Todo CRUD API, Users API, Hospital API Books API — fully solo, no help Auth Server with JWT (signup/login/middleware/protected routes) 4 LeetCode done, targeting 50+ by August The actual problem: I understand the conce…

computer-scienceprogramming-languages
DEV Community

Hey everyone! I'm a software engineering student at Learn2Earn , part of the 01Edu network. I am currently deep-diving into Golang and working through peer-to-peer, project-based challenges. What I'm working on right now: Master structural logic and standard Go packages. Tackling text manipulation, algorithm design, and file systems. Shifting my mindset to think like a backend developer. Why I'm …

computer-scienceprogramming-languages
DEV Community
Chinwuba
16h ago

This article covers what I learned or maybe didn't really learn. The Problem With Traditional HTTP Most web applications use HTTP. The flow looks like this: Client → Request → Server Client ← Response ← Server Once the server sends the response, the connection is closed. This works perfectly for: Authentication CRUD operations Fetching data Form submissions But what happens when the server needs …

computer-scienceprogramming-languages
Hacker News

Why does this matter? As Steve Yegge said, "If you don't know how compilers work, then you don't know how computers work." Yegge describes 8 problems that can be solved with compilers (or equally well with interpreters, or with Yegge's typical heavy dosage of cynicism). Scheme syntax is different from most other programming languages. Consider: Java has a wide variety of syntactic conventions (ke…

computer-scienceprogramming-languages
DEV Community

I've written plenty of code that uses arrays. Looped over them, indexed into them, passed them around. But if you stopped me and asked what an array actually is — not the syntax, not the API, the thing itself — I wouldn't have had a good answer. I knew how to use arrays. I didn't actually understand them. That bothered me enough to start digging, and the question didn't stay contained. It went th…

computer-scienceprogramming-languages
DEV Community

I've been relying on JSON→Zod generators to scaffold schemas from API responses, and kept wondering — how much do they actually infer vs just dumping z.string() ? So I ran three tools on the same payload to find out. Input (same for all): { "status" : "active" , "email" : "a@b.com" , "id" : "a1b2c3d4-…" , "joined" : "2026-01-01T00:00:00Z" , "age" : 30 , "website" : "https://a.com" } json-to-zod z…

computer-scienceprogramming-languages
DEV Community

"Combining Observables — forkJoin , combineLatest , zip & More" 👋 Welcome to Chapter 7! Real apps rarely get data from just one place . A product page might need: The product details (from /api/products/5 ) The user's wishlist (from /api/wishlist ) The store's discount config (from /api/config ) How do you handle multiple Observables at the same time? That's what today's combination operators are…

computer-scienceprogramming-languages
Hacker News
DEV Community

Microsoft just shipped the Release Candidate for TypeScript 7, with the stable release expected next month. And the big deal, for once, isn't a new syntax or yet another config flag. It's that the entire compiler has been rewritten in Go. Over the past year, the team ported the existing codebase (until now, TypeScript that compiled to JavaScript) to Go. It was done methodically from the current i…

computer-scienceprogramming-languages
research.ioresearch.io

Sign up to keep scrolling

Create your feed subscriptions, save articles, keep scrolling.

Already have an account?