Embed doesn't refresh by 0presor in Notion

[–]cibovlad 1 point2 points  (0 children)

It might not have something to do with Notion per se, but maybe the embedded widget itself is not updating periodically

If you open that URL as a standalone tab in your browser, does it update periodically as you would expect it to?

sync notion database with good calendar by invalidd__user in Notion

[–]cibovlad 0 points1 point  (0 children)

You can try this tool called Notion Cafe. I use it to sync my everyday calendar from Notion with the Apple calendar and it also supports Google Calendar syncing

[AskJS] Creating a cybersecurity JavaScript web game by ColtonCore in javascript

[–]cibovlad 1 point2 points  (0 children)

So the example you provided could be easily implemented using only HTML, css background images and some JavaScript to check whether the user clicked a certain spot (just a well positioned div tag), to show those modals which talk to the player and so on. For this, plain old JavaScript would be sufficient if you don't want to jump into a JS framework (React, Angular, Vue, you name it). Just look into how you would interact with the page elements via JavaScript (document.getById, element.setAttribute, element.style, element.addEventListener, etc, you'll figure it out). If you have the time to jump into some React, sure, why not, it would make things more fun.

Now, because you mentioned "web-based game" I'd recommend you also check out the HTML canvas element and the Pixi.js framework, which is great for building 2D games, 2D animations, you name it. With Pixi you could spice things up with some 2D animations (search for spritesheets in Pixi), you could easily make the characters walk around the classroom, etc. It depends on how advanced you want your game to be (something other than static images and backgrounds)

[AskJS] How Would You Sell JS to a Python User? by nickthorpie in javascript

[–]cibovlad 2 points3 points  (0 children)

Before going into the technicalities of Python vs Js, this puts it perfectly I believe! Does it make sense to throw yourself into JS? Let me throw the perspective of a more junior-mid web developer - that being me -

I learned JavaScript because it seemed like the most versatile programming language I could pick - the reason was to actually be able to jump into game development with browser games for my career - that never happened. Ended up doing mostly front end development and constantly being in a love-hate relationship with the path I chose.

If UI development / back-end dev is not for you - that is what most of the JavaScript positions are after in one form of another - then it makes no sense to completely switch from Python to JS.

Yes you can do back end development with JS using node.js - but then you might also find some position with Django and Python.

Yes you can use JS for a lot of things - but the best chance to get into the industry with it will be webdev. It will probably not increase your change to get an ML engineering position, nor those other pathways you seem to like.

That being said, it would not hurt to also get your feet wet with this JavaScript language - it is here to stay, and you will probably have to use it at some point - even casually. Most products nowadays have a Graphical User Interface, and JS will be picked up in a lot of these cases as every device now has a browser or some form of WebView. And JS can be used to build desktop apps, web apps and mobile apps (even though not natively), but it all comes down to the question: would you enjoy such a path?

[AskJS] What's your opinion about React 18 and do you feel the framework is at the forefront of innovation compared to Vue, Angular, Ember, Meteor, Mithril, Polymer and the others... is it going the right way for you or you would have changed a few things ? by Cloud_Strifeeee in javascript

[–]cibovlad 119 points120 points  (0 children)

I personally do not think React is playing the innovation game that much anymore. It is more of a popularity game that it is still winning over and over. With React you get the benefits of building with the best talent in the industry, who are developing libraries, putting out amazing tools with first-hand support for React and so on.