[-] [email protected] 20 points 2 weeks ago

Entirely depends on the project you want to build

52
submitted 1 month ago by [email protected] to c/[email protected]
9
submitted 1 month ago* (last edited 1 month ago) by [email protected] to c/[email protected]

The presenter compares some of the functionality to Leap.nvim

28
submitted 1 month ago by [email protected] to c/[email protected]
50
submitted 1 month ago by [email protected] to c/[email protected]

Trey Hunner writes:

This article is primarily meant to act as a Python time complexity cheat sheet for those who already understand what time complexity is and how the time complexity of an operation might affect your code. For a more thorough explanation of time complexity see Ned Batchelder's article/talk on this subject.

Read Python Big O: the time complexities of different data structures in Python

-5
submitted 2 months ago by [email protected] to c/[email protected]

Isaac Harris-Holt writes:

Modern software engineering can be a bit of a nightmare. You've got all these different third-party services to keep track of, and often many first-party microservices too! As it turns out, things can be made more simple using Gleam. Let me show you how.

17
submitted 2 months ago by [email protected] to c/[email protected]

In the command-line window the command line can be edited just like editing text in any window. It is a special kind of window, because you cannot leave it in a normal way.

There are two ways to open the command-line window:

  1. From Command-line mode, use the key specified with the 'cedit' option (default CTRL-F).

  2. From Normal mode, use the "q:", "q/" or "q?" command.

  • This starts editing an Ex command-line ("q:") or search string ("q/" or "q?"). Note that this is not possible while recording is in progress (the "q" stops recording then).

When the window opens it is filled with the command-line history. The last line contains the command as typed so far. The left column will show a character that indicates the type of command-line being edited

3
submitted 2 months ago by [email protected] to c/[email protected]
7
submitted 2 months ago* (last edited 2 months ago) by [email protected] to c/[email protected]

I'm sharing this Discord Message from someone that was doing their best to fill in their gaps in understanding Odin after reading the Overview documentation on odin-lang.org.

This was somewhat confusing, I could change the package foo at the top of the file and it makes no difference and everything works.

From reading this Server, I learned a lot, like this:

  • 1 - The package is only linked to the directory name (folder) and nothing else, except;
  • 2 - The files in the package directory must all have the same package foo header with the same name, but it does not have to be the same as the package directory name, just unique (see below); and
  • 3 - No two packages can have the same directory/folder name (globaly unique); and
  • 4 - No two packages can have the same package foo header names (i.e., must be globally unique but not tied to any package (directory) name needed - but would be a good idea, I mean why not...);
  • 5 - You cannot have cyclical imports - ever;
  • 6 - The package foo header seems powerless for the most part as far as programmer use, but I read it is used by the ABI as a prefix for symbols in the final binary;
  • 7 - Sub-packages do not exist, so even nested directories are standalone packages and also do not infer dependence;
  • 8 - In Odin you should put as much in one package as possible and do not use packages for namespaces since it will not work (see using) and do not use packages to organize your files, see 9 for proper reason to use packages;
  • 9 - Use separate packages only as reusable (stand alone) libraries;
  • 10 - Organize files within a package directory by their filenames (ala Java) and not subdirectors for all the reasons above; which is what I will do using snake case for the file names.

If I blew it above let me know.

imho the Overview would do better to include a little more detail like some of the stuff above. When I searched this server I found a huge amount of the above and just cobbled it together from 6-7 posts. I think what was not clear from the overview was: 1, 5, 6, 7 (its there but not clear), 9. It is clear that many people are confused by this, but on the bright side searching the Discord was very useful.

gingerBill indicated this is a common source of confusion for newcomers to Odin:

package name has nothing to do with the thing you import.

This is probably one of the most confusing things about Odin's packages. The exist for stable ABI and consistent linking names.

Hopefully, I can create a minimum working example that can be illustrative for others and have a PR merged into the Overview documentation. Until then I just want something that can be found outside of Discord for other learners.

11
submitted 2 months ago by [email protected] to c/[email protected]

Niklas Gray writes:

I often find that when I work on the low level implementation of something I discover ideas that I can bring back and use to inform the high level design — to make it easier to work with, more performant, more orthogonal, etc. Thus, the flow goes back and forth from high-level to low-level, instead of just in one direction. If I’m stuck in some part of the high-level design, starting to work on the implementation is often the best way to get unstuck.

One such idea, which is really simple, but tends to lead to better and simpler code, is the idea of defaulting to zero. I.e. to always use 0 as the default or nil value. For example...

Read Defaulting to Zero

3
submitted 2 months ago by [email protected] to c/[email protected]

Bayman, Emine Ozgur PhD*; Dexter, Franklin MD, PhD, FASA†. Multicollinearity in Logistic Regression Models. Anesthesia & Analgesia 133(2):p 362-365, August 2021. | DOI: 10.1213/ANE.0000000000005593

10
submitted 2 months ago by [email protected] to c/[email protected]
5
submitted 2 months ago by [email protected] to c/[email protected]
[-] [email protected] 18 points 2 months ago

Python is in essence the interface for AI tools that are optimized with languages that are easier to get high performance results with.

[-] [email protected] 27 points 2 months ago

I try to be positive here on programming.dev but someone gave you an incredibly thoughtful reply and you returned the favor with absolute disrespect. I think the only positive outcome here would be for me to simply block you and encourage others to do the same.

[-] [email protected] 26 points 3 months ago

I actually like this a lot. Why not make computer things easy for people using them? In environments where people send forms as non-editable .pdf files, this is great!

[-] [email protected] 27 points 6 months ago

LLMs amplify biases by design, so this tracks.

[-] [email protected] 18 points 6 months ago

Or it leads the way in producing the most useless, misleading bullshit more efficiently. We'll see.

[-] [email protected] 17 points 6 months ago

Copyright was due for an overhaul globally for decades. Now the system is on the verge of breaking down.

[-] [email protected] 20 points 6 months ago

Check out Linux Upskill Challenge there's a community on programming.dev [relative link]

It's a bit askew from what you're asking about but very related and a nice onramp to certification options that have some value in the job market.

As a more direct answer, a bit more of a formal approach to learning networking can be persued by following the networking recommendations at Teach Yourself CS

[-] [email protected] 32 points 10 months ago

I also did not create this.

[-] [email protected] 27 points 11 months ago

I’m just passing along the message. Communicate directly with the person responsible on Mastodon.

[-] [email protected] 21 points 11 months ago

I’m just passing along the message. Communicate directly with the person responsible on Mastodon.

[-] [email protected] 24 points 11 months ago

I'm just passing along the message. Communicate directly with the person responsible on Mastodon.

view more: ‹ prev next ›

ericjmorey

joined 1 year ago
MODERATOR OF