Tech Rumors
3 subscribers
235K photos
239K links
Download Telegram
cointelegraph.com

Crypto community reacts to mainstream media coverage of FTX’s implosion: criticism, misogyny and more
The crypto community has criticized Forbes magazine for dubbing Caroline Ellison “Queen Caroline” and “a new darling of the alt-right.”


dev.to

Code Smell 180 - BitWise Optimizations
Bitwise operators are faster. Avoid these micro-optimizations

TL;DR: Don't use bitwise operators unless your business model is bitwise logic.



Problems

Readability
Clevereness
Premature Optimization
Maintainability
Bijection Violation



Solutions

Improve readability



Context

Some clever programmers solve problems we don't have.

We should optimize code based on evidence and use the scientific method.

We should benchmark only if necessary and improve code only if really necessary and bear the cost of changeability and maintainability.



Sample Code



Wrong

const nowInSeconds = ~~(Date.now() / 1000)



Right

const nowInSeconds = Math.floor(Date.now() / 1000)



Detection

[X] Semi-Automatic

We can tell our linters to warn us and manually check if it is worth the change.



Exceptions

Real-time and mission-critical software.



Tags

Premature Optimization



Conclusion

If we find this code in a pull request or code review, we need to understand the reasons. If they are not justified, we should do a rollback and change it to a normal logic.



Relations








Code Smell 20 - Premature Optimization
Maxi Contieri ・ Nov 8 '20 ・ 2 min read

#oop
#developing
#coding
#codesmell











Code Smell 165 - Empty Exception Blocks
Maxi Contieri ・ Sep 24 ・ 2 min read

#webdev
#beginners
#programming
#python











Code Smell 06 - Too Clever Programmer
Maxi Contieri ・ Oct 25 '20 ・ 2 min read

#codenewbie
#tutorial
#beginners






More Info

Tilde Operator ~~

Javascript BitWise Operators



Disclaimer

Code Smells are just my opinion.



Credits

Photo by Frédéric Barriol on Unsplash

Original Article Here.

Watch the little things; a small leak will sink a great ship.

Benjamin Franklin








Software Engineering Great Quotes
Maxi Contieri ・ Dec 28 '20 ・ 13 min read

#codenewbie
#programming
#quotes
#software




This article is part of the CodeSmell Series.








How to Find the Stinky parts of your Code
Maxi Contieri ・ May 21 '21 ・ 8 min read

#codenewbie
#tutorial
#codequality
#beginners
#webdev #javascript #beginners #programming


theverge.com

Wickr’s free encrypted messaging app is shutting down next year
Illustration by Alex Castro / The Verge


Wickr Me, the free encrypted messaging app owned by Amazon Web Services, is shutting down on December 31st, 2023. In a post on its website, Wickr says the app will stop accepting new user registrations on December 31st, 2022 before going away completely next year.
dev.to

1. Building universal JS/TS plugins with unplugin
I started building my open source projects for the community some time ago already. It always gave me a lot of joy when I noticed that the amount of GitHub Stars was growing each day. First, I was building project with Nest.js, next with Nuxt.js and only recently, I have found that developing tools with Vite is even better because you can reach even bigger audience. And just few days, when I started working on my new tool contentine (that I will publish quite soon btw) I found out the project ca…
#javascript #tutorial #programming #webdev

2. NgTemplateOutlet Typed Checking (Part 2)(Inline)
In my previous article, we saw how to strictly type-check the NgTemplateOutlet when it is used on a child component. In this article, we will see how to do this when the TemplateRef is located inside the same template as the NgTemplateOutletDirective

We define the following template where our TemplateOutlet directive is embedded inside the #personRef template.

 

*ngTemplateOutlet="
personRef;
context: { $implicit: person.name, age: person.age }
">

