11 ms·
LeetCode but You Can Force People to Code in Light Mode
- eGQjxkKF6fif 2y agoThis 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.
- weebao 2y agoThat'll be awesome. I'm also planning a relay style team mode where each person can code for 5 minutes or so and the next will jump in :D
- deleted 2y ago[deleted]
- deleted 2y ago[deleted]
- user9999999999 2y ago"Runtime analysis? How is that possible?" I thought... https://github.com/beatcode-official/server/blob/42169027dda3d0f0982ee56c39a295f54706be57/app/services/execution/runtime_analysis.py https://github.com/beatcode-official/server/blob/42169027dda...
- bean-weevil 2y agoLmao. They need to call that out so the users know not to believe it
- deleted 2y ago[deleted]
- Aurornis 2y agoClarifying 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.
- ericye16 2y agolmao, halting problem solved with one weird trick!
- dudus 2y agoMore and more I find code like this. When you dig into an interesting aspect it's just an llm call. I haven't decided yet if it's good or bad. But it does seem to work a most of the time. The problem is that we're used to code that works all the time or none of the time. With LLMs you can't know if it's right for sure and it's really hard to check.
- weebao 2y agoYeah sorry :) At first I tried to do a stress test, then plot a curve and try to find the closest runtime curve to that curve but it didn't work most of the time ;-;
- deleted 2y ago[deleted]
- deleted 2y ago[deleted]
- user2093 2y ago[flagged]
- dudus 2y agoI just wanted to mention another cool alternative https://neetcode.io/ 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
- deleted 2y ago[deleted]
- koakuma-chan 2y agoHe 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.
- leoqa 2y agoGetting a job at Google is a superficial achievement that won’t fix any self esteem issues.
- dudus 2y agoThat may be true for a lot of people. But no matter how much you hate a specific company this just isn't true for most people. For me personally it would be an immense boost to morale. Getting any offer would boost morale but a top tier tech company is the Pinnacle.
- bluesnews 2y agoThat seems a bit silly to call an achievement that pays you money superficial. Also no matter where you are in life, it is feels good to reach goals you aspire to.
- courseofaction 2y agoGetting a job at a major company gave me the self esteem to realize I could do it myself. It's a boost even if you quit.
- weebao 2y ago
- jtreminio 2y ago> 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 2y agoIt 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 2y agoDark 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 2y agoOh 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.
- smohare 2y ago[dead]
- weebao 2y agoHmm there're a lot of light mode fans here. I'll probably need to pivot to some color inverse scheme instead
- ukFxqnLa2sBSBf6 2y agoIt’s a fun idea but the ability gimmick makes me not interested. I imagine it will also quickly be overrun by AI copy/pasters.
- weebao 2y agoYea true not sure how to prevent that so ig this is just a project for now
- jellyfishbeaver 2y agoI must be in the extreme minority, I always prefer light themes.
- foepys 2y agoSame 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 2y agoI 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 2y agoExactly. Light mode for coding in the sun. Dark mode for late night hacking.
- tsumnia 2y agoWIIIIIIIITCH! 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.
- babyent 2y agoSolarized Light 4 Life lol Dark mode always strained my eyes like crazy. White bg is too much. Solarized Light works best for me.
- skirmish 2y agoJust changing the white background into pale yellowish and leaving black text as it is for better contrast works much better to me.
- VirusNewbie 2y agoSame here, spent many years in dark mode but solarized light is perfect and have been happily using it for the last five years. Thank goodness my current companies custom IDE supports it.
- TrackerFF 2y agoI "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.
- weebao 2y agoI may be evil but I have my standards sir... (Why not just random rgb flashes?)
- pavlov 2y agoIn my universe, the only permitted background colors for programming editors are NeXT white, SGI pastel yellow, and Turbo Pascal blue.
- weebao 2y agoIn my universe, the only permitted background is pitch terminal black
- nialv7 2y agojust 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.
- apesti 2y agoAlso there is an issue where string comparison doesn't seem to work. Unfortunately the site is unplayable currently. But it has a lot of potential, it's similar to binarysearch.io which all my friends loved: https://news.ycombinator.com/item?id=22164212 https://news.ycombinator.com/item?id=22164212
- weebao 2y agoThanks for the report, I just fixed it!
- johnm 2y agoA bunch of wimps for not going back to actual VT220 green phosphor terminals. Lol.
- walthamstow 2y agoI use light mode when it's light, and dark mode when it's dark. Anything else results in either cooked retinas or excessive squinting. It baffles me that anyone could be so wedded to their theme that they would use dark at midday in a well-lit office or vice versa.
- smohare 2y ago[dead]
- sureIy 2y agoThis became obvious to me when switching between my dark editor and the bright website I was developing. It was pointless to have to adjust the screen brightness at every switch. Once theme switching became part of the OS, I rejoiced. It still pisses me off when I reach a website that doesn't follow my scheme setting but offers a manual toggle.
- walthamstow 2y agoDark Reader extension is my weapon of choice for this, for sites that don't offer a dark mode. I've set it up to follow the system theme, all my apps are set the same, so when I flick the system theme (or it does so on sunset), everything changes. It's the little things in life.
- weebao 2y agoImma add an ability that flashes rgb in your editor then. Thanks for the suggestion :D
- weebao 2y agoBasically 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 https://github.com/beatcode-official
- net01 2y agohave a look at this "https://github.com/INGInious/containers https://github.com/INGInious/containers" - open-source platform for secure and automated code assessment
- FabHK 2y agoIn case it's your own project, I believe the convention is to prefix the title with "Show HN:".
- weebao 2y agoSorry I'm new here seems like I can only edit the title within 2 hours of posting. Thanks lots for telling me!
- conradkay 2y agoNeetcode uses/used judge0 for code execution but it might be overkill https://github.com/judge0/judge0 https://github.com/judge0/judge0
- weebao 2y agoYea I knew about that but I wanted to learn how to build one my own :D
- metadat 2y agoWhat were the challenges you encountered / tackled with creating a code runner? Cool project!
- koinedad 2y agoThe magic elements are a fun idea!
- weebao 2y agoThanks!
- DidYaWipe 2y agoI don't see where it says that. Regardless, is that forcing an inverse color scheme on someone supposed to prove something valuable?
- weebao 2y agoIt's just an ability to annoy people. I also had another one where you can rick roll them in the background :)
- DidYaWipe 2y agoHa, OK. I've been annoyed enough through what I will call the Color-Scheme Stupidity years, between the time that Microsoft removed the color-scheme editor from Windows and everyone finally realized that reading black text on the surface of a light bulb all day is stupid. They had it right in the '80s (except the Mac): white text on a dark-blue background FTW. And through the '90s and probably into the 2000s, Word even had a specific checkbox option for this scheme: "Blue background, white text."
- amne 2y agoI'm just here to praise the "Login as guest". Thank you !!
- weebao 2y agoYou're very welcome :)
- addandsubtract 2y agoThe "freezio" ability seems more like a power up, than a roadblock. Imagine people actually read what they wrote.
- weebao 2y agoLmao true
- phoe-krk 2y agoGoing for "deletio" too many times causes the JS to go into a loop. Still, fun.
- weebao 2y agoHuh interesting I'll try to fix that. Thanks lots!
- weebao 2y agoKinda insane how this post I made for my project got viral. Got a tons of feedbacks and I just want to thank everyone here for checking it out. Really means a lot for a student trying to build cool stuff :)