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

🇳🇱 Contact: @MoienTajik

🎯 Buy ads: https://telega.io/c/ProgrammingTip
Download Telegram
#Fun stackoverflow✌️🏻✊🏽
@ProgrammingTip
Programming Entity Framework- DbContext.pdf
7.8 MB
Programming Entity Framework : DbContext 📕

Author: Julia Lerman, Rowan Miller 🖊

Publisher: O'Reilly 📚

#Book #EF
@ProgrammingTip
Awesome Vue.js 🔰

A curated list of awesome Vue.js things 🕶

[ Website ] :
https://github.com/vuejs/awesome-vue


#JavaScript #Vue
@ProgrammingTip
No Need for Temporary Collections, Yield Might Help

Normally when we need to fetch the items from a collection we might create a Temporary List to hold the retrieved items and return. 🌀

Following is the C# code using the temporary list :

public List<int> GetValuesGreaterThan100 
(List<int> masterCollection)
{
List<int> tempResult = new List<int>();
foreach (var value in masterCollection)
{
if (value > 100)
tempResult.Add(value);
}
return tempResult;
}




To avoid the usage of this temporary collection you could choose to use the yield. 🔥

It will yield the result as and when the result set is enumerated.

Below is the code using the yield keyword :

public IEnumerable<int> GetValuesGreaterThan100(List<int> masterCollection)
{
foreach (var value in masterCollection)
{
if (value > 100)
yield return value;
}
}


#CSharp #Collections
@ProgrammingTip
6 Simple Tips on How to Start Writing Clean Code 👾

1️⃣ Make code readable for people.

2️⃣ Use meaningful names for variables, functions and methods.

3️⃣ Let every function or method perform only one task.

4️⃣ Use comments for clarification ( if really needed )

5️⃣ Be consistent

6️⃣ Review your code regularly


#CleanCode
@ProgrammingTip
Debug JavaScript with Chrome DevTools 🐞

This tutorial shows you how to debug one specific issue, but the general workflow you learn is helpful for debugging all types of JavaScript bugs.

[ Website ] : http://bit.do/chromedev


#JavaScript #Debug
@ProgrammingTip
Diffrences Between Abstract & Interface💡


#Abstraction #Interface
@ProgrammingTip
MultiScroll.js 🔃

A simple plugin to create multi scrolling websites with two vertical scrolling panels.

[ Website ] : https://alvarotrigo.com/multiScroll


#JavaScript #Library
@ProgrammingTip
Dagger 2

Dagger 2 is a dependency injection (DI) framework. It's based on the javax.inject annotations standard.

[GitHub] : http://bit.ly/2gY3BND


#Dagger #Java #Android
@ProgrammingTip
Selectize.js 💎

Selectize is the hybrid of a textbox and <select> box.
It's jQuery-based and it's useful for tagging, contact lists, country selectors, and so on.

[ Website ] : http://selectize.github.io/selectize.js/


#JavaScript #Library
@ProgrammingTip
Waypoints.js ⚡️

Waypoints is the easiest way to trigger a function when you scroll to an element.

[ Website ] : http://imakewebthings.com/waypoints/


#JavaScript #Library
@ProgrammingTip
Happy Programmers Day 🎉 🤓

@ProgrammingTip
Select2 🔥

The jQuery replacement for select boxes.

Select2 gives you a customizable select box with support for searching, tagging, remote data sets, infinite scrolling, and many other highly used options.

[ Website ] : https://select2.org/getting-started/basic-usage


#JavaScript #Library
@ProgrammingTip
JUnit ☑️

JUnit is a Unit Testing framework for the Java programming language. ☕️

JUnit has been important in the development of test-driven development, and is one of a family of unit testing frameworks which is collectively known as xUnit that originated with SUnit.

https://ibb.co/f0EFR5

[Website] : http://junit.org/junit5/


#java #junit
@ProgrammingTip
6 Essential VSCode Extensions for Angular Developers 💎

TypeScript Hero
Angular Language Service
Bracket Pair Colorizer
Move TS
Material Icon Theme
Angular TypeScript Snippets

http://bit.do/vsico

[ Website ] : http://bit.do/vsxt

[ Src ] : @IranAspMvc

#Angular #VSCode #Extension
@ProgrammingTip
Express

A minimal and flexible Node.js web application framework that provides a robust set of features for web and mobile applications.

https://expressjs.com

#Nodejs
@ProgrammingTip
Access Modifiers 🤷🏻‍♂️🚫

Public 🌎

Using Public, an event or a variable can be accessed from outside of the class, where it belongs.

And also from the outside of the assembly.


Private 🔒

It restricts the use of methods and variables only within the class itself.

It can't be used from outside of the class.

As you declare a private constructor of a class, that class can't be accessed from outside that class, you can't create an object of that class.


Protected

This allows variables and methods to access from that class and the sub class of the class.

That means that methods can be accessed within that class and from the classes, which actually inherit that class.


https://t.me/pgimg/4

#Access_Modifiers
@ProgrammingTip
You may be wondering why the Entity Framework team chose to call the method Remove rather than Delete, and for that matter, why they choose Add instead of Insert. 🤷🏿‍♂️

The names were chosen for consistency with other collections and sets in the .NET Framework.

Other collections all use the Add/Remove pair of methods to bring elements into and out of the collection.


#EF #Collections
@ProgrammingTip