[HN Gopher] LeetCode but You Can Force People to Code in Light M...
___________________________________________________________________
LeetCode but You Can Force People to Code in Light Mode >:)
Author : weebao
Score : 67 points
Date : 2025-02-20 05:28 UTC (3 days ago)
(HTM) web link (www.beatcode.dev)
(TXT) w3m dump (www.beatcode.dev)
| weebao wrote:
| Basically recreated LeetCode on a $5/month VPS lol. It started as
| a class project but over 800 people joined so I kept refining it
| for 2 months. It supports running Python, Java, and C++ code
| (building a code runner is tough). Give it a try and let me know
| what you think!
|
| The code is also open-source too at https://github.com/beatcode-
| official
| net01 wrote:
| have a look at this "https://github.com/INGInious/containers" -
| open-source platform for secure and automated code assessment
| FabHK wrote:
| In case it's your own project, I believe the convention is to
| prefix the title with "Show HN:".
| conradkay wrote:
| Neetcode uses/used judge0 for code execution but it might be
| overkill
|
| https://github.com/judge0/judge0
| eGQjxkKF6fif wrote:
| This seems like a fun thing, could it be used for a hackathon
| type style of event with say group participants up to ~100? I'd
| love to see some hackathons.
| user9999999999 wrote:
| "Runtime analysis? How is that possible?" I thought...
|
| https://github.com/beatcode-official/server/blob/42169027dda...
| bean-weevil wrote:
| Lmao. They need to call that out so the users know not to
| believe it
| Aurornis wrote:
| Clarifying that it's the output of an LLM is responsible.
|
| Though LLMs are really good at anything related to plain
| LeetCode problems. There has been so much written about the
| standard LeetCode problems across so many websites that it's
| all heavily represented in training sets.
| dudus wrote:
| I just wanted to mention another cool alternative
|
| https://neetcode.io/
|
| The author has a YouTube channel where he actually solves a lot
| of the problems step by step. Really cool as a learning resource
| koakuma-chan wrote:
| He was actually going through a depression and drug addiction,
| and then he started making YouTube videos where he solved
| leetcode problems and eventually he got a job at Google and
| then he quit that job.
| jtreminio wrote:
| > but You Can Force People to Code in Light Mode
|
| As I've aged my preferences have moved away from dark themes to
| light themes.
|
| I used to have everything in dark mode: terminal, IDE, sublime
| text, use Dark Reader Chrome extension.
|
| But I can't see shit anymore. I need light!
| jorvi wrote:
| It might mitigate some of your issues by using themes that are
| anthracite / charcoal / deep gray instead of pure OLED black.
| Due to the way screen technology and bad eyes work you often
| get slight halo-ing or double vision with white text on pure
| blacks.
|
| Also definitely stay away from Solarized. The contrasts on
| Solarized get muddled really quickly if you run your screen at
| low backlight intensity and especially if you use a night light
| blue filter / orange overlay.
|
| Hope it helps!
| mattgreenrocks wrote:
| Dark editor themes has always been one of the most laughable
| of orthodoxies in tech. Contrast is key for reducing eye
| strain, especially for extended sessions. And Solarized
| doesn't have nearly enough.
|
| (I suspect a decent chunk of Solarized's popularity came from
| the fact it was popular, rather than the "science"-based
| facade it marketed itself as.)
| moron4hire wrote:
| Oh man, I always thought it was some kind of joke theme or
| something like holiday themes that people only put on for a
| lark. I didn't realize people actually used it as a daily
| driver theme. How is that even possible? Even in my 20s I
| thought it was terrible.
| ukFxqnLa2sBSBf6 wrote:
| It's a fun idea but the ability gimmick makes me not interested.
| I imagine it will also quickly be overrun by AI copy/pasters.
| jellyfishbeaver wrote:
| I must be in the extreme minority, I always prefer light themes.
| foepys wrote:
| Same here. I work in an office with lots of daylight and dark
| mode makes it actually very hard to see.
|
| Also, light theme allows for more distinguishable colors.
| dijit wrote:
| I get horrified looks from my dev team when they look at my
| screen, but I typically use light mode for work, and I find it
| easier to read by a long shot.
|
| For dev work at home, I use darkmode, but I usually work in a
| less well-lit environment and for less time.
| ImPleadThe5th wrote:
| Exactly. Light mode for coding in the sun. Dark mode for late
| night hacking.
| tsumnia wrote:
| WIIIIIIIITCH!
|
| Just kidding ;D
|
| I'm actually studying my students' color theme preferences for
| lecture slides and I'm seeing that while a majority do prefer
| dark mode, there is noticeable chunk that still prefer light
| mode. I think some of it may involve time of viewing, but that
| is another research question I haven't explored quite yet.
| mmoskal wrote:
| I think universally light when using a projector! But maybe
| nowadays it's remote or big LCDs...
| ramon156 wrote:
| I actually went back from dark to light! Feels pretty good
| jisnsm wrote:
| I suffer from astigmatism and dark themes fatigue me a lot.
| kleiba wrote:
| We're in the same boat, my eyes actually start hurting when I
| look at a light-on-dark screen for more than a couple of
| seconds.
|
| I'm just really glad that my web browser has a reader mode, or
| else there would be quite a few web sites (blogs etc.) that I
| could not read.
| TrackerFF wrote:
| I "grew up" coding in bog-standard light mode decades ago, and I
| guess it just stayed with me? Still do it that way.
|
| EDIT: If you're gonna be devious, just force people to code with
| blue font over black background.
| babyent wrote:
| Solarized Light 4 Life lol
|
| Dark mode always strained my eyes like crazy. White bg is too
| much. Solarized Light works best for me.
| skirmish wrote:
| Just changing the white background into pale yellowish and
| leaving black text as it is for better contrast works much
| better to me.
| pavlov wrote:
| In my universe, the only permitted background colors for
| programming editors are NeXT white, SGI pastel yellow, and Turbo
| Pascal blue.
| nialv7 wrote:
| just tried to play a round, the answer checker failed because it
| compares the results with `result == eval(expected)`, where
| `expected` is `"true"`, which is not a thing in Python.
___________________________________________________________________
(page generated 2025-02-23 23:00 UTC)