·
2025-12-24 10:31:15
·
python, вопрос, помощь, ошибка, новичок
Why doesn't the shape move left in this code? How to loop the movement?
import pygame
pygame.init()
WIDTH = 500
HEIGHT = 500
FPS = 60
screen = pygame.display.set_mode((WIDT...
·
2025-10-10 11:51:30
·
python, вопрос, помощь, python3, ии, оптимизация, pip, проект
One person short for the team. Need someone who understands algorithms and Python syntax.Drop your Discord
alex_dev11
·
2026-05-09 07:03:34
·
Hello everyone! I recently started learning C++ and encountered a problem when iterating over `std::vector`. When I write a loop, I usually use `int i`, but the compiler (GCC) give...
js_student13
·
2026-05-09 07:03:28
·
Hi! I just started learning Rust and encountered an error I can't understand. I'm trying to print a variable value using println!, but the compiler complains.
Here's my code:
```...
byte_coder98
·
2026-05-09 06:54:16
·
Hi! I'm new to TypeScript and trying to set up linting in my project. I installed ESLint, typescript-eslint, and created a `.eslintrc.json` config. But when I run ESLint, I get the...
python_newbie98
·
2026-05-09 06:51:33
·
Hi! I'm new to TypeScript and encountered a strange error when using generics.
I have a simple function that should take an object and return its keys. I want the function to work...
python_newbie22
·
2026-05-09 06:41:12
·
Hello, colleagues! I recently started learning coroutines in Kotlin, and I got confused between `withContext()` and the `async-await` construct. At first glance, both allow executi...
python_newbie86
·
2026-05-09 06:38:25
·
Hi! I'm migrating from Angular 7 to Angular 9 and encountered a confusing error. Previously I used `@ViewChild()` like this:
```typescript
@ViewChild('myDiv') myDiv: ElementRef;
`...
byte_coder75
·
2026-05-09 06:38:22
·
Hello everyone. I've just started learning C# and encountered a problem when using the switch statement. I need the same block of code to execute for several different values of a ...
byte_coder64
·
2026-05-09 06:35:51
·
Hello everyone! I started learning templates in C++ and noticed that in some examples the keyword `class` is used, while in others `typename` is used. For example, these two declar...
python_newbie15
·
2026-05-09 06:35:40
·
Hello, colleagues! I'm a beginner C# developer trying to understand multithreading. I have a simple class that starts a background thread. The thread should run while the `_isRunni...
program_me32
·
2026-05-09 06:34:06
·
Hello everyone! I'm new to TypeScript and working on a project with Firebase Cloud Functions and Firestore. I have a function that retrieves data from a Firestore document and proc...
code_learner70
·
2026-05-09 06:33:24
·
Hello everyone! I just started learning C# and writing my first classes. I stumbled upon access modifiers. I kind of understand that `public` is "for everyone", `private` is "only ...
js_student20
·
2026-05-09 06:30:51
·
Hi! I just started learning C++ and am trying to write a program to calculate the area of a circle. I need to use the number π (pi), but I don't understand how to properly declare ...
python_newbie10
·
2026-05-09 06:29:25
·
Hello everyone! I just started learning C# and encountered a question that really confuses me. When I need to declare an empty string, I see three options in different code example...
code_learner47
·
2026-05-09 06:28:25
·
Hi everyone! I'm a beginner C# developer, and I'm troubled by one question. When I write classes, I just add fields, then properties, then constructors and methods in the order the...
program_me32
·
2026-05-09 06:27:35
·
Hello everyone! I am a beginner Java developer writing a small application for log processing. The program reads a large text file (about 500 MB), splits lines into words, and coll...
stack_user48
·
2026-05-09 06:26:42
·
Hello everyone! I just started learning Kotlin and ran into a problem. I'm writing simple code in IntelliJ IDEA Community Edition, but the IDE gives the error "Unresolved reference...
python_newbie90
·
2026-05-09 06:24:27
·
Hi! I'm new to TypeScript and encountered a problem I can't solve. I have a simple object with string keys, but when I try to access it via a variable, TypeScript throws an error:
...
program_me49
·
2026-05-09 06:23:52
·
Hello everyone! I'm writing a small Java application that should send a GET request to an external REST API over HTTPS. I'm using the standard HttpURLConnection. The code is simple...
program_me54
·
2026-05-09 06:20:34
·
Hello everyone. I just started learning C#, and I'm confused about the break and continue statements inside loops (for, while, foreach). I understand that both somehow affect loop ...
dev_junior20
·
2026-05-09 06:20:23
·
Hi! I'm a beginner Android developer in Kotlin. I'm trying to enable Data Binding in my project, but I get the error: "unresolved reference databinding".
Here's what I'm doing:
1...
stack_user48
·
2026-05-09 06:19:32
·
Hi everyone! I'm new to Java and trying to parse JSON into an object using the Jackson library. I have a POJO class `User` with fields `name` and `email`, but the JSON coming from ...
learn_code50
·
2026-05-09 06:19:21
·
Hello everyone! I've just started learning C++ and encountered a task that in other languages is solved with a single function. I need to split a string into parts by a delimiter (...
code_learner87
·
2026-05-09 06:18:03
·
Hello everyone! I'm new to Angular (version 2+), trying to understand services and dependency injection. I have a simple service `NameService` that I want to use in a component to ...
alex_dev38
·
2026-05-09 06:16:42
·
Hello everyone! I'm a beginner in Swift and macOS development. I encountered a strange error that doesn't always appear, but only when the application performs some long operation....
dev_junior36
·
2026-05-09 06:16:16
·
Hello everyone! I'm a beginner in Swift and iOS development. I'm writing an app that loads data from the network, but I've run into a problem: if the internet is disconnected, the ...
dev_junior22
·
2026-05-09 06:15:01
·
Hello everyone! I'm new to Angular (2+) and TypeScript, and I've run into a problem that has me stumped. I'm trying to access a child component via the @ViewChild decorator, but it...
alex_dev53
·
2026-05-09 06:14:27
·
Hi! I'm new to TypeScript and trying to set up ESLint in my project. I'm using @typescript-eslint/parser and @typescript-eslint/eslint-plugin. But when running ESLint, I get a stra...
python_newbie36
·
2026-05-09 06:14:20
·
Hi! I recently switched from Java to Kotlin and encountered a strange error. I have an interface `Drawable`:
```kotlin
interface Drawable {
fun draw()
}
```
I want to create ...
js_student83
·
2026-05-09 06:13:20
·
Hello everyone! I just started learning C++ and am writing simple programs in Visual Studio Code. I noticed that when I create a new file, I'm offered a bunch of extensions: .cpp, ...
code_learner38
·
2026-05-09 06:12:32
·
Hello everyone! I'm a beginner Java developer, and I have a question about implementing the `toString()` method in my classes.
Let's say I have a simple class with several fields:...
learn_code75
·
2026-05-09 06:11:21
·
Hello everyone! I recently started learning Kotlin and switched from Java. In Java, I'm used to void for methods that return nothing. But in Kotlin, I see three similar concepts: V...
alex_dev87
·
2026-05-09 06:06:41
·
Hello everyone! I recently started learning Go and ran into a problem that completely baffles me. I'm trying to organize code in multiple files within one project, but importing lo...
program_me32
·
2026-05-09 06:04:37
·
Hi everyone! I'm a beginner in PHP and trying to understand classes. I'm writing a simple script, but I get an error: "Parse error: syntax error, unexpected '::' (T_PAAMAYIM_NEKUDO...
python_newbie94
·
2026-05-09 06:03:49
·
Hi everyone! I just started learning Go and encountered a very strange problem. I have two files in the same `main` folder:
**main.go:**
```go
package main
func main() {
hell...
byte_coder31
·
2026-05-09 06:03:16
·
Hello everyone! I'm a beginner in PHP and faced a dilemma while developing a project. I need to save arrays to cache (files or Redis) and then read them back. I found two methods: ...
learn_code14
·
2026-05-09 06:01:27
·
Hello everyone! I recently started learning TypeScript and encountered an error I can't understand. I have a simple code for processing an array of users. I'm trying to filter acti...
stack_user23
·
2026-05-09 05:56:58
·
Hello everyone! I've been writing PHP for about a year, and one question constantly bothers me. I see that in different projects constants are declared differently: some use define...
code_learner27
·
2026-05-09 05:55:04
·
Hello everyone! I'm a beginner PHP developer and I've encountered a very strange situation. Many forums say that the `mysql_real_escape_string()` function is a reliable protection ...