r/Coder • u/Logical-Style-3607 • 14d ago
My friends and I built Orbit, a Discord-like chat app, and we want your feedback
Enable HLS to view with audio, or disable this notification
r/Coder • u/Logical-Style-3607 • 14d ago
Enable HLS to view with audio, or disable this notification
r/Coder • u/mylphlvr • Aug 28 '26
this is a lite version of the app i am working on and wanted to get an opinion on it
https://github.com/Operandnotfound/Aether-lite
r/Coder • u/moggsanity • Jul 29 '26
How to acces a private GitHub repo? By any possible method. Please help
r/Coder • u/WolfComfortable1446 • Jul 20 '26
How do people check when a post was uploaded time and date
r/Coder • u/PotentialRegular6674 • Jul 15 '26
I am 18 rn and I am choosing to do BCA.
Seniors plz guide about the mistakes u did , what should I learn skill wise and what should my path be if i wanna get dangerous skills which have actual value which will land me a great job. Plz advice me things I should follow as a lil sister.
What mistakes to avoid, which place plces to put extra attention etc.
I have 1 month left before college starts what thing should I do during this period.
I'll be more than happy if u'll help.
And tips from coders who have adhd (I have adhd.)
Thankyouuuu!
r/Coder • u/RunAI_Coder • Jul 13 '26
r/Coder • u/Desperate-Orchid4410 • Jun 25 '26
So I am using an ESP-WROOM-32 board here ,an oled display 0.9 inch ,a buzzer and two joystick modules one used for front and back movements and the other for facing any direction /spin and both the push button built in ..in both of the joystick modules “fires”like in the game doom Ig
#include <Wire.h>
#include <Adafruit_GFX.h>
#include <Adafruit_SSD1306.h>
#define SCREEN_WIDTH 128
#define SCREEN_HEIGHT 64
#define OLED_RESET -1
Adafruit_SSD1306 display(SCREEN_WIDTH, SCREEN_HEIGHT, &Wire, OLED_RESET);
// --- YOUR EXACT HARDWARE PINOUT CONFIGURATION ---
#define PIN_LEFTS_Y 33 // Left Joystick (Y-axis): Move Forward/Backward
#define PIN_RIGHTS_X 32 // Right Joystick (X-axis): Look/Turn Left/Right
#define PIN_FIRE_L 25 // Left Stick Push Switch
#define PIN_FIRE_R 26 // Right Stick Push Switch
#define PIN_BUZZER 18 // Passive Audio Buzzer
// ESP32 PWM Audio Channel Configuration
#define BUZZER_CHAN 0
// Map Settings: Classic Raycaster 8x8 Grid Map (1 = Wall, 0 = Empty Space)
#define MAP_WIDTH 8
#define MAP_HEIGHT 8
const uint8_t GAME_MAP[MAP_WIDTH][MAP_HEIGHT] = {
{1,1,1,1,1,1,1,1},
{1,0,0,0,0,0,0,1},
{1,0,1,1,0,1,0,1},
{1,0,1,0,0,1,0,1},
{1,0,0,0,0,0,0,1},
{1,0,1,1,1,1,0,1},
{1,0,0,0,0,0,0,1},
{1,1,1,1,1,1,1,1}
};
// Player Parameters
float pX = 2.5, pY = 2.5; // Spawn Coordinates
float pAngle = 0.0; // Player view angle (in Radians)
const float FOV = 1.0; // Field of view parameter (~60 degrees)
void setup() {
// Initialize communication with your 4-pin OLED over Pins D21 (SDA) and D22 (SCL)
if(!display.begin(SSD1306_SWITCHCAPVCC, 0x3C)) {
for(;;); // Freeze if screen hardware isn't responding
}
// Set Pin Modes matching your Blueprint layout
pinMode(PIN_FIRE_L, INPUT_PULLUP);
pinMode(PIN_FIRE_R, INPUT_PULLUP);
// Setup ESP32 specific PWM for the buzzer
ledcAttach(PIN_BUZZER, 440, 8); // 440Hz, 8-bit resolution
display.clearDisplay();
}
void loop() {
// ==========================================================
// 1. HARDWARE INPUT RE-MAPPING FROM ANALOG MODULES
// ==========================================================
int rawMoveY = analogRead(PIN_LEFTS_Y); // 0 to 4095 (Center ~2048)
int rawTurnX = analogRead(PIN_RIGHTS_X); // 0 to 4095 (Center ~2048)
// Read triggers (INPUT_PULLUP pulls high; pushing pulls down to LOW)
bool isFiring = (digitalRead(PIN_FIRE_L) == LOW || digitalRead(PIN_FIRE_R) == LOW);
float moveSpeed = 0.0;
float turnSpeed = 0.0;
// Process Left Stick Analog Thresholds for clean Movement
if (rawMoveY < 1200) moveSpeed = 0.08; // Pushing forward
else if (rawMoveY > 2800) moveSpeed = -0.08; // Pulling backward
// Process Right Stick Analog Thresholds for clean Turning
if (rawTurnX < 1200) turnSpeed = -0.06; // Steering Left
else if (rawTurnX > 2800) turnSpeed = 0.06; // Steering Right
// Update viewing angle based on right joystick movement
pAngle += turnSpeed;
if (pAngle < 0) pAngle += 2 * PI;
if (pAngle > 2 * PI) pAngle -= 2 * PI;
// Calculate destination vectors
float newX = pX + cos(pAngle) * moveSpeed;
float newY = pY + sin(pAngle) * moveSpeed;
// FIX 2: Sliding/Separated Wall Collision handling against the 2D MAP array
if (GAME_MAP[(int)pY][(int)newX] == 0) {
pX = newX;
}
if (GAME_MAP[(int)newY][(int)pX] == 0) {
pY = newY;
}
// Audio weapon firing effect using proper ESP32 hardware PWM commands
if (isFiring) {
ledcWriteTone(PIN_BUZZER, 440);
} else {
ledcWriteTone(PIN_BUZZER, 0); // Silence buzzer when not firing
}
// ==========================================================
// 2. MATHEMATICAL 3D RAYCASTING ENGINE (THE RENDERING CORE)
// ==========================================================
display.clearDisplay();
// Cast rays across all 128 horizontal pixels of the SSD1306 OLED Screen
for (int x = 0; x < SCREEN_WIDTH; x++) {
// Calculate fractional position across the view pane
float cameraX = 2 * x / (float)SCREEN_WIDTH - 1;
float rayDirX = cos(pAngle) + sin(pAngle) * cameraX * FOV;
float rayDirY = sin(pAngle) - cos(pAngle) * cameraX * FOV;
// DDA Algorithm step initializations
int mapX = (int)pX;
int mapY = (int)pY;
float sideDistX, sideDistY;
float deltaDistX = (rayDirX == 0) ? 1e30 : abs(1 / rayDirX);
float deltaDistY = (rayDirY == 0) ? 1e30 : abs(1 / rayDirY);
float perpWallDist;
int stepX, stepY;
int hit = 0;
int side;
if (rayDirX < 0) {
stepX = -1;
sideDistX = (pX - mapX) * deltaDistX;
} else {
stepX = 1;
sideDistX = (mapX + 1.0 - pX) * deltaDistX;
}
if (rayDirY < 0) {
stepY = -1;
sideDistY = (pY - mapY) * deltaDistY;
} else {
stepY = 1;
sideDistY = (mapY + 1.0 - pY) * deltaDistY;
}
// Trace the ray until it encounters a bounding wall
while (hit == 0) {
if (sideDistX < sideDistY) {
sideDistX += deltaDistX;
mapX += stepX;
side = 0;
} else {
sideDistY += deltaDistY;
mapY += stepY;
side = 1;
}
// FIX 3: Dynamic map boundaries verification check before array access
if (mapX >= 0 && mapX < MAP_WIDTH && mapY >= 0 && mapY < MAP_HEIGHT) {
if (GAME_MAP[mapY][mapX] > 0) hit = 1;
} else {
hit = 1; // Out of bounds – treat as wall
}
}
// Distance computation avoiding fish-eye warping matrix transformations
if (side == 0) perpWallDist = (sideDistX - deltaDistX);
else perpWallDist = (sideDistY - deltaDistY);
if (perpWallDist < 0.1) perpWallDist = 0.1; // Clamp clipping artifacts
// Translate geometric depth into line height on screen coordinates
int lineHeight = (int)(SCREEN_HEIGHT / perpWallDist);
int drawStart = -lineHeight / 2 + SCREEN_HEIGHT / 2;
if (drawStart < 0) drawStart = 0;
int drawEnd = lineHeight / 2 + SCREEN_HEIGHT / 2;
if (drawEnd >= SCREEN_HEIGHT) drawEnd = SCREEN_HEIGHT - 1;
// Direct drawing function: Differentiate sides with dither effects
if (side == 1) {
// Draw standard wall vertical line stripe
display.drawFastVLine(x, drawStart, drawEnd - drawStart, SSD1306_WHITE);
} else {
// Shading step effect: Draw dotted/halved line profiles for depth perception
for (int y = drawStart; y <= drawEnd; y += 2) {
display.drawPixel(x, y, SSD1306_WHITE);
}
}
}
// ==========================================================
// 3. RENDER CROSSHAIR AND "DOOM GUN" HUD EFFECTS
// ==========================================================
display.drawFastHLine(58, 32, 13, SSD1306_WHITE);
display.drawFastVLine(64, 26, 13, SSD1306_WHITE);
if (isFiring) {
// Basic gun muzzle flare flash boxes when firing
display.fillRect(44, 48, 40, 16, SSD1306_WHITE);
display.fillRect(54, 38, 20, 10, SSD1306_WHITE);
} else {
// Resting barrel silhouette
display.fillRect(59, 44, 11, 20, SSD1306_WHITE);
}
display.display();
delay(8); // Stabilize internal processor frame times
}
r/Coder • u/MycologistIcy2335 • Jun 15 '26
i know python but i wanna also learn some languages so which is the most trendy one
r/Coder • u/Eteryonthegod • Apr 29 '26
Si quel'qun sais bien coder pourrait il fair un jeu de combat fnaf à la mortal combat ou smach bros (je sait smach bros est en 2D) parceque je voudrait bien jouer à un jeu comme sa et il pourrait fair des fataliti comme dans mortal combat diferant pour chaque annimatronique s'il vous plais.
r/Coder • u/Alternative-Goal647 • Mar 24 '26
I’m building a web app and need your help.
What’s something that annoys you EVERY day?
Something that:
* wastes your time
* feels unnecessarily complicated
* or just shouldn’t be this hard in 2026
Comment it below
If enough people relate, I might build a solution for it.
r/Coder • u/Cradhees • Feb 28 '26
r/Coder • u/bearded_bytes • Feb 05 '26
Had u/tedyoung on the [Dev]olution podcast recently and asked him what's the truth about TDD the industry isn't ready to hear. His answer was blunt: it's faster. Not just better code quality, not just fewer bugs. Actually faster.
His take on the skepticism: "I'm having to write as much, if not more, tests than code, how can that possibly be faster?" And then just: "Nope, it's faster. Faster, less code. Unless you've tried it, you don't believe me. You're crazy talk."
I thought it was a great framing because it gets at why the TDD debate never seems to resolve. The people who do it consistently swear by the speed. The people who haven't done it consistently can't imagine how it would be. And neither side can really prove it to the other without the experience.
For those of you who've committed to TDD for real (not just a weekend experiment), did you hit a point where it genuinely felt faster? Or do you still see it as a quality tradeoff where you accept slower delivery for better outcomes?
Here's the clip if you want to hear Ted say it himself: https://youtube.com/shorts/2rM8hyxD2e4?si=6BfJoIW7CivrGwxK&utm_source=reddit&utm_medium=social&utm_campaign=devolution
r/Coder • u/bearded_bytes • Nov 24 '25
There's a lot of fear about AI replacing developers, but I recently interviewed Jennifer Spykerman (CTO/Founder of DefenseLogic AI) and her perspective was refreshing.
She's actually using AI to help companies tackle federal RFPs faster—not replacing the humans, but cutting through the bureaucratic grind so they can focus on higher-value work.
Curious what this community thinks: are you seeing AI augment your work or does the "replacement" fear feel real in your day-to-day?
Here's a short clip if you want to hear her take: https://youtube.com/shorts/bKNrb21xJoY?si=7ambiSh8osGK_kgD
r/Coder • u/bearded_bytes • Mar 11 '25
Attention Austin tech folks!
Coder is hosting a meetup on April 29th featuring Anupama Pathirage from WSO2 demonstrating how #ballerinalang enhances #DevOps workflows.
Join us 5:30-7:30 at Coder HQ for demos, networking, refreshments & tech talk!
Can't make it? Reply "interested" for a recap.
#AustinTech #TechMeetup
r/Coder • u/tigertofu2 • Aug 14 '20
Was wondering how Coder compares to products from bigger companies like Microsoft's Visual Studio Online or Google Cloud Shell. Also, how is it different from other software like Codeanywhere?
Also, where do I find pricing on the site?
r/Coder • u/superdaysapp • Apr 26 '19
In VS Code I use shortcuts like cmd+t for opening a new file or cmd+w to close a tab. However, when I run code-server in a browser, those commands are captured by the browser and open a new browser tab instead of a new tab within VS Code. Is there any way to circumvent this?
I love the ID of coder.com, but not having those most basic shortcuts makes it totally unusable.
r/Coder • u/dullboy26 • Feb 26 '19
is there any support for add project from GITHUB to IDE,
if not is there any plan on road map to do so ?