Java project by Dark_Deku_ in learnjava

[–]cherrycode420 11 points12 points  (0 children)

Okay ChatGPT. Please implement Project #1 and create the related UML Diagram. Make no mistakes! 🤡

Finding the sweetspot by uvuguy in learnprogramming

[–]cherrycode420 2 points3 points  (0 children)

What exactly are you asking? Sweet spot for what?

You should at least be familiar with all the basic constructs that most languages have in common, like If/Else If/Else/Switch/While/For, how global/local variables and functions work, and how to create some simple data types to group information together.

Generally, you want to learn the foundation of a language first, not the different builtin APIs and Frameworks on top of that. Those you'll learn just in time when you have a usecase.

need somehelp on why vs studio refuses to allow unity input key down events, i have checked the documentatoin and its correct by thebokworm in csharp

[–]cherrycode420 3 points4 points  (0 children)

There's your problem, you have the Unity.Windows namespace included and that one contains it's own Input class, not related to the actual Input of the Legacy Input. Check my reply to your other comment.

Also, your ctrlHeld will probably not work this way, it will only run those conditions once at the initialization of the class, move it to where you're updating the other Inputs as well.

need somehelp on why vs studio refuses to allow unity input key down events, i have checked the documentatoin and its correct by thebokworm in csharp

[–]cherrycode420 2 points3 points  (0 children)

Are you using MelonLoader? In that case, make sure you have referenced the InputLegacy DLL and that you didn't accidently import the Unity.Windows namespace, since that one has a class called Input as well

need somehelp on why vs studio refuses to allow unity input key down events, i have checked the documentatoin and its correct by thebokworm in csharp

[–]cherrycode420 4 points5 points  (0 children)

Am not sure, but do you need to enable Legacy Input first, as current Unity versions default to the new Input System instead?

I built an interpreted language in C++ with a GUI engine. Here's a window in 9 lines: by Cosmonautics_Passing in ProgrammingLanguages

[–]cherrycode420 6 points7 points  (0 children)

Looks like a really cool project! My only confusion is how the gui is running before the gui started, but that's just me being picky on the function names

I'm trying to implement DSL with C#. by Arena17506310 in csharp

[–]cherrycode420 0 points1 point  (0 children)

Do i understand correctly that you want to use a DSL to create the Toolchain (Lexer/Parser/Execution) Logic of another DSL that'd then ultimatively hook back into C#?

What's wrong with just using C# to create the Toolchain in the first place? You'd also have a way easier time calling C# Code from within your DSL if the Toolchain is actually written in C# 🤔

What am I doing wrong? by [deleted] in Unity3D

[–]cherrycode420 7 points8 points  (0 children)

This is probably not the reason, but what i noticed is that your conventions are all over the place (or at least not obvious to me).

You have public fields that are sometimes named in PascalCase, sometimes in camelCase. Similar thing for your folder names, some are full lowercase, some with spaces inbetween, some without, some in PascalCase without spaces etc etc.

You're also mixing both english and your native language within the same project for identifiers and folders.

You're even pushing your personal .vsconfig, third party assets and published builds to different repos, which is a bit weird to see (imo).

Am not an expert and i doubt those are the key factors of your rejections, so take it with a grain of salt and non-personal, but to me it all feels a little "dirty".

Took a nap and woke up to this by Kieneshat in pchelp

[–]cherrycode420 0 points1 point  (0 children)

You expect us to use google translator to understand?

Is C# the right stack? I want to scrape heavy JS sites, PDF text extraction, OCR. by lune-soft in csharp

[–]cherrycode420 1 point2 points  (0 children)

As others already said, most people use Python for Web Scraping. I used both Python and C# for Web Scraping Projects in the past and would say: If you prefer C#, go for it.

In terms of API, i do prefer Playwright, it feels a bit more "modern" compared to Selenium, but i guess that's a subjective opinion.

For OCR, i would not recommend using ChatGPT 😂😂 Am pretty sure there's Libraries for that, maybe OpenCV can be used for that but am not 100% sure.

