Programming Tips πŸ’‘
54.5K subscribers
65 photos
8 videos
30 files
338 links
Programming:
Tips πŸ’‘
Articles πŸ“•
Resources πŸ‘Ύ
Design Patterns πŸ’Ž
Software Principles βœ…

πŸ‡³πŸ‡± Contact & Ads: @MoienTajik
Download Telegram
Do You Know Where Your TempData is ❓

TempData is a bucket where you can dump data that is only needed for the following request. πŸ“¦

That is, anything you put into TempData is discarded after the next request completes. ❎

This is useful for one-time messages, such as form validation errors❗️

If you need something more persistent, Session is likely what you’re looking for. πŸ“₯

By default, TempData is stored in the session.

πŸ”ΉπŸ”ΈπŸ”ΉπŸ”Έ

In this article you see how TempData works and how you can use another provider instead of Session to store the data. πŸŒ€

https://t.me/pgimg/20

[ Article ] : http://bit.do/tmpdt

γ€°γ€°γ€°γ€°γ€°γ€°
#AspMvc #TempData #Deep
@ProgrammingTip
Programming Tips πŸ’‘
Photo
Design Patterns - Explained Simply.pdf
1.2 MB
Design Patterns - Explained Simply πŸ’Ž
Author : Alexander Shvets πŸ–Š
γ€°γ€°γ€°γ€°γ€°γ€°
#Book #DesignPatterns
@ProgrammingTip
SOLID Principles : Simply Explained ✨

β€’ Single Responsibility
β€’ Open / Closed
β€’ Liskov Subsitution
β€’ Interface Segregation
β€’ Dependency Inversion

γ€°γ€°γ€°γ€°γ€°γ€°
#OOP #Principle #Solid
@ProgrammingTip
Learn JavaScript: Logical AND / OR / NOT πŸ‘Ύ

JavaScript has 3 logical operators.

They can be used with boolean or non-boolean values.

In this article we’ll be exploring logical operators when they are used with boolean values.

β€’ And &&
β€’ Or ||
β€’ Not !

https://t.me/pgimg/21

[ Article ] : http://bit.do/jsopr
γ€°γ€°γ€°γ€°γ€°γ€°
#JavaScript #Operators
@ProgrammingTip
Cdnjs πŸ“š

Cdnjs host all popular web related libraries like JavaScript libraries, CSS Frameworks, ... to speed up your website. ✨

Supports :
β€’ HTTP 2.0
β€’ HTTP
β€’ HTTPS
β€’ SPDY

πŸ”ΉπŸ”ΈπŸ”ΉπŸ”Έ

Currently, Cdnjs is one of the most famous free and public web front-end CDN services which is used by ~2,380,000 websites.

[ Website ] : https://cdnjs.com

γ€°γ€°γ€°γ€°γ€°γ€°γ€°
#JavaScript #Tools #Web
@ProgrammingTip
Gitignore ✨

Create useful .gitignore files for your project. πŸ€™πŸ»

Tell gitignore.io about your operating system, development environment and programming language of choice, and it’ll generate a .gitignore file. πŸ‘Ύ

https://t.me/pgimg/22

[ Website ] : gitignore.io
γ€°γ€°γ€°γ€°γ€°γ€°
#Git #Gitignore
@ProgrammingTip
MVC TempData – Peek vs Keep πŸ€™πŸ»

Most of the MVC developer knows that TempData is used to preserve data for a single request but reality is that TempData can pass data for next request also. πŸ€·πŸ»β€β™‚οΈ

In this article we will discuss how to persist data with TempData using Keep and Peek method.

As well we will also see the difference between Keep and Peek method. πŸ€”

https://t.me/pgimg/23

[ Article ] : http://bit.do/tmpkp

γ€°γ€°γ€°γ€°γ€°γ€°
#AspMvc #TempData
@ProgrammingTip
What is Unit Testing & Why You Need to Lean It ⁉️

Unit testing is the practice of writing code to test your code and then run those tests in an automated fashion. βœ…

