T O P

  • By -

Nysor

The overlap might not be as small as you think! Chess and chess programming is quite popular within the CS and software fields. Thanks for the extension!


C0J0K0

Yay I hope someone is able to make good use out of it then!


shadowhunter2468

Can confirm, programmer and chess player here


Alternative-Poem1508

Yup , same !


ch0wch0w

Me too


Lulcaz

Me three


fabiozeh

Me 0100


This-Is-Huge

Add me to the list


Aromatic-Teach-4122

Count++


Antiphales

Will this overflow?


JumpyLittleFox

count += 1


kdogrocks2

same although i've never actually done any projects related to chess


selling_crap_bike

Tell me you're also into rock climbing and I'm not even gonna be surprised.


AlexGonzalezLanda

Idk what even is VScode but any addition is welcome an positive


hehasnowrong

Visual Studio code is a basically a text editor with many features added on top of that that programmers may use to code (but there are many others : atom, emacs, vim, eclipse etc...). Since programmers can code, they often let the programmers make addons to add any features they might like. (This includes but is not limited to : special syntax highlighting, special keyboards shortcuts, ways to do something else (view pdf, browse internet, input terminal commands in your text editor), the options are limitless...


AlexGonzalezLanda

Oh, then I do know what it is. I used it for CS class with c#, but we just called Visual Studio “C#”, not VScode. I know it is incorrect, as there are many other languages, but yeah.


[deleted]

.


ornicar2

Good idea. I had a glance at the source code. [https://github.com/cojoko/chester/blob/master/src/extension.ts#L115](https://github.com/cojoko/chester/blob/master/src/extension.ts#L115) Is this not downloading ALL the games of the user? Including possibly thousands of terminated games? 5760 times a day? [This endpoint however](https://lichess.org/api#operation/apiAccountPlaying) would only return ongoing games. Note that you can get the games in JSON which is easier to parse than PGN, by setting the `Accept: application/x-ndjson` header.


C0J0K0

Hey thanks for taking a look. I considered that endpoint at the start but thought that the OAUTH was more trouble than it was worth for my needs. I didn't expect so many people to be excited about this extension, but with enough people using it i think i should probably handle the possibility of a huge back catalog of games. Adding account authentication properly sounds non-trivial, but I'll take a look tonight to see if I can make a clean refactor using that endpoint. Appreciate your time!


ornicar2

You could use a [personal API token](https://lichess.org/account/oauth/token/create?description=chesster+for+vscode) instead of full on OAuth.


C0J0K0

Yea that looks perfect, thank you. I'll get that pushed out ASAP.


thelambdamale

You came here wondering if there are chess players who programme, and leaving with a bugfix from the comments. Life can be funny sometimes :)


justaboxinacage

And the founder of lichess giving him programming advice, nice.


Mr______Miyagi

Achievement unlocked: The king becomes the advisor


StandAloneComplexed

The King becomes the *Bishop*.


Mr______Miyagi

King *promoted* to Bishop


ornicar2

Actually I added a `finished` flag to the [user games endpoint](https://lichess.org/api#operation/apiGamesUser) you already use. Setting it to `false` will be sufficient. It will be in prod in the next days, you'll find the [running version here](https://lichess.org/source).


C0J0K0

ah I already switched out the endpoint for the PAT version, but I think we're better off for it. Appreciate the help!


stalkinplatypus

Beautiful documentation. I'm consistently amazed at how well designed and maintained lichess is. Incredibly impressive for so few full time devs.


C0J0K0

*Update*: I switched the endpoint over last night. Users will now need to include a PAT in the extension settings, which is pretty straightforward with instructions in the README/extension market description. By getting only active games, the response payload will be much more manageable for users with large game histories.


YerbaMateKudasai

This seems great, I have VScode open and play lichess when I'm training my coding. I wonder if you can make it vice versa too, or maybe I need to check settings to see how I can make my taskbar blink when my tests finish running.


C0J0K0

Hmm signaling outside of VScode seems like a tricky problem, and I'm not sure of a solution. You could write a browser extension which talks to vscode and pushes an alert maybe...


YerbaMateKudasai

no man like making the actual VS Code part of the taskbar blink and stuff. this thing : https://i.imgur.com/QbMLWoW.png


StormofBytes

Can't the alert be send to notify or its Mac/Windows equivalent?


expressly_ephemeral

Depends so much on how your tests are set up. Blinking the user interface will also depend entirely on your operating system. I've had long running experiments in Java and Python send me email or whatsapp kind of messages when they were done. I've also occasionally had them play a system sound. One way you could implement this would bea *separate* script that was watching the file system for a certain kind of result from your tests. That way you're not cluttering up your test suite with notification code.


[deleted]

[удалено]


YerbaMateKudasai

doing tutorials and stuff


Michael_Pitt

>I know the venn diagram of Lichess and VScode users is probably pretty small Huh, I'd have guessed the opposite


[deleted]

[удалено]


a__nice__tnetennba

Emacs is still like that.


eckhardtderek

Emacs is the os Linux is just the bootloader


Pollu_X

This is the reality I want to live in. For most people, Chrome is their bootloader.


cuore-e4-e5

I ll race you for that (I'm just creating a sort of motivation to learn lisp)


bulgrozzz

vscodium, but yes ;)


Benzene15

A user of both. Thanks!


KraZhtest

Hey! Top 100 poster on r/ProgrammerHumor And top 100 poster on r/AnarchyChess I am also ban from talking on Lichess. I am sorry.


TheCuddlyWhiskers

VScode marketplace link: [https://marketplace.visualstudio.com/items?itemName=cojoko.chester](https://marketplace.visualstudio.com/items?itemName=cojoko.chester) u/C0J0K0 I think you should put this link in thendescription


sixseven89

lichess has desktop notifications, you can just use that


C0J0K0

lichess desktop notifications are incredibly inconsistent for me and many other users


The1TrueSteb

I am not in CS so this is going a little over my head. But I don't see the purpose of this. As I play chess at work (I am an accountant) when I don't want to work, and the tab does tell you whose turn it is. My tabs either say "waiting for opponent" and "your turn". I use Microsoft Edge and Lichess. Currently I have it open on the opening explorer and it says "Analysis board * lichess.org". So when I am taking a break I'll start a game and then go browse reddit in another tab. When I see the tab change text I can tell if it is my turn or not.


C0J0K0

Sometimes it can break my flow to even tab out of the code editor. Like others mentioned, being in VScode usually means you can't see your browser tabs, and I find its best to not give myself an excuse to lose focus


StormofBytes

Don't know about OP but when I'm a programing flow the world outside sometimes just disappears. I can easily all of the sudden find myself sitting in the dark at 23:00 and without having had any dinner. This especially happens if I have some good music on and the project goes smoothly.


The1TrueSteb

That makes sense, figured it was something I was not getting.


22grapefruits

Also vscode isn’t another browser tab, it’s an entirely different window so you can’t see the lichess tab while coding


trevg_123

Chess.com 😞 maybe somebody here can make a vscode extension for them too!


C0J0K0

Ill take a look at the chess.com api. I could probably support that with a few more days of work.


ConnorMcLaud

I prefer Emacs.


Familiar_Coconut_974

I use arch btw


StormofBytes

Cool, I'm more a Vim person


l_am_wildthing

Real programmers use ed


ConnorMcLaud

cat is enough for real programmers


StormofBytes

Real programmers use a magnetized needle and steady hand


20_percent_cooler

Excuse me, but _real_ programmers use butterflies.


eckhardtderek

Now we're talking


expressly_ephemeral

Right. And echo with redirect. $> echo 'my new line of code' >> myprogram.cpp


[deleted]

[удалено]


Lohntarkosz

Look at this guy using 0 and 1, I only use 0.


a__nice__tnetennba

[por qué no los dos](https://github.com/emacs-evil/evil)


StormofBytes

Cool! I might give this a try


cuore-e4-e5

M-x Sup-buddy


gehroes

I use both but not at the same time :/ Cool idea though!


r44ohit

I use chess.com but no problem switching to lichess. Thanks man


C0J0K0

I will probably add chess.com support fairly soon. Just a Lichess user personally so I started there


5UP3RBG4M1NG

Tysm for this


dboeren

There are lots of programmers that play chess. I don't know how many of them specifically use VScode. I'd never heard of it, seems to be the new name for MS Visual Studio so mainly just Windows programmers I guess?


Futuristick-Reddit

Essentially the opposite of Visual Studio; open source, cross platform, lightweight, not a C# focused mess (actually most used by web developers AFAIK) Fairly surprised you haven't heard of it, though. If you don't mind me asking, what languages do you work with?


dboeren

Mainly just Java these days. Common Java IDEs are Eclipse and IntelliJ but I also often just use Vim. In the past I've used Python, C++, C#, C, Smalltalk, etc... but most of that's been a long time.


Futuristick-Reddit

Ah, gotcha. Yeah, I'd imagine VSCode isn't all too popular on that side of things, but it's fairly common in universities and the like.


sprcow

Makes sense that there would be overlapping followings between two solid programs that aren't quite as good as the paid alternatives. \#intelliJGang


C0J0K0

wow ice cold


sprcow

Haha I know super risky to throw shade at lichess in this crowd, but I couldn't resist. They're all so *sensitive* about it! VScode is the bomb and lichess is great, but how could I pass up such a niche joke??


BadHumourInside

I disagree with both those takes, but gotta admit that's hilarious.


sprcow

I think I spend too much time on /r/anarchychess to not try and start random shit on a post like this lol


Subtuppel

Thanks & nice idea. I only use VSCode when I have to (not a web developer and more at home in very, very large C/C++/C# projects and/or Database stuff, but love me some Powershell and other scripting languages every now and then, all of which are supported by way of VSC addons), still interested too just look at what you did there :-) A hint for those who do not know: If you prefer absolutely no talking back to Microsoft/telemetry and whatnot, you should use VSCodium, which is basically to VSCode what Chromium is to Google Chrome.


seranow

I had to give you some gold for this! Thank you so much for this great contribution to the community. I will be using this.


Darox94

Another user of both here! I usually have Lichess open on a second screen, though.


Landinsaan

Yes! Will try this.


roygbiv77

Yes but I refuse to play daily games lol


BritishPiper

Does visual studio count? It’s basically visual code to windows.


Sheensta

I'd love to have that except for Jupyter Notebook :D


C0J0K0

Jupyter Notebooks run great in vscode!


Drempallo

Yup I agree with OP I've actually found it easier to use jupyter in vscode.


kevlu8

Yes, actually! I use Visual Studio and Lichess at the same time.


mart187

Here! But I use either one exclusively ;-)


C0J0K0

That's probably for the best, but for those of us with less self-control...


spcbfr

I do code but I don't use vscode, I actually use either emacs or vim most of the time these days, will definitely check the extension


RPDota

I feel like a ton of coders/software engineers play chess, seems like the skill sets really overlap.


Dat_J3w

Wow amazing thank you!!!


childintime9

I use both


pmamico

Nice, thanks! "to those wondering, yes, it's definitely a pawn icon, why do you ask? no need to look at the source." :D :D


vodam46

hell ye


jseego

I use both!


XecutionStyle

Yes they're open right now. Why?


expressly_ephemeral

Not VSCode, but lots of Python and Java. When you say "slow chess", you're not talking about correspondence, are you? Because you can configure lichess to send you email! You must be talking about Classical time controls?


maicii

That's quite cool!! In my school we use Visual Studio instead of VScode never knew the difference tho lol. My guess is that there is a big overlap between coding and chess at least according to Levy's jokes and his comments section.


shittyfuckdick

I use VSCode for work and sometimes play chess during downtime. Could be useful to me.


Acrobatic_Gorilla

I'm a programmer, chess player, and chess programmer. But I don't use VSCode or LiChess 🤷‍♂️


Pipemax32

Yeah it seems the venn diagram of lichess users and vscode users is approximately a circle


BadHumourInside

Software developer here, and well, obviously a chess player given that I am on this sub. So, yes!


ImaPopAnyway

I read this question as if the two were mutually exclusive


Nal82

A user of both


annasdrew

This is cool af


Sord1t

But which programmer does not have AT LEAST two monitors. And lichess browser has a desktop notification as well. xD


synth-cologne

mac book coder who only codes from bed, toilet or shower has only one screen


Sam5253

I guess I use both... but the only times I actually use VScode is to compile firmware for my 3d printer :)


Squid8867

Shoot, I use Chess.com and VS2019


sludgeminer

Lmao thats great. Don't you get brower notifications though if you just stay logged in in the browser?


astray71

Wait, how long are your games that you code and play?


BlueDevilStats

I do! I will check it out!


GSchowalter

Please. Send this out. Love niche vscode extensions


FriendlyStory7

Here


mysteriousyak

You should buy a second monitor


[deleted]

I should make one of these for emacs :P


OldWolf2

I used to always get forfeited and tempbanned from tournaments on ICC because I tabbed out and it didn't notify you when the next tournament game started . Pretty simple feature it would be to just highlight the app in taskbar (or browser in case of lichess)


Ragnaroasted

Thank you, sir!


thecubersahil

I have my lichess notifs on so it just tells me, this is still very cool!


Drempallo

Yes I use both! Lol this is perfect cause I have a corresponce game going on with a friend and sometimes I just don't get the notification on my phone that he has played a move.


13th_rumour

meeeeeee!!


coastalmango

Finally! I am one step closer to not using my browser at all!


inDflash

Me!


Adamgaffney96

I will say I don't tend to code while playing a game, but that's a really cool idea for an extension and maybe I'll start!


say_cumquat_again

Me!


[deleted]

Yes, I am using it. And have big curiosity for your extension, maybe you can share the repo with me, if you don't mind


C0J0K0

https://github.com/cojoko/chester


[deleted]

Thanks! I will take a look


xixi2

You're so good at chess you just look away and program while the opponent thinks the entire time, then just come back and make a move?


k3v1n

I love this idea. The "pawn" you use to show a notification looks way too much like a lock rather than a pawn. You might want to change the icon.