computer-science

DEV Community

Every git user eventually has that moment. The terminal returns. The working directory looks wrong. You type git log and the last two hours of work are simply not there. Usually, this is not data loss. It is a solvable problem, and git reflog is what solves it. What reflog actually is git reflog records every position HEAD has pointed to on your machine. Every commit, checkout, merge, rebase, and…

computer-scienceprogramming-languages
Towards Data Science
DEV Community

We’ve all been there. You find an awesome library, you run npx expo install , you import it into your code, and you start your development server. You expect magic. Instead, your simulator turns blindingly red with an error that looks something like this: ERROR Invariant Violation: TurboModuleRegistry.getEnforcing(...): 'RNGestureHandlerModule' could not be found. Verify that your native modules…

computer-scienceprogramming-languages
DEV Community

The Quest Begins (The “Why”) Picture this: I’m huddled over my laptop at 2 a.m., eyes glazed, watching the metrics dashboard flash red like the Death Star’s super‑laser charging up. Our API is getting hammered by a burst of traffic from a misbehaving mobile client, and every request is punching straight through to the database. The DB starts to groan, latency spikes, and suddenly we’re serving 50…

algorithmscomputer-science
DEV Community

Ever wondered how Linux decides which process gets more CPU time? Linux uses a value called the nice value to influence process scheduling. Every process has a nice value ranging from -20 to 19. 📌 Key points: ✅ Lower nice value = Higher CPU priority ✅ Higher nice value = Lower CPU priority Examples: -20 → Highest priority 0 → Default priority 19 → Lowest priority Running a command with a cust…

computer-scienceprogramming-languages
Hacker News

We are happy to announce that Unicorn Engine was awarded by Alibaba Cloud for its impact on the cybersecurity field (and beyond since our project is widely used for other purposes, too)! Unicorn Engine was created and released more than 7 years ago to the public. We launched Unicorn Engine under an open-source license with the goal of contributing to the community and helping as many people as po…

computer-sciencecybersecurity
Scientific American
Megha Satyanarayana
4h ago

Timnit Gebru is a computer scientist, an engineer, and founder and executive director of the Distributed AI Research Institute, an independent organization conducting community-rooted research into technological tools and systems. She is also co-founder of Black in AI, a nonprofit that works to increase the presence, inclusion, visibility and health of Black people in the field of artificial inte…

aicomputer-sciencemachine-learning
Scientific American
Ari Sen
4h ago

Computer scientist Jieneng Chen wants to digitize the physical world. He is the inventor of TransUNet, an artificial-intelligence tool that helps to map the boundaries of cancerous tumors while accounting for their relation to surrounding organ systems. TransUNet blends two popular computing architectures. The first is a convolutional neural network, which is traditionally used for understanding …

aicomputer-sciencecomputer-visionmachine-learning
DEV Community

Hello Dev Community! 👋 It is Day 32 of my continuous web development run, and today I jumped into a project that pushed my array manipulation and conditional logic to a whole new level: A complete Snake and Ladder Board Game using HTML5, CSS3, and Vanilla JavaScript! After building Rock Paper Scissors yesterday, I wanted to tackle a game that requires tracking persistent coordinate states across …

computer-sciencesoftware-engineering
DEV Community

Every engineering team hits this conversation at some point. Someone proposes GraphQL. Someone else says REST is fine. A third person mentions gRPC and half the room goes quiet. The debate usually ends with the most senior person in the room picking what they're most familiar with. That's not a strategy — that's habit. Here's an objective breakdown of all three, when each one wins, and how to act…

computer-sciencesoftware-engineering
DEV Community

Tools like Claude Code and Codex have completely reshaped how software engineering is done. This new tooling allows for much faster development and iteration, but it's important to keep the code maintainable and scalable to make sure the project can continue evolving over the long term. A template project with an initial structure using all of the technologies described here is available on GitHu…

computer-sciencesoftware-engineering
DEV Community

Introduction If you've built Android apps with Room, you already think in a layered persistence model: entities define your schema, DAOs handle queries, repositories abstract the data layer, and ViewModels stay completely ignorant of the database. It's clean, testable, and scalable. When you cross to iOS and reach for local persistence, you hit a wall. Core Data is powerful but infamous for its b…

computer-sciencesoftware-engineering
DEV Community

React Server Components vs. Astro Islands: When to Use Each Pattern I've shipped production code with both React Server Components (RSC) and Astro Islands. They solve the same problem—reducing JavaScript sent to browsers—but through completely different philosophies. Most developers pick wrong because they don't understand why each exists. Let me be direct: Astro Islands is better for content-hea…

computer-sciencesoftware-engineering
DEV Community

If you've ever investigated a slow Rails endpoint, chances are you've encountered one of the most common performance problems in the Rails ecosystem: N+1 Queries. The scary part? Your application can appear perfectly healthy during development, pass all tests, and work flawlessly in production for months. Then one day your dataset grows, traffic increases, and suddenly an endpoint that used to re…

computer-sciencesoftware-engineering
DEV Community

When you want to return a single value from a function, you write an arrow and a data type before the opening brace: func isShinobi ( name : String ) -> Bool { name == "Naruto" || name == "Sasuke" || name == "Sakura" } That compares a name against a list of known shinobi names, returning true or false . But what if you need to return two or more values? Let's explore the options. 🚫 Attempt 1 — Us…

computer-scienceprogramming-languages
DEV Community

The Playwright Playbook — Part 2: Network Interception — The Complete Guide "Your tests should own the network — not be at its mercy." In Part 1, we fixed the foundation — proper selectors, storageState , POM, and a clean playwright.config.ts . If you haven't read that, start there. The project structure we built in Part 1 is what we're building on today. Now we go to the feature that separates i…

computer-sciencesoftware-engineering
DEV Community

A realistic walkthrough of what actually happens next and where teams lose the most time. Let me describe a scene that happens hundreds of times a day across engineering teams worldwide. It's 2:47 PM. A Slack message appears: "Build failed - backend-service #1847" What happens next is where things get interesting. The notification tells you nothing useful The alert tells you the build failed. It …

computer-sciencesoftware-engineering
DEV Community

Your backend Pod just crashed. Kubernetes created a new Pod with a completely different IP address. Yet your application didn't notice anything changed. How? Because applications don't talk directly to Pods. They talk to Kubernetes Services. A Service provides a stable virtual IP and DNS name, while kube-proxy quietly programs the networking rules that route traffic to the right Pods. In this pos…

computer-sciencedistributed-systemssoftware-engineering
DEV Community

As a full-stack product engineer, one of the most persistent challenges I face is managing performance bottlenecks that arise between frontend, backend, and infrastructure. While we often optimize individual layers, true efficiency demands a holistic approach. In this post, I’ll walk through a common bottleneck scenario—slow API responses impacting frontend rendering—and share practical solutions…

computer-sciencesoftware-engineering
DEV Community

Most Node.js APIs start the same way. A server.js file. A few routes. Maybe an app.js if you've read a tutorial. Everything in one place because the app is small and there's no reason to complicate it yet. Then the app grows. Routes multiply. Business logic leaks into route handlers. Error handling is copy-pasted across files with slight variations. A new developer joins and spends their first we…

computer-sciencesoftware-engineering
research.ioresearch.io

Sign up to keep scrolling

Create your feed subscriptions, save articles, keep scrolling.

Already have an account?