Communities

Writing
Writing
Codidact Meta
Codidact Meta
The Great Outdoors
The Great Outdoors
Photography & Video
Photography & Video
Scientific Speculation
Scientific Speculation
Cooking
Cooking
Electrical Engineering
Electrical Engineering
Judaism
Judaism
Languages & Linguistics
Languages & Linguistics
Software Development
Software Development
Mathematics
Mathematics
Christianity
Christianity
Code Golf
Code Golf
Music
Music
Physics
Physics
Linux Systems
Linux Systems
Power Users
Power Users
Tabletop RPGs
Tabletop RPGs
Community Proposals
Community Proposals
tag:snake search within a tag
answers:0 unanswered questions
user:xxxx search by author id
score:0.5 posts with 0.5+ score
"snake oil" exact phrase
votes:4 posts with 4+ votes
created:<1w created < 1 week ago
post_type:xxxx type of post
Search help
Notifications
Mark all as read See all your notifications »

Posts by General Sebast1an‭

150 posts
50%
+0 −0
Challenges "Hello, World!"

Forget, 319 bytes push 72;cleanse;pop;out;push 101;cleanse;pop;out;push 108;cleanse;pop;out;push 108;cleanse;pop;out;push 111;cleanse;pop;out;push 44;cleanse;pop;out;push 32;cleanse;pop;out;push 8...

posted 3y ago by General Sebast1an‭

Answer
50%
+0 −0
Challenges Guess the language! (Cops' Thread)

Japt, cracked by Shaggy, 17 bytes "Cops and Robbers Try it online! Don't think much recognize this language at all. This is supposed to be from Pyth, but Japt has this too, so it's certainly v...

posted 3y ago by General Sebast1an‭  ·  edited 2y ago by Shaggy‭

Answer
60%
+1 −0
Q&A Tips for golfing in C

Assign ints before main(){} This is a combination of 2 golfing tricks. It's possible to write a program as just main(){}, though it will send a warning, not an error though, so it's still safe to ...

posted 3y ago by General Sebast1an‭  ·  edited 3y ago by General Sebast1an‭

Answer
71%
+3 −0
Q&A Tips for golfing in C

C is a language I use most apart from Python and as someone who likes code golf challenges, what tips are there to golf in C?

4 answers  ·  posted 3y ago by General Sebast1an‭  ·  edited 2y ago by General Sebast1an‭

Question code-golf tips
60%
+1 −0
Challenges Caesar shift cipher

C (clang), 161 bytes i,j,k;main(){char *s;scanf("%i%[^\n]%*c",&i,s);for(j=0;j<strlen(s);j++){if(isalpha(s[j])){for(k=0;k<i;k++){if(s[j]==90||s[j]==122){s[j]-=26;}s[j]+=1;}}}puts(s);} ...

posted 3y ago by General Sebast1an‭  ·  edited 3y ago by General Sebast1an‭

Answer
75%
+4 −0
Challenges Caesar shift cipher

Introduction What is the Caesar shift cipher (ROT$n$)? It's basically a cipher sequence that changes a letter's value from the number chosen. If we use ROT1 on "games", we get "hbnft". The basic i...

7 answers  ·  posted 3y ago by General Sebast1an‭  ·  edited 2y ago by General Sebast1an‭

50%
+0 −0
50%
+0 −0
Challenges "Hello, World!"

!@#$%^&*()_+, 17 bytes ^dlroW ,olleH(@) Try it online! Might learn this sometime but I found this.

posted 3y ago by General Sebast1an‭

Answer
50%
+0 −0
Challenges "Hello, World!"

Pyth, 14 bytes "Hello, World! Try it online!

posted 3y ago by General Sebast1an‭

Answer
50%
+0 −0
Challenges "Hello, World!"

Charcoal, 13 bytes Hello, World! Try it online! I'm surprised no one even used Charcoal in the challenge. Guess I'll take it.

posted 3y ago by General Sebast1an‭

Answer
50%
+0 −0
Challenges "Hello, World!"

Lua, 20 bytes print"Hello, World!" Try it online!

posted 3y ago by General Sebast1an‭

Answer
66%
+2 −0
66%
+2 −0
Meta Default Rules: Loopholes

Sneakily using macros In a code golf challenge, you are tasked to use as small bytes as possible. However, it's considered unacceptable in a language like C to use macros to hide code or shorten i...

posted 3y ago by General Sebast1an‭

Answer
40%
+0 −1
Sandbox Set in sets in sets [cancelled]

posted 3y ago by General Sebast1an‭  ·  edited 2y ago by General Sebast1an‭

60%
+1 −0
Challenges A number adder, not a death adder

Python 3, 58 39 bytes P1: print(f"print(int(input())+{input()})") Try it online! P2 (given I inputted 10, 30 22 bytes): print(int(input())+10) Try it online!

posted 3y ago by General Sebast1an‭  ·  edited 3y ago by General Sebast1an‭

Answer
66%
+2 −0
Meta Is my extension-like library allowed to be used in answers?

I'm not a golfer, I know, but I do have wanted to make a programming language back then. The name is BMPL (Builder's Multi-Purpose Language) and is currently a library I made in C (clang). It's not...

