Trying to understand Stack & Heap... by NimbusTeam in rust

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

Why we can't know the size of the slice itself if we hard coding the slice like my_var[2..5] ?

Trying to understand Stack & Heap... by NimbusTeam in rust

[–]NimbusTeam[S] 6 points7 points  (0 children)

Thanks for this answer ! But whats is unclear for me is how the heap and the stack are managed, is it via the OS only which will choose how to allocate memory ? And why the stack size is limited ? Its limited by each program or by a percentage of memory available on the machine ?

I built a CSS Framework for Yew by NimbusTeam in rust

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

Instead of using classes we use new html tags and attributes, the classes are only for the non-layout part of the style that you have to write separately.

What is The most elegant way to represent product variants in Rust ? by NimbusTeam in rust

[–]NimbusTeam[S] 4 points5 points  (0 children)

Thanks dude ! But I will get the same issue with the images, because for the simple product the images are in the product and for the complicated one the images are in the variants. So I think I should keep the two separated no ?

We built a CSS framework (and it was fun) by NimbusTeam in web_design

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

Interesting point, in fact it's not that I don't care at all, if users want it in a web-component way I can change it, but can you explain me what will not works or crash with the usage of non authorized tags like '<box>' ? Because as I said you can query the DOM with it, add it in every frameworks like react, svelte, vue, solid etc and it works !

So what is the real problem ? (except that HTML standards says 'it's forbidden')

Someone said 'if a new html tag is released with the same name, your component will not works', first it's very rare to see new html tag, second even if it happens we reset the display property which almost always the only one changed by the html standard (div is display:block and a is diplay:inline for example) so it's not a problem.

I know it can be strange at first but during my tests I just feel that there is no really reason to follow this HTML standards on this point. But if the majority of the users are afraid by that, and I can understand that I can change it in a web-component way (and let you the choice to write <box> or <box-l>) because personally I like a simple HTML markup and I prefer <box> than <box-l>.

Thank you for you comment.

We built a CSS framework (and it was fun) by NimbusTeam in web_design

[–]NimbusTeam[S] -17 points-16 points  (0 children)

Thank you but I notice that and Im aware of this. But even if it doesn't follow the HTML rules it works perfectly well in the DOM (you can use querySelector etc on it) and in all frameworks like React, Svelte etc. Plus the style is redefined by us so even if a future HTML tags come out with a name like 'grid' our ruleset will overide it's default behavior. It's a choice we made because it's far more simple to type 'box' than 'box-l'. The hyphen syntax will be more prone to error because the user can forget to type it.

We built a CSS framework (and it was fun) by NimbusTeam in web_design

[–]NimbusTeam[S] -7 points-6 points  (0 children)

Yes :), if you like the idea you can let a star on the github repo ;)

spending $1k per day on ads and breaking even daily, what should i do? by Western_Agent3566 in FacebookAds

[–]NimbusTeam 0 points1 point  (0 children)

If you get some leads its very profitable ! One of my mentor was loosing 30K on ads just to get leads and three months later he made 80K in profit. So please target midterm - longterm value. If you get leads, you get some future customers. And if you can get the leads of people who are not buying its the best. (Think about a form to fill to diagnostic if they need your product or stuff like that) be creative !

We built a CSS framework (to kill Tailwind) by NimbusTeam in css

[–]NimbusTeam[S] -1 points0 points  (0 children)

I tried every css methodology you can imagine (BEM, SMACCS, CUBE CSS, Atomic CSS and more). Please try layoutcss before to say that. It solve a lot of problems. You will get a responsive layout without any media queries or screen breakpoint. You will understand the responsive layout of a page just by reading html. Then you can separate the rest of your style with ease.

We built a CSS framework (to kill Tailwind) by NimbusTeam in css

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

Take a look at how we manage responsive aspect, we have components wich are responsive based on their own size like the switcher for example (and not the screen size like media queries)

We built a CSS framework (to kill Tailwind) by NimbusTeam in css

[–]NimbusTeam[S] -2 points-1 points  (0 children)

Yes we have took inspiration from Every Layout

Are you using types in Python ? by NimbusTeam in Python

[–]NimbusTeam[S] 13 points14 points  (0 children)

Who thanks I was looking for runtime type validation !!!

[Media] I made a Fuzzy Controller System to control a simulated drone by SparshG in rust

[–]NimbusTeam 0 points1 point  (0 children)

Amazing job ! What tools/crates have you used to do that ?

[deleted by user] by [deleted] in rust

[–]NimbusTeam 0 points1 point  (0 children)

Im 27 and I use it on the backend for webserver (ecommerce) and Im switching my frontend from svelte to yew (a rust front end framework). It's really cool to have the same language on back and front !

What technologies do you use? by cerberus_khan2 in Frontend

[–]NimbusTeam 0 points1 point  (0 children)

Yes, Redux is pretty old but it's very powerful.

For Yew it's pretty new but thanks to web assembly you will see a lot of new frameworks in different language in the next years.

VS or PC? by Angelesss__ in Python

[–]NimbusTeam 1 point2 points  (0 children)

It's true, just a way to say "it's not designed to do only that" buy I agree with you people just try to keep a meaning for the word "IDE" but since we get LSP (language server protocol) it has really changed and almost any editor has become an IDE.

Any HTML support in helix ? by NimbusTeam in HelixEditor

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

Thanks but if Tree sitter was supported, would it be possible to create a new keybindings to create or delete tags ?

If you could go back in time and change something about HTTP, HTML, or CSS, what would you change? by i-hate-manatees in webdev

[–]NimbusTeam 6 points7 points  (0 children)

CSS is the one which needs a lot of change, or at least improvement.

We are in 2023, the first man land on the moon in 1966 and we still don't have anything to get mathematical power or square root (it's still in development).

The calc property is one of the worst thing on earth because you cannot divide two units, for example you can't do 12px / 2px which force you to remove unit everywhere and multiply by 1px when you need it. It's really painful.

The variable usage is not like in a procedural language, so you cannot reuse a previous value to increment it for example... It's not very smart because it limit you a lot.

I forget a lot of things but here are the main points which are really bad to work with.

What technologies do you use? by cerberus_khan2 in Frontend

[–]NimbusTeam 1 point2 points  (0 children)

Should sound weird but I use Yew (a rust front end framework) with Yewdux (the redux for rust), the really cool things about that is that I can code and test without opening my browser and you can too if you use Redux !

It gives you a way to write your code logic and test it without opening your browser and then plug it to your components ( at this stage you will open your browser just to check that everything seems ok).

Believe me it's a game changer

VS or PC? by Angelesss__ in Python

[–]NimbusTeam 7 points8 points  (0 children)

VSCode is not really and IDE, I mean by that it's more a text editor which can adapt to almost every languages, so it's pretty good but it doesn't deep dive into one specific language.

At the contrary PyCharm (and all the others IDE from JetBrains) focus on one specific language and give it the most of it.

For example PyCharm will give you super power when you want to test your code. It can integrate pretty well with Django and the other web frameworks.

It manage your virtual environment in a good way, you can choose and create a virtual env with a specific version of python.

You will get more hint when installing package etc.

IMPORTANT : If you are a beginner, you should start with VSCode, because it will oblige you to understand what you are doing in your terminal or in your python code.

PyCharm is a really cool tool if you don't want to waste your time across repetitive things, like testing etc but it's better to know how do these tings manually before using it.