Newbie Here! Can I have some feedback on my code?

2024-08-10 Thread khaledh-nim
I see you do a lot of looping and calling string functions to make some decisions and assign them to variables. I'd make those decisions once at the beginning and use them in an if/elif/else expression. A good way to go about this is to construct the decision tree first, then go back and popula

Newbie Here! Can I have some feedback on my code?

2024-08-10 Thread 3-2-1
If these test cases are representative of what the code would actual run on, then these suggestions are fine. If you can have arbitrarily long strings though, you should pull phrase.strip out into a variable, since it's linear time and you're running it twice on nonempty input and checking equal

Error: key not found: metaData

2024-08-10 Thread guildnavigator
This is probably a newbie issue, but what am I doing wrong here? nimble add awslambda --verbose Info: Nimble data file "/Users/mark/.nimble/nimbledata2.json" has been loaded. Reading official package list Downloading https://github.com/lambci/awslambda.nim using

Objects of size 32+ bytes get zero-mem'd twice upon construction

2024-08-10 Thread khaledh-nim
Consider the following, if the size of array `a` is 1, 2, or 3, the object is zero-mem'd once: type MyObj = object a: array[3, int] proc main() = var src = MyObj() Run generates: N_LIB_PRIVATE N_NIMCALL(void, main__mem_u24)(vo

nimja; compiled and statically typed template engine (like twig or jinja2)

2024-08-10 Thread mabon
good job!

nimja; compiled and statically typed template engine (like twig or jinja2)

2024-08-10 Thread enthus1ast
I've fixed a longstanding bug in [Nimja](https://github.com/enthus1ast/nimja), that messed up the paths of imported modules, when code that uses nimja template is imported into other Nim Modules. That basically prevented the use of [Nimja](https://github.com/enthus1ast/nimja) "components". This

Ultra Air Cooler Canada

2024-08-10 Thread ultraaircoolercanad
Ultra Air Cooler Canada The Ultra Air Cooler Canada is a contemporary personal cooling tool engineered to deliver instant and green cooling in any placing. Utilizing Insta-Frost technology, this compact cooler releases a burst of polar air via its revolutionary Frost Jets, making sure you in no

https://www.facebook.com/MANUP.Gummies.Australia.AU

2024-08-10 Thread manupinaustralia
Buy Now Official website:- MAIN BLOGS :-