Programming: C, Node.js, Python and Logo

-
Unit-testing static functions in C
An annoying thing about C code is that there are plenty of functions that cannot be unit-tested by some external framework - specifically anything declared as static. Any larger code-base will end up with hundreds of those functions, many of which are short and reasonably self-contained but complex enough to not trust them by looks only. But since they're static I can't access them from the outside (and "outside" is defined as "not in the same file" here).
The approach I've chosen in the past is to move the more hairy ones into separate files or at least declare them normally. That works but is annoying for some cases, especially those that really only get called once. In case you're wondering whether you have at least one such function in your source tree: yes, the bit that parses your commandline arguments is almost certainly complicated and not tested.
-
Node.js VS Python: Which is Better?
Both Node.js (majorly used as a backend framework ), and Python ( front-end and back-end programming language) are used extensively for programming of a web app. It is vital to select a suitable framework or programming language for web app development because it is the backbone of every web app.
Node.js and Python are extensively used for this purpose. When you talk about Node.js or python, you are actually comparing JavaScript with Python . This is because Node.js is actually a framework built on Google Chrome’s JavaScript.
Both of them are among the top programming languages according to the TOIBE index.
-
Episode #147: Mocking out AWS APIs
-
Python Testing 201 with pytest
For Python Frederick?s September presentation, I presented on Python testing. In the presentation, I explained more of the features of pytest that went beyond the basics that we explored in March.
-
Excellent Free Books to Learn Logo
The Logo Programming Language, a dialect of Lisp, was designed as a tool for learning. It features interactivity, modularity, extensibility, with flexibility of data types.
Logo offers a rich programming environment providing multimedia tools, robotics and network access. Full-featured Logo packages provide hundreds of commands for exploring all sorts of applications, from the simplest turtle graphics to artificial intelligence.
None of the books featured below are released under an open source license. There seems to be a dearth of open source programming books for Logo. But the books featured below are available to view without charge.
-

- Login or register to post comments
Printer-friendly version- 1968 reads
PDF version
More in Tux Machines
- Highlights
- Front Page
- Latest Headlines
- Archive
- Recent comments
- All-Time Popular Stories
- Hot Topics
- New Members
digiKam 7.7.0 is released
After three months of active maintenance and another bug triage, the digiKam team is proud to present version 7.7.0 of its open source digital photo manager. See below the list of most important features coming with this release.
|
Dilution and Misuse of the "Linux" Brand
|
Samsung, Red Hat to Work on Linux Drivers for Future Tech
The metaverse is expected to uproot system design as we know it, and Samsung is one of many hardware vendors re-imagining data center infrastructure in preparation for a parallel 3D world.
Samsung is working on new memory technologies that provide faster bandwidth inside hardware for data to travel between CPUs, storage and other computing resources. The company also announced it was partnering with Red Hat to ensure these technologies have Linux compatibility.
|
today's howtos
|








.svg_.png)
Content (where original) is available under CC-BY-SA, copyrighted by original author/s.

Recent comments
1 year 11 weeks ago
1 year 11 weeks ago
1 year 11 weeks ago
1 year 11 weeks ago
1 year 11 weeks ago
1 year 11 weeks ago
1 year 11 weeks ago
1 year 11 weeks ago
1 year 11 weeks ago
1 year 11 weeks ago