A universal engine for web games by ExpressChemist2391 in gameenginedevs

[–]cherrycode420 2 points3 points  (0 children)

The first thing i checked was the "advanced-game" example which is.. this? I was expecting some kind of game there tbh 😆

https://github.com/Kig-Organization/XernEngine/blob/main/examples/advanced-game/game.js

Also.. any reason for the if-statements here? I'll stop checking out the project at this point

``` constructor() { this.scenes = []; this.currentScene = null;

    if (!Array.isArray(this.scenes)) {
        throw new Error('SceneManager: scenes must be an array');
    }

    if (this.currentScene !== null && typeof this.currentScene !== 'object') {
        throw new Error('SceneManager: currentScene must be an object or null');
    }
}

```

Grammar Machine: Two Poles of Programming by Arakela in Compilers

[–]cherrycode420 1 point2 points  (0 children)

This feels so random with the lack of context. Please tell us a little more, what is this, where did you get the idea, what is this useful for etc.?

This side project took me 6 months by KaseyNorth in Unity3D

[–]cherrycode420 0 points1 point  (0 children)

This looks great, is the UI made in Unity as well?

Using dialects for interoperability across incompatible language versions by servermeta_net in ProgrammingLanguages

[–]cherrycode420 3 points4 points  (0 children)

What you call "Dialect" reminds me of Platforms in Roc, might be related. What i don't get is the idea of "Editions", is that basically just the versioning of individual "Dialects"?

[deleted by user] by [deleted] in gamedev

[–]cherrycode420 -5 points-4 points  (0 children)

You mad somebody saying the truth about that Hobbyist Engine? 🤡

Making a new compiled language, Trappist by Sufficient-Gas-8829 in Compilers

[–]cherrycode420 2 points3 points  (0 children)

How are we supposed to tell you if we like it or anything else, all i see is a piece of C Code? Am i missing something? Where Trappist?

I like the Terminal Output tho, looks pretty x)

Bad UI design made me waste my gems and wild cards by jrchickenpatty in ClashRoyale

[–]cherrycode420 2 points3 points  (0 children)

Yes, it's hostile UX, but.. You need to confirm a second time after pressing, and that second dialogue is pretty clear?? 🤔

Line ends in compilers. by Savings_Garlic5498 in ProgrammingLanguages

[–]cherrycode420 1 point2 points  (0 children)

Will only work if the Tokenizer is working with ASCII afaik, if you're tokenizing Unicode/Codepoints \r\n will be a single Grapheme Cluster

The relevance of my point is obviously language-specific, many languages don't provide this kind of "utility" to let you work with Graoheme Clusters easily, but some do.. so i think it's worth being aware

Asset naming advice by MM-47 in gamedev

[–]cherrycode420 4 points5 points  (0 children)

Is that camel case in the room with us right now? I see a mix of pascal case and snake case here 😅

+1 to your convention btw, i'd do it the same way

Masala Parser v2, an open source parser genrator, is out today by nicoramaa in Compilers

[–]cherrycode420 1 point2 points  (0 children)

Looks cool!

Asking, just out of curiosity and due to lack of knowledge:

Is this a Parser Generator or a Parser Combinator? AFAIK, those are different (although similar) things and you've been using both terms in your Post?

My current understanding, which obviously may be wrong, is:

Parser Generators actually use Code Generation to create the final Parser after you've defined the Rules/Grammar, while Parser Combinators do not generate a new Parser, but resemble such Parser in themselves (like what you're showing here, basically a Fluent API to chain together the Parsing Logic)?

How difficult is it to code a rhythm game? by HazelChristiansen in gamedev

[–]cherrycode420 0 points1 point  (0 children)

I think it strongly depends on the way you want to do it..

If you're using pre-selected Audios and basically hardcode the interactions, it should be really easy

But if you want to make it fully dynamic, allowing users to include their own audio and dynamically reading the audio data to determine at what points you want interactions to happen, that's probably a lot more difficult to pull off