2 answers  ·  posted 3y ago by General Sebast1an‭  ·  last activity 3y ago by Lundin‭

60%
+1 −0
Challenges Recreate the Server Fault logo

Make the Server Fault logo using the following criteria: The boxes' measurements: There are 3 columns of 5 boxes, with long ones at the left where the rest are regular. The following measure...

0 answers  ·  posted 3y ago by General Sebast1an‭

50%
+0 −0
Challenges Evens or Odds - you know this one

Python 3, 51 25 bytes n=int(input());print(n%2) Try it online! Golfed 26 bytes using the technique from my PHP answer.

posted 3y ago by General Sebast1an‭  ·  edited 2y ago by General Sebast1an‭

Answer
50%
+0 −0
Sandbox Recreate modulo [cancelled]

posted 3y ago by General Sebast1an‭  ·  edited 2y ago by General Sebast1an‭

Article code-golf math
71%
+3 −0
Q&A Tips for [fastest-code] in Python

What tips are there in fastest code, or what I like to call code speeding, challenges in Python?

1 answer  ·  posted 3y ago by General Sebast1an‭  ·  last activity 1y ago by trichoplax‭

Question tips fastest-code
60%
+1 −0
Challenges Are they abundant, deficient or perfect?

Python 3, 235 185 141 118 bytes a=[[],[],[]] n=1;exec("d=sum(i for i in range(1,n)if n%i<1)-n;a[[[1,2][d<0],0][d>0]]+=n,;n+=1;"*int(input())) print(a) Try it online! Golfed 50 byt...

posted 3y ago by General Sebast1an‭  ·  edited 2y ago by General Sebast1an‭

Answer
60%
+1 −0
Challenges "Hello, World!"

HTML, 26 13 bytes Hello, World! Golfed 13 bytes thanks to @Razetime's advice.

posted 3y ago by General Sebast1an‭  ·  edited 2y ago by General Sebast1an‭

Answer
77%
+5 −0
Challenges Recreate the Stack Overflow logo

Originally from Somewhere Else. I thought I'd continue making more drawing challenges here now that I discovered it. Make the Stack Overflow logo using the following criteria: The tray: ...

2 answers  ·  posted 3y ago by General Sebast1an‭  ·  last activity 2y ago by Anonymous‭

71%
+3 −0
Meta Can I repost a challenge that I posted elsewhere here?

I have this challenge in Code Golf and I wonder if I can repost it here for more users to come, and also continue making these since I actually like them. Can I post this challenge to Codidact?

1 answer  ·  posted 3y ago by General Sebast1an‭  ·  edited 2y ago by Trilarion‭

Question support asking