Do all the things like ++ or -- rants, post your own rants, comment on others' rants and build your customized dev avatarSign Up
From the creators of devRant, Pipeless lets you power real-time personalized recommendations and activity feeds using a simple APILearn More
Search - "code golf"
Swag store feature request:
I can't wear any of the shirts at work with current dress code rules. Any chance we could get some polos or golf shirts with a small, embroidered ":/" on it?
I'd buy a week's worth of those.3
My JS function is now lazy loading, expressive, and uses 12 fewer lines of code! 😃
It no longer works, but
... no one is perfect. 😅3
Once got 3rd place in a company "code golf". It was open to any language or platform.
I built a functional minesweeper game in Excel with 600 lines of code, complete with color and animation.
The "Hot Network Questions" in the right side of every StackOverflow page.
Physics, Electronics, World building, Programming puzzles and code golf, Aviation, Skeptics...
I stumbled across this code golf the other day, I thought I had seen all of the esoteric languages... Then I saw Minecraft...
My biggest influence on coding style is working with other people's code. I know the temptation to write "clever" code and I've been (and probably still occasionally am) guilty of it myself, but it's not until you have to debug someones oneliner iterator which has !(i-j) as the stop condition that you start to appreciate dumb, boring, obvious code.
If having a series of if checks in a long list makes it readable, keep it that way. If it makes it more readable to rewrite it into a nested switchcase with a couple of ternary bits, go ahead. Just don't spend half a day wrapping it up into two layers of abstraction that will require an onboarding process for the rest of the team.2
I just love code-golf, I only started recently, but sometimes it's nice to fuck all coding conventions, missuse lazy evaluation and abuse scope leaking.
I'm normally really tidy with formating and whitespace placement, but code-golf is also a testing field for uncommen constructs and I think it can give deeper insights into a language.
I don't like languages specifically for code-golf though, these are just stupid and no fun (at least for me).1
> code golf challenge
> easy for beginners
alright, nice, I qualify
> all code must be exactly the same forwards and backwards, >50% of bytes must be run both ways, must run under any OS or system ever made
welp, there goes any hope of being able to fit something into the rules at all
(if you're interested, https://n0.lol/bggp/)15
Not exactly a tip but do you know an app for quick-testing your skills in js, for intermediate-level, but with questions that are not too complicated (not code golf, though I like that too) so one can use it when commuting for instance ?1