• 10 Posts
Joined 3Y ago
Cake day: Aug 19, 2019

This Lemmy instance is not "healthy"
Users: 380 (well for several months :check mark:)\ Posts: 312 (not good :cross mark:, should be > 3 per non-banned user)\ Comments: 317 (:white question mark:) There might be something wrong in users' interest in Lemmy :sad but relieved face:

On Email Center UK :flag: United Kingdom: (the link is now dead):


You can virtually “fire” a development member of Email Center:


What search URLs can I use? I tried https://lemmy.ml/search?q=abc but it didn’t work :(

Oui, mais l’instance que vous lancerez sera également de test.

Are Python 2 & 3 completely different languages?
Some people think Python 2.x and 3.x are incompatible, different languages. --- Here are some differences between 2.x and 3.x: > The print statement has been replaced with a [print()](https://docs.python.org/3/library/functions.html#print) function, with keyword arguments to replace most of the special syntax of the old print statement ([PEP 3105](https://www.python.org/dev/peps/pep-3105)). This means most Python 2.x programs are **definitively** incompatible with 3.x, just because of that. Python 2: ``` print "Hello world!" ``` Python 3: ``` print ("Hello world!") ``` --- > Some well-known APIs no longer return lists. `k = dict.keys(); k.sort()` no longer works, as well as `dict.iteritems()`, `dict.iterkeys()` and `dict.itervalues()`. > Python 3.0 uses the concepts of text and (binary) data instead of Unicode strings and 8-bit strings. All text is Unicode; however encoded Unicode is represented as binary data. The type used to hold text is [`str`](https://docs.python.org/3/library/stdtypes.html#str), the type used to hold data is [`bytes`](https://docs.python.org/3/library/stdtypes.html#bytes). > As a consequence of this change in philosophy, pretty much all code that uses Unicode, encodings or binary data *most likely has to change*. --- Sometimes, you can't mix Python 2 code with Python 3 code. Especially, don't try to use different libraries that work with different major Python versions; it is not likely to work. --- Although most companies are moving to 3.x, some libraries still continue to support Python 2. A few might *not support Python 3 at all*. --- Useful links: - https://learntocodewith.me/programming/python/python-2-vs-python-3/ - https://jaxenter.com/differences-python-2-3-148432.html - https://wiki.python.org/moin/Python2orPython3 - https://medium.com/datadriveninvestor/why-companies-are-moving-from-python-2-to-python-3-86d948e529c0 - etc... --- Now Python 3 has been released 11 years ago, and Python 2.7 is still supported (although [end of support is for January 1st, 2020](https://pythonclock.org/)). How should these be considered "different" languages?

Introduction to NodeGUI and React NodeGUI: a new alternative to Electron?
NodeGUI is an open-source library for building cross-platform native desktop applications with JavaScript and CSS like styling. NodeGui apps can run on Mac, Windows, and Linux from a single codebase. NodeGUI is powered by Qt 5 which makes it CPU and memory efficient as compared to other chromium based solutions like electron. ### Features: - Cross platform. Should work on major Linux flavours, Windows and macOS - Low CPU and memory footprint. Current CPU stays at 0% on idle and memory usage is under 20 MB for a "hello world" program. - Styling with CSS (includes actual cascading). Also has full support for Flexbox layout. - Complete Node.js API support (currently runs on Node v12.x - and is easily upgradable). Hence has access to all Node.js compatible `npm` modules. - Native widget event listener support. Supports all event available from Qt / Node.js. - ... and many more! ### Try it out ``` git clone https://github.com/nodegui/nodegui-starter cd nodegui-starter npm install npm run build npm start ``` ### Project information GitHub: https://github.com/nodegui/nodegui\ NPM registry: https://www.npmjs.com/package/@nodegui/nodegui\ License: [MIT](https://github.com/nodegui/nodegui/blob/master/LICENSE)\ Written in: C++, TypeScript and Python

JavaScript & Node.js testing best practices
Testing best practices for JavaScript and Node.js by Yoni Goldberg

Welcome to the JavaScript community!
If you are new here, welcome to the JavaScript community! This community is entirely dedicated to the JavaScript language. What is JavaScript? --- JavaScript (a dialect of ECMAScript) is a high-level, dynamic, multi-paradigm, object-oriented, prototype-based, weakly-typed, and interpreted language traditionally used for client-side scripting in web browsers. JavaScript can also be run outside of the browser with the use of a framework like Node.js, Nashorn, Wakanda, or Google Apps Script. Despite the name, it is unrelated to the Java programming language and shares only superficial similarities. What you can do --- - Ask questions about the JavaScript language - Ask questions about JavaScript code - Ask questions about the ECMAScript standard - Compare different ECMAScript versions - Share JavaScript code you made - Share JavaScript lessons - Post nearly *everything* about JavaScript, or which contains JS code What you can't do --- - Ask questions about usage of browser Developer Tools - Ask questions about code editor usage - Post content that is: rude, spam, aggressive, NSFW Do you have questions? --- Post them as comments to this thread!

This is an alpha version. If you don’t like the website’s style, fork the repo and modify it like you want!