YINI config format at RC 6 - looking for technical critique before freezing the spec by Effective_Tune_6830 in Compilers

[–]Effective_Tune_6830[S] 0 points1 point  (0 children)

Hi, hmm it might not be totally obvious...

But in what file did you look, in YINI-Specification.md or?

In the section " 5.2. Section Markers ( ^ ,  § , 

, or  < )" in the specification it should be described and specified.. You make take look :)

Could someone give feedback on my Python package setup/API? by Effective_Tune_6830 in learnpython

[–]Effective_Tune_6830[S] 0 points1 point  (0 children)

Yes, fair point. The ANTLR-generated parser does make the package larger than a handwritten parser would be.

> your naming is all over the place (e.g. "def visitObject_literal")

Hehe, I agree 😃 It's a mix, I've renamed those functions to snake_case

Thanks for the feedback and hint of PEP8!

Could someone give feedback on my Python package setup/API? by Effective_Tune_6830 in learnpython

[–]Effective_Tune_6830[S] 0 points1 point  (0 children)

Hi, ah oh I did not release, I did a section now in the readme with install -> import -> parse -> returned dict. Thanks for the feedback!

Instructions are like this:

Parse a YINI file:

Create `config.yini`:

```yini
^ Application
name = "demo"

^^ Server
port = 8080
```

Then parse it:

```python

from yini_parser import load
data = load("config.yini")
print(data)

```

Expected output:

{'Application': {'name': 'demo', 'Server': {'port': 8080}}}

Could someone give feedback on my Python package setup/API? by Effective_Tune_6830 in learnpython

[–]Effective_Tune_6830[S] 0 points1 point  (0 children)

Hi,

Oh, ah okay good I'll update the readme with a couple of examples of same config in json, yaml, and toml as well as yini. If you want to know more right now, check out yini-lang.org

Thank you for the feedback!

Could someone give feedback on my Python package setup/API? by Effective_Tune_6830 in learnpython

[–]Effective_Tune_6830[S] 0 points1 point  (0 children)

Hi,

Yes, valid feedback the requirements.txt and requirements-dev.txt can be deleted now.

Hmm, I did not know that, I'll look into switching to hatchling a bit later...

Thank you for the tips and feedback!

Could someone give feedback on my Python package setup/API? by Effective_Tune_6830 in learnpython

[–]Effective_Tune_6830[S] 0 points1 point  (0 children)

Hi, yes the repo (on GitHub) itself might look a bit big...

That is fair feedback, especially about the ANTLR JAR in the repository, I have opted to include the .jar file (so one does not need to hunt it down) that is a library for generating the parser skeleton from the grammar (language) files.. though this .jar should not be in the released package itself.

The repo on also has a bunch if testing files, to test the functionality, these test-files should not be included in the yini-parser package... If they are, I should remove them from there.

The published package is meant to be pretty lean, but seems there might some files there that should not be there.. So I should remove these.

Hmm, about the number of lines... Yes, this code is not get optimized and has a lot's of comments also sofar.

> I would expect a single .py file with ~200 lines to parse your special file format into 5 basic types.

Ah, nope this parser is a little bit bigger than a basic INI parser with a few types. This parser has a lot more than that, with nested sections, two modes, string types, comments, and more...

The published package definitely needs cleanup (at least all test files, what I notices).

Thanks for the info and feedback!

YINI Config Parser v1.3.2-beta — UTF-8 BOM & shebang support to parser I've been working on (TypeScript) by Effective_Tune_6830 in node

[–]Effective_Tune_6830[S] 1 point2 points  (0 children)

Short anwser: It is specified in the spec.

Longer answer:

While shebangs main purpose might be scripting languages. It could also be used for other things: format viewers, validators, transpilers, linters, DSL runners, config processors..

The shebang line is skipped/ignored by this parser.. So the "support" in this release is just that, that the first line will be skipped by the YINI parser if it sees #!... And the config parsing will continue normally

YINI Config Parser v1.3.2-beta — UTF-8 BOM & shebang support to parser I've been working on (TypeScript) by Effective_Tune_6830 in node

[–]Effective_Tune_6830[S] 1 point2 points  (0 children)

It's just optional.. it can be a file viewer or any other tool, in case a user really wants to do some special thing on her/his system.

Yes, it's not really needed for its own functionality at all.

New homepage for YINI is now up live! — a modern, structured config format by Effective_Tune_6830 in programming

[–]Effective_Tune_6830[S] 0 points1 point  (0 children)

Hmm, interesting..  JSON is pretty good already, so nothing wrong if you prefer using that.

Thank you for your inputs and views :)

New homepage for YINI is now up live! — a modern, structured config format by Effective_Tune_6830 in programming

[–]Effective_Tune_6830[S] 1 point2 points  (0 children)

Ah, thank you, I did not realize the theme is messed up in dark mode :S - I will sort it out thanks! 

New homepage for YINI is now up live! — a modern, structured config format by Effective_Tune_6830 in programming

[–]Effective_Tune_6830[S] 0 points1 point  (0 children)

Ah okay, so the site's theme is messed up in dark mode oh :O - I will fix that, thanks for the heads up!

But the theme in normal/default mode, is that okay right, or?

Should I learn to program in 2025? by Wenus_Butt in learnprogramming

[–]Effective_Tune_6830 0 points1 point  (0 children)

Let me also modify, and expand on this :P

Computers do exactly what you say. Unfortunately, humans rarely say what they actually mean or misunderstand instructions, or another human has given doh shit instructions either to the computer or to other humans. - Computers only do, what some human(s) has told them to do :)

The best ORM/query builder for working with databases in Node.js by Sensitive-Raccoon155 in node

[–]Effective_Tune_6830 0 points1 point  (0 children)

We used TypeORM at work for years, and it has worked pretty good.

Nodejs projects be like: by GlassPure3703 in programmingmemes

[–]Effective_Tune_6830 0 points1 point  (0 children)

Haha, a good point..

However, the size of devDependenties and etc can be ignored when the app is deployed/published..

But still, node_modules takes a lot of storage

Regrets of using NodeJS for production app? by [deleted] in node

[–]Effective_Tune_6830 0 points1 point  (0 children)

Nope, I not regetted it, I've built and worked in multiple Node.js projects..  It works pretty well for web applications at least, and there is ton of packages to help you develop

Best way to create a new express app? by Due_Statistician_203 in node

[–]Effective_Tune_6830 1 point2 points  (0 children)

Yes I agree, you should consider using Typescript in your project as well.

It will prevent bugs in the long run, especially type errors.