πŸ”ΉπŸ”ΈπŸ”ΉπŸ”Έ

Here is an example. πŸ‘¨πŸ»β€πŸ’»

Imagine you have this function somewhere in your code.
It’s a basic calculate function that takes an input and depending on some conditions, it returns different values.

public float CalculateTax(int input) 
{
if (x) return ...;
if (y) return ...;
return ...;
}


If you want to test this function manually :

1️⃣ You have to run your application
2️⃣ Perhaps you have to login
3️⃣ Maybe do a few clicks here
4️⃣ There to get to a page where this function is used.
5️⃣ You have to fill out a form
6️⃣ Submit it
7️⃣ Verify if this function returned the right result.

And then you have to repeat all these steps, each time using different values in your form. πŸ€¦πŸ»β€β™‚οΈ

πŸ”ΈπŸ”ΉπŸ”ΈπŸ”Ή

Manual testing is expensive πŸ’Έ

As you can see, this is very time-consuming. βŒ›οΈ

This workflow to test this function may take several minutes every time❗️

Now to make matters worse, this is not the only function in your application. 🌍

In a real application, you have tens or hundreds of functions like this ❗️

As your application grows in size and complexity, the time required to manually test all the different bits and pieces increases exponentially. ⏱

So, that’s why we use Automated Testing. ♻️

πŸ”ΊπŸ”ΉπŸ”ΊπŸ”Ή

https://t.me/pgimg/24

[ Full Article ] : http://bit.do/utdd

γ€°γ€°γ€°γ€°γ€°γ€°
#CleanCode #UnitTest #TDD
@ProgrammingTip
Why you should join .NET Core and ASP.NET Core train β“πŸš€

β€’ .NET Core is a cross-platform version of .NET, that supports almost all that .NET supported. πŸ–₯

πŸ”ΈπŸ”ΉπŸ”Έ

β€’ .NET Core and ASP.NET Core are FREE and Open Source but also they are supported by Microsoft. πŸ’Έ

πŸ”ΉπŸ”ΈπŸ”Ή

β€’ ASP.NET Core is cross-platform web framework built on top of .NET Core.

It is built from scratch, however, a lot of old concepts and patterns are still the same. βœ…

πŸ”ΈπŸ”ΉπŸ”Έ

β€’ Both, ASP.NET Core and .NET Core are faster and easier to work with, than their predecessors. πŸ’¨

πŸ”ΉπŸ”ΈπŸ”Ή

β€’ Node. is fast – over 400 000 requests per second.

β€’ ASP.NET Core is blazing fast❗️– ASP.NET Core (on Linux ! ) itself can handle over 2 Million requests per second.

β€’ ASP.NET Core MVC can handle over 1 million requests per second ❕

πŸ”ΈπŸ”ΉπŸ”Έ

https://t.me/pgimg/25

[ Full Article ] : http://bit.do/aspcore

γ€°γ€°γ€°γ€°γ€°γ€°
#AspMvc #DotNet #Core
@ProgrammingTip
πŸ€– Robo 3T : GUI MongoDB Manager πŸ€–

Robo 3T (formerly Robomongo) is the free lightweight GUI for MongoDB enthusiasts.

3T will continue development of Robo 3T in parallel with its own MongoDB GUI and the good news is that it will be making Robo 3T free for all users from now on. πŸ’°

This is an exciting new step for Robo 3T and its community, which will benefit users and the wider MongoDB ecosystem. πŸ‘¨β€πŸ’»


Native and cross-platform MongoDB manager
Whatever platform you use today - Robo 3T is available for you. Distributed as a native application, fast and snappy Robo 3T uses very little of your machine resources. ♻️

β€’ Windows users : 52%
β€’ Mac OS X users : 32%
β€’ Linux users : 16%

[Website] : http://robomongo.org/

γ€°γ€°γ€°γ€°γ€°γ€°
#mongo #robomongo #robo3t
@ProgrammingTip
https://t.me/pgimg/26
Awesome .NET Core πŸ•Ά

