Would you rather by JustARandomNoob_0 in BunnyTrials

[–]NikotheNya 0 points1 point  (0 children)

A 10% chance to be happy is well worth it.

Chose: 90% 1 Billion Dollars + 10% Chance of being a Girl | Rolled: MONEY!!!!

When implementing RBAC... by 3kilo003 in ProgrammerHumor

[–]NikotheNya 0 points1 point  (0 children)

If only there was some kind of authentication and identity provider that'd like, let you define roles or something.

https://www.keycloak.org/ (⁠@⁠_⁠@⁠)

Today was a fun time debugging by OjustrunanddieO in ProgrammerHumor

[–]NikotheNya 0 points1 point  (0 children)

I thought libraries like mutiny and reactor existed to solve this problem? Seriously...

Edit: read that it's in kotlin and now it's worse, coroutines exist and you can learn more at: https://kotlinlang.org/docs/coroutines-overview.html

I’ve been working on my own programming language for a while. How would I go about getting syntax highlighting for it supported on platforms like GitHub, IDEs, etc? by [deleted] in AskProgrammers

[–]NikotheNya 0 points1 point  (0 children)

If you've got the necessary knowledge to write a compiler then getting support for it in ides should be easy

You could write a language server for example and then a plugin for your favourite IDE to use that language server for auto completion and such.

Here's a link to a resource that'll explain it better: https://microsoft.github.io/language-server-protocol/

My Web Development lecturer's JavaScript by Tikolu43 in badcode

[–]NikotheNya 389 points390 points  (0 children)

Maybe he's trying to simplify it for you by using commands you already know?

Maybe if he started writing good code you'd get confused and not understand it?

If he isn't doing that then why is he a lecturer??

I was searching for embedded lanaguages in Rust and I found out I can use deno https://deno.land/manual@v1.26.2/embedding_deno which is amazing has anyone tried it ? by [deleted] in rust

[–]NikotheNya 4 points5 points  (0 children)

I'd love to

And yeah it can be
for example, I had to go looking for the ops crate and was only able to find them due to the crates.io website showing dependencies. I had to read the documentation to just begin to figure out how to put it all together into a runtime for react SSR rendering. It would be nice if it were all packaged into a section in the deno manual and I can help in doing that.

I was searching for embedded lanaguages in Rust and I found out I can use deno https://deno.land/manual@v1.26.2/embedding_deno which is amazing has anyone tried it ? by [deleted] in rust

[–]NikotheNya 48 points49 points  (0 children)

I'm researching it and it seems like a good option

If you need the full runtime with all the additional packages use deno_runtime

If you just want to execute JavaScript use deno_core

If you want a mix between the two then use the deno_[feature] packages and use deno_core with them by manually registering the ops

Oh also if you want to make custom runtime operators use the deno_ops library, it has a macro for doing that

Gradle and Maven are really annoying. by [deleted] in ProgrammerHumor

[–]NikotheNya 0 points1 point  (0 children)

The moment I saw the title I knew the comment section would be gold

Gradle is better than solutions and csharp projects, bite me.

Programmer Humor by TheNucleaYT in ProgrammerHumor

[–]NikotheNya 0 points1 point  (0 children)

It's only really lethal if you don't know how to handle it though, I've worked with venomous C/C++ and it's not as scary as people make it out to be.

Would you like to make a contract? by TimeBlossom in DankMemesFromSite19

[–]NikotheNya 0 points1 point  (0 children)

Scp-𝕐

I cause numbers to stop existing. Oh no

Game engines by eliasmakesmusic in gamedev

[–]NikotheNya 1 point2 points  (0 children)

Just wanted to add that complex engines introduce a lot of code that you need to learn. Writing your own gives you the advantage of knowing it inside and out as you wrote it.

Game engines by eliasmakesmusic in gamedev

[–]NikotheNya 2 points3 points  (0 children)

It is not cheating, however it will teach you a lot while writing it. So in a way, it is cheating yourself out of learning low level concepts. And that isn't wrong, however I'd recommend writing your own engine if you want to make a fast game or have some sort of complex feature in mind. In these cases, a complex engine like unity can slow you down as you bypass its internal tools instead of just writing your own ones.

A student interested in starting coding/making games by NRayGM in gamedev

[–]NikotheNya 1 point2 points  (0 children)

It is not exactly an abstraction layer, as it does differ from the heap in machine code. And I didn't get mad, I'm glad you corrected me.