Skip to main content
added 495 characters in body
Source Link
lyxal Mod
  • 35.6k
  • 1
  • 22
  • 48

Best Tip

Repost from 2020

For the best answer to a question tagged with , because this site isn't just about competing with one another, but also about helping each other improve our golfing skills

The shortest infinite for comprehension (self-nomination by pxeger)

While answering Write an infinitely nested generator comprehension, I discovered a way to shorten something you might think to be totally optimal, which felt like a crazy new discovery to make.

s isn't longest first, but is by Unrelated String

In Brachylog, s is the obvious builtin for "get all contiguous sublists." The trouble is that you often want to generate the longest sublist first, and s doesn't do that: it starts with all sublists that include the first element. However, Unrelated String realized that , "get all sublists, not necessarily contiguous," does generate the longest sublists first, and furthermore that the non-contiguous results can be easily removed by combining with s. This tip is non-obvious and really useful; I've used it twice already.

Use and for certain length checks by emanresuA

Nomination by @lyxal

I put a meme in my nomination kekw

This tip has been helpful many times in shaving bytes off my answers. Plus, it utilises some of the lesser-known overloads of things like how will check to see if a string is of length 1.

Compress your strings and numbers by lyxal

Self nomination

String/number compression is an important part of any modern SBCS golfing language, and Vyxal is no different. This tip gives a comprehensive explanation of the compression utilities available to vyxalers, and it explains the concept of things like "String Compression Codes" and the dictionary of words Vyxal uses.

Best Tip

Repost from 2020

For the best answer to a question tagged with , because this site isn't just about competing with one another, but also about helping each other improve our golfing skills

The shortest infinite for comprehension (self-nomination by pxeger)

While answering Write an infinitely nested generator comprehension, I discovered a way to shorten something you might think to be totally optimal, which felt like a crazy new discovery to make.

s isn't longest first, but is by Unrelated String

In Brachylog, s is the obvious builtin for "get all contiguous sublists." The trouble is that you often want to generate the longest sublist first, and s doesn't do that: it starts with all sublists that include the first element. However, Unrelated String realized that , "get all sublists, not necessarily contiguous," does generate the longest sublists first, and furthermore that the non-contiguous results can be easily removed by combining with s. This tip is non-obvious and really useful; I've used it twice already.

Best Tip

Repost from 2020

For the best answer to a question tagged with , because this site isn't just about competing with one another, but also about helping each other improve our golfing skills

The shortest infinite for comprehension (self-nomination by pxeger)

While answering Write an infinitely nested generator comprehension, I discovered a way to shorten something you might think to be totally optimal, which felt like a crazy new discovery to make.

s isn't longest first, but is by Unrelated String

In Brachylog, s is the obvious builtin for "get all contiguous sublists." The trouble is that you often want to generate the longest sublist first, and s doesn't do that: it starts with all sublists that include the first element. However, Unrelated String realized that , "get all sublists, not necessarily contiguous," does generate the longest sublists first, and furthermore that the non-contiguous results can be easily removed by combining with s. This tip is non-obvious and really useful; I've used it twice already.

Use and for certain length checks by emanresuA

Nomination by @lyxal

I put a meme in my nomination kekw

This tip has been helpful many times in shaving bytes off my answers. Plus, it utilises some of the lesser-known overloads of things like how will check to see if a string is of length 1.

Compress your strings and numbers by lyxal

Self nomination

String/number compression is an important part of any modern SBCS golfing language, and Vyxal is no different. This tip gives a comprehensive explanation of the compression utilities available to vyxalers, and it explains the concept of things like "String Compression Codes" and the dictionary of words Vyxal uses.

Added nomination
Source Link
DLosc
  • 40.7k
  • 34
  • 49

Best Tip

Repost from 2020

For the best answer to a question tagged with , because this site isn't just about competing with one another, but also about helping each other improve our golfing skills

The shortest infinite for comprehension (self-nomination by pxeger)

While answering Write an infinitely nested generator comprehension, I discovered a way to shorten something you might think to be totally optimal, which felt like a crazy new discovery to make.

s isn't longest first, but is by Unrelated String

In Brachylog, s is the obvious builtin for "get all contiguous sublists." The trouble is that you often want to generate the longest sublist first, and s doesn't do that: it starts with all sublists that include the first element. However, Unrelated String realized that , "get all sublists, not necessarily contiguous," does generate the longest sublists first, and furthermore that the non-contiguous results can be easily removed by combining with s. This tip is non-obvious and really useful; I've used it twice already.

Best Tip

Repost from 2020

For the best answer to a question tagged with , because this site isn't just about competing with one another, but also about helping each other improve our golfing skills

The shortest infinite for comprehension (self-nomination by pxeger)

While answering Write an infinitely nested generator comprehension, I discovered a way to shorten something you might think to be totally optimal, which felt like a crazy new discovery to make.

Best Tip

Repost from 2020

For the best answer to a question tagged with , because this site isn't just about competing with one another, but also about helping each other improve our golfing skills

The shortest infinite for comprehension (self-nomination by pxeger)

While answering Write an infinitely nested generator comprehension, I discovered a way to shorten something you might think to be totally optimal, which felt like a crazy new discovery to make.

s isn't longest first, but is by Unrelated String

In Brachylog, s is the obvious builtin for "get all contiguous sublists." The trouble is that you often want to generate the longest sublist first, and s doesn't do that: it starts with all sublists that include the first element. However, Unrelated String realized that , "get all sublists, not necessarily contiguous," does generate the longest sublists first, and furthermore that the non-contiguous results can be easily removed by combining with s. This tip is non-obvious and really useful; I've used it twice already.

added 179 characters in body
Source Link
pxeger
  • 25.3k
  • 28
  • 36

Best Tip

Repost from 2020

For the best answer to a question tagged with , because this site isn't just about competing with one another, but also about helping each other improve our golfing skills

The shortest infinite for comprehension (self-nomination by pxeger)

While answering Write an infinitely nested generator comprehension, I discovered a way to shorten something you might think to be totally optimal, which felt like a crazy new discovery to make.

Best Tip

Repost from 2020

For the best answer to a question tagged with , because this site isn't just about competing with one another, but also about helping each other improve our golfing skills

Best Tip

Repost from 2020

For the best answer to a question tagged with , because this site isn't just about competing with one another, but also about helping each other improve our golfing skills

The shortest infinite for comprehension (self-nomination by pxeger)

While answering Write an infinitely nested generator comprehension, I discovered a way to shorten something you might think to be totally optimal, which felt like a crazy new discovery to make.

added 179 characters in body
Source Link
pxeger
  • 25.3k
  • 28
  • 36
Loading
Source Link
Wheat Wizard Mod
  • 102.9k
  • 1
  • 42
  • 88
Loading
Post Made Community Wiki by Wheat WizardMod