A collection of awesome .NET Core frameworks, libraries, tools, resources and software. πŸ’Ž

Contents ⚑️ :
β€’ General
β€’ Framework, Libraries & Tools
β€’ Starter Kits
β€’ Sample Projects
β€’ Articles
β€’ Books
β€’ Videos
β€’ Podcasts
β€’ Community

https://t.me/pgimg/27

[ GitHub ] : http://bit.do/aspres
γ€°γ€°γ€°γ€°γ€°γ€°
#AspMvc #Core #Resource
@ProgrammingTip
Angular 4 in 20 minutes πŸ…°οΈ

So, do you want to learn the fundamentals of Angular 4 in a quick and easy way❓

You don’t need familiarity with any previous versions of Angular. πŸ™…πŸ»β€β™‚οΈ

In this tutorial, We're going to take you from the ground up and show you Angular 4 in action. ✨

You only need a basic familiarity with HTML, CSS, and JavaScript. πŸ“

https://t.me/pgimg/28

[ Tutorial ] : http://bit.do/angtut

γ€°γ€°γ€°γ€°γ€°γ€°
#Angular #SPA
@ProgrammingTip
Moment.js πŸ“…

Parse, validate, manipulate, and display dates and times in JavaScript. πŸ‘ŒπŸ»

[ Website ] : https://momentjs.com/

#JavaScript #MomentJs
@ProgrammingTip
Programming Tips πŸ’‘
Photo
Head First Design Patterns.pdf
40.1 MB
Head First Design Patterns πŸ“•

Authors : Bert Bates, Kathy Sierra, Eric Freeman, Elisabeth Robson πŸ–Š

Publisher : O'Reilly πŸ’Ž

Level : Advanced πŸ”

γ€°γ€°γ€°γ€°γ€°γ€°
#Book #DesignPatterns
@ProgrammingTip
Sympli ✨

Design handoff, implementation,
and collaboration for web and mobile
product teams. ✏️

Sympli works with 😲 :
β€’ Photoshop
β€’ Sketch
β€’ Android Studio
β€’ XCode

https://t.me/pgimg/29

[ Website ] : https://sympli.io/

γ€°γ€°γ€°γ€°γ€°γ€°
#Tools #FrontEnd
@ProgrammingTip
Firefox Quantum: Developer Edition ✨

Firefox has been rebuilt from the ground up to be faster and more powerful than ever. πŸ’ͺ🏻

This includes a new CSS engine that has state-of-the-art innovations and is blazingly fast. πŸ’¨

DevTools πŸ’Ž :
β€’ Inspector
β€’ Console
β€’ Debugger
β€’ Network
β€’ Storage Panel
β€’ Responsive Design Mode
β€’ Visual Editing
β€’ Performance
β€’ Memory
β€’ Web Audio
β€’ ScratchPad
β€’ Style Editor

https://t.me/pgimg/30

[ Download ] : http://bit.do/fquan

γ€°γ€°γ€°γ€°γ€°γ€°
#FireFox #Quantum #Tools
@ProgrammingTip
Entity Framework Plus ⚑️

Extend and Overcome Entity Framework Limitations with Must-Have Features πŸ’Ž

100% Free and Open Source πŸ’Έ

Features πŸ”₯ :
β€’ Auditing
β€’ Batch Delete
β€’ Batch Update
β€’ LINQ Dynamic
β€’ Query Cache
β€’ Query Deferred
β€’ Query Filter
β€’ Query Future
β€’ Query IncludeFilter
β€’ Query IncludeOptimized

πŸ”ΉπŸ”ΈπŸ”ΉπŸ”Έ

Support βœ… :
β€’ EF Core
β€’ EF6
β€’ EF5

https://t.me/pgimg/31

[ Website ] : http://entityframework-plus.net/

γ€°γ€°γ€°γ€°γ€°γ€°
#EF #ZZZProjects
@ProgrammingTip