Is this a good idea?

2024-08-11 Thread Araq
It is a bad idea because you now have a new failure mode (`FieldTypeError`) everywhere that Nim usually does not have.

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

2024-08-11 Thread dwhall256
@stoking: We independently came to very similar solutions. @Hallicon, I just did this last week; so this solution passes the unit tests. I like naming the variables in a way that explains their logic; this eliminates the need for comments. The if-expression is the procedure's final expression, w

Is this a good idea?

2024-08-11 Thread seruum
Below is a way to access tuple and object fields by name. Something that would be convenient from time to time. There was some posts on it before which lead me to using fieldPairs. I tried applying generics to make it more "universal". Aside from the efficiency issue of iterating through the fie

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

2024-08-11 Thread stoking
With phrase.strip in a variable. import std/strutils func hey(phrase: string): string = let phrase = phrase.strip if phrase == "": "Fine. Be that way!" elif UppercaseLetters in phrase and LowercaseLetters notin phrase: if phrase.endsWith('?')

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

2024-08-11 Thread khaledh-nim
Thanks. I'm not sure there's a name for this style. It's just precomputing some variables to make a complex if expression readable. There's a downside to it though: if a precomputed variable is not used (e.g. due to an early branch being taken), then it's wasted. For example: all variables exce

Enabling compression on socket send/receive.

2024-08-11 Thread void09
What would be the most simple/elegant way to have (de)compression enabled on all data sent/received over a socket ? In go it appears that it's as simple as: .. code-block:: go > conn, err := net.Dial("tcp", "localhost:8080") > > `if err != nil ...` > > gzipWriter := gzip.NewWriter(conn) messag

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

2024-08-11 Thread Hobbyman
@khaledh-nim Thnx. Good tip. Looks very clean. Is there a name for that programming-style? I would call it a flag-based decision-tree.. @Hallicon By the way: Kind of funny responses. Maybe of a moody programmer with to much work on his plate...whoa lol!

Create a (or more) nim-management-repo (or something else)

2024-08-11 Thread Hobbyman
Thanks @zoom I will read your thread aswell (these can be interesting but also read-heavy subjects). I assume it is relevant. As we say in Dutch sometimes I am walking a little behind the facts. To decrease potential bossyness I would like to adjust the term "need" to "want", and assignment ma

Error: key not found: metaData

2024-08-11 Thread jmgomez
It looks like your metadata somehow got corrupted. You can get rid of your `.nimble` folder or try with local deps which will be the default behaviour soon. To do the latter just add a `-l` to your command: `nimble add awslambda -l`

Nexalyn-anmeldelser -[Nexalyn Mann100% lovlig] Pris, svindel, anmeldelser?

2024-08-11 Thread NexalynResul
Veeloslim De fleste kroppsbyggere og folk drømmer alltid om å få fullstendig kondisjon og muskler; det har alltid vært en kilde til glede for dem. Fysisk form betyr mye for ditt utseende og helse for de fleste helse- eller treningstrenere. Alle årsakene bak disse kampene er bare utseendet og uts

Nexalyn 남성 성기 증강제 리뷰: 성욕과 리비도를 향상시키세요?

2024-08-11 Thread nexalynupdatedprice
섹스는 우리 삶의 필수적인 부분입니다. 남자로서 침대에서 잘 해내지 못한다면 실패자이자 성적으로 병든 사람으로 간주될 것입니다. Nexalyn 따라서 전반적인 성적 및 정신적 건강을 개선하려면 천연 및 허브를 사용해야 합니다. Nexalyn은 남성을 위한 마법의 성기능 향상 보충제입니다. 침대에서 더 활기차게 일할 수 있도록 에너지 수준을 회복하는 데 도움이 되는 추출물이 들어 있습니다. Nexalyn 신체적, 정신적 건강을 개선하고 더 많은 체력과 지구력을 제공합니다. Nexalyn의 성기능 향상 과정: Nexalyn

Oh threadpool, my threadpool

2024-08-11 Thread Araq
Before that happens, I still like to explore how to combine Malebolgia with async or IO heavy loads.

Oh threadpool, my threadpool

2024-08-11 Thread mabon
Will Threadpool and Malebolgia merge?