#personRef let-name let-age="age">
{{ …
#angular #typescript

3. Design patterns in Umbraco | part 1
If you've had an education in computer science or programming, then you'll likely have seen design patterns before. In practice however, it may be more difficult to recognize where design patterns are appropriate. In this series of posts, I'd like to put several design patterns in the spotlight and give some practical examples on how you can use them in your Umbraco websites.

Recap

Design patterns, also known as: programming patterns, are "common solutions to common problems". The aim of desi…
#umbraco #webdev #codequality #beginners
dev.to

1. Naming Things in Program
There are only two hard things in Computer Science: cache invalidation and naming things.

-- Phil Karlton

Whether Phil said this quote or not. In my opinion, I totally agree with the naming of things, especially since English ain't my mother language.

Good naming would let your objects say: "Say my name", and speak proudly like Mr. White in Breaking Bad. So how to name things? There are some concepts that come below.

1. Don't abbreviate names

There is a classic example, you shouldn't name…
#programming #computerscience #cleancode #codequality

2. 40 Essential Linux Commands That Every Developer Should Know
Linux is a family of open-source Unix operating systems based on the Linux Kernel. They include Ubuntu, Fedora, Debian, openSUSE, and Red Hat.

When operating Linux, you need to use a shell — a program that gives you access to the operating system’s services. Most Linux distribution use a graphical user interface (GUI), making them beginner — friendly.

However, I recommend utilizing the command-line interface (CLI) since it’s quicker and offers more control.

So, in case you want to utilize Lin…

3. Complete Guide To Make You a Regex Guru
This is the second article in a series of regex articles. In the first article, you can read about common use cases for regex. This article explains everything you need to know about regex for daily usage, with both examples and cheat sheets. An upcoming article will later explain the most advanced use cases of regex, which unleashes the real power of regex, but which are rarely used.

In This Article

Explain Regex Like I'm Five
What is the Syntax for Regex?
Most Common Regex Flags
Start and E…
#webdev #productivity #regex #programming
dev.to

1. Combining GPT and Wolfram Alpha
An interesting essay appeared on Wolfram|Alpha's blog today:
Wolfram|Alpha as the Way to Bring Computational Knowledge Superpowers to ChatGPT. In it, the author (Stephen Wolfram?) argues that ChatGPT and Wolfram|Alpha complement each other — the latter being particularly good at numerical, mathematical, and computational tasks where ChatGPT is weak.

So I decided to try this for myself! Free API keys are available for both GPT-3.5 and Wolfram|Alpha, making them accessible in environments like M…
#miniscript #minimicro #ai #gpt3

2. 6 Google Chrome extensions 🔥 that'll help you turn hours of work into minutes free 💯
Working with Chrome offers access to an immense repository of Chrome extensions and tools which make our daily tasks less of a chore.
The following are the top 6 Google Chrome extensions that will help you do your job.

Happy working

🎥

Bonus

Web developers tools 🛠️ you need to know💡👩‍💻

🎥

7 programming 👩‍💻 tools 🔧 you should be using in 2023🎏

🎥

5 websites will make you a smarter 🏆 developer👩‍💻

🎥

Connect with Me 😊

🔗 Links…
#codequality #webdev #programming #devops

3. Beginners’ Guide To Run A Linux Server Securely
Easy steps to Linux Server hardening for Linux newbies

Linux could be a fantastic choice for your next cloud server. Imagine you can benefit from an up-to-date and fully-loaded operating system on a 90s hardware configuration of 512 MB and 1-core CPU. Apart from technical benefits, it is the cheapest option to have; so you may have decided to run your services on it. Although connecting to a server just using a single line command, keeping it secure could be a bit tricky. I will go through what…
#linux #beginners #security
dev.to

1. Linear Regression in Python: From Data to Model
What is Linear Regression?

Linear regression is a statistical method used for modeling the relationship between a dependent variable (also known as the outcome or response variable) and one or more independent variables (also known as predictors or explanatory variables). The goal of linear regression is to find the best-fitting line through a set of data points, where the line is defined by an equation of the form y = mx + b, where y is the dependent variable, x is the independent variable, m …
#machinelearning #datascience #linearregression #100daysofdatascience

2. Unlock the Power of debugging: Utilizing Clear Code as a Tool for Documentation
👋 Hey to all,

In this blog post, we will explore how to effectively use code as a form of documentation in development.

Table Of Contents

Introduction
Reasons why code documentation are important in code
Approach to documentation code
Conclusion

As developers, we are not only responsible for writing efficient and optimized code, but we are also responsible for documenting that code. Code documentation, helps to make the code more readable and understandable for others, as well as for future…
#beginners #codequality #programming #productivity
dev.to

I Used to be a 💩 Coder 💻 Until I Discovered SOLID Principles 🌟
Discover the Secret to Leveling Up Your Coding Skills 🚀 with SOLID Principles! 🌟 Learn how these principles can make your code more maintainable, scalable and easier to understand from our personal experience.
#solidprinciples #codingskills #softwaredevelopment #codequality
dev.to

🚀 Check out useReducer!
Are you tired of using multiple useState hooks to manage your state in React? 🚀 Check out...
#react #codequality #frontend #javascript
dev.to

A Beginner's Guide to Testing: Unit, Smoke, Acceptance
Disclaimer The thoughts and opinions expressed in this article are solely those of the author...
#beginners #testing #tutorial #codequality
dev.to

Microsoft.CodeAnalysis.BannedApiAnalyzers
Typically a profession team of developers will have rules for coding along with code reviews to...
#csharp #dotnetcore #productivity #codequality
dev.to

Thank You For Your (Worthless) Comment!
I think one of the things that defines a "programming mindset" is the desire to improve processes...
#webdev #programming #dogma #codequality
dev.to

How to handle different application environments like Prod, Dev, Test, etc.?
Introduction There are times when we are in a dilemma as to how to properly use...
#programming #tutorial #codequality
dev.to

The Five Lines of Code Principle: Why Less is More in Programming
In this article, we’ll Learn a simple principle that can help you refactor your code more effectively...
#programming #refactoring #codequality #5loc
dev.to

Best Practices for all developers
Best practices in programming are recommended guidelines and techniques that help developers write...
#bestofdev #codequality #programming #cleancode
dev.to

5 Code Refactoring Tools to Boost Development Efficiency
Introduction Code refactoring is a crucial aspect of software development that involves...
#javascript #beginners #programming #codequality
dev.to

5 Code Refactoring Tools to Boost Development Efficiency
Introduction Code refactoring is a crucial aspect of software development that involves...
#javascript #beginners #programming #codequality
dev.to

Optimise your code with these 5 JavaScript best practices 🚀🔥
1. Naming variables and functions First, we have the naming convention for variables,...
#codequality #coding #javascript #tutorial