Programming Tips 💡 – Telegram
Programming Tips 💡
51.6K subscribers
67 photos
10 videos
30 files
355 links
Programming & AI:
Tips 💡
Articles 📕
Resources 👾
Design Patterns 💎
Software Principles

🇳🇱 Contact: @MoienTajik

🎯 Buy ads: https://telega.io/c/ProgrammingTip
Download Telegram
Online .NET Compiler ⚜️

Supports : C#, VB, F#, Console, ASP.NET MVC

We are a group of .NET developers who are sick and tired of starting Visual Studio,
creating a new project and running it, just to test simple code or try out samples from other developers.

https://dotnetfiddle.net/

#Links
@ProgrammingTip
Soft skill And Productivity

"Good programmers know what to write, but great ones know what to rewrite (and reuse)"

Eric S. Raymond 🗣

@ProgrammingTip
Desgin Pattern 📝

Don’t use design patterns like a hammer looking for a nail. 🔨

If you don’t have a clear reason you need it, don’t use it.

#CleanCode #DesignPattern
@ProgrammingTip
ASP.NET Web API 2 - Building a REST Service.pdf
5.3 MB
ASP.NET Web API 2 - Building a REST Service from Start to Finish 📕

Authors :
Jamie Kurtz
Brian Wortman

#Book #AspNet
@ProgrammingTip
Media is too big
VIEW IN TELEGRAM
آموزش الگو طراحی Repository و Unit Of Work بصورت Generic در #C

#DesignPatterns #OOP
@ProgrammingTip
Create some of your own tools 🛠

But of course, if you're going to use it in production, make sure it's not another wheel reinvention. ⚙️

#Tools
@ProgrammingTip
If you find yourself having to choose between “doing it right” and “doing it quick🤔,
Don't doubt, choose "doing it right" ❗️

#CleanCode
@ProgrammimgTip
Make Interfaces, Easy to Use Correctly and Hard to Use Incorrectly.

#Interfaces
@ProgrammingTip
97 Things Every Programmer Should Know.pdf
2 MB
O`Reilly
97 Things Every Programmer Should Know 📕

#Book
@ProgrammingTip
Write Code As If You Had to Support It for the Rest of Your Life. 👾

#CleanCode
@ProgrammingTip
Learn the most important libraries for your use cases. 📚

The more libraries you’re aware of, the less likely you are to try reinventing the wheel. ⚙️

#Libraries
@ProgrammingTip
#Fun Seeking Answer
Eval 👾

if you know about the dot notation, but are ignorant of the subnoscript notation, you might write:

eval("myValue = myObject." + myKey + ";"); 


instead of :

myvalue = myObject[myKey]; 


The eval form is much harder to read.
This form will be significantly slower because it needs to run the compiler just to execute a trivial assignment statement ❗️

#Tips #JavaScript
@ProgrammingTip
What is Unit Test

A unit test is a piece of a code (usually a method) that invokes another piece of code and checks the correctness of some assumptions afterward.

If the assumptions turn out to be wrong, the unit test has failed.

A unit is a method or function.

#UnitTest
@ProgrammingTip
Properties of a good unit test

A unit test should have the following properties :

1️⃣ It should be automated and repeatable.

2️⃣ It should be easy to implement.

3️⃣ It should be relevant tomorrow.

4️⃣ Anyone should be able to run it at the push of a button.

5️⃣ It should run quickly.

6️⃣ It should be consistent in its results.

7️⃣ It should have full control of the unit under test.

8️⃣ It should be fully isolated (runs independently of other tests).

9️⃣ When it fails, it should be easy to detect what was expected and determine how to pinpoint the problem.

#UnitTest #Tips
@ProgrammingTip
The Art of Unit Testing in C#.pdf
13.8 MB
The Art Of Unit Testing in C# 📘
Author : Roy Osherove 🖊

#Book #UnitTest
Eloquent_JavaScript.pdf
2.7 MB
Eloquent JavaScript 📕
Author : Marijn Haverbeke 🖊

#Book #Javanoscript
Why use isolation frameworks

An isolation framework is a set of programmable APIs that makes creating fake objects much simpler, faster, and shorter than hand-coding them. 💨

#UnitTest #Mock
@ProgrammingTip
The Safe Green Zone

Locate your integration and unit tests in separate places.

By doing that, you give the developers on your team a safe green test area that contains only unit tests, where they know that they can get the latest code version.

They can run all tests in that namespace or folder, and the tests should all be green.

If some tests in the safe green zone don’t pass ,
there’s a real problem, not a (false positive) configuration problem in the test.

#UnitTest
@ProgrammingTip