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
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
Swiper

The free and most modern mobile touch slider with hardware accelerated transitions and amazing native behavior.

It is intended to be used in mobile websites, mobile web apps, and mobile native/hybrid apps.

[ Website ] : http://idangero.us/swiper


#JavaScript #Library
@ProgrammingTip
Sorry PHP Developers ... 😂

#Fun
@ProgrammingTip
This media is not supported in your browser
VIEW IN TELEGRAM
Codota : AI Pair Programmer 🤖

Codota understands the world's code and provides you with the right suggestion at the right time.

Supports : Java ♨️

www.codota.com

#Java #Tools
@ProgrammingTip
TinyMCE in ASP.NET MVC 🔥

TinyMCE is a web-based HTML WYSIWYG editor control. 📝

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

#Aspnet #TinyMCE #WYSIWYG
@ProgrammingTip
10 things you'll find shocking about asynchronous operations 🤣

#Fun
@ProgrammingTip
CONST vs LET vs VAR ⚡️

This article will look to clear on why those classic var declarations can be confusing and will also introduce block-level bindings aka const and let.

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

#JavaScript #Variable
@ProgrammingTip
Rider ⚡️

Rider is a new Cross-Platform .NET IDE by JetBrains.

Develop .NET, ASP.NET, .NET Core, Xamarin or Unity applications On Windows, Mac, Linux.

https://t.me/pgimg/5

[ Website ] : https://www.jetbrains.com/rider/


#Jetbrains #IDE #dotnet
@ProgrammingTip
Rubber Duck Debugging 🐤

In software engineering, rubber duck debugging or rubber ducking is a method of debugging code. 🐞

The name is a reference to a story in the book The Pragmatic Programmer in which a programmer would carry around a rubber duck and debug their code by forcing themselves to explain it, line-by-line, to the duck. 🗣

Many other terms exist for this technique, often involving different inanimate objects.

Many programmers have had the experience of explaining a programming problem to someone else, possibly even to someone who knows nothing about programming, and then hitting upon the solution in the process of explaining the problem. 👥

In describing what the code is supposed to do and observing what it actually does, any incongruity between these two becomes apparent. ↔️

More generally, teaching a subject forces its evaluation from different perspectives and can provide a deeper understanding. 👨🏻‍🏫

By using an inanimate object, the programmer can try to accomplish this without having to interrupt anyone else. 🙅🏻‍♂️


#Debugging #Tips
@ProgrammingTip
Lambda in Java 8 🔥

Lambda expressions are introduced in Java 8 and are touted to be the biggest feature of Java 8. 8️⃣

Lambda expression facilitates functional programming, and simplifies the development a lot. 🤷🏻‍♂️


#java #lambda
@ProgrammingTip
https://t.me/pgimg/6
The art of asking "coding" questions 🎨

… is not working❗️🤦🏻‍♂️

Examples :
“npm install is not working”
“interpolation is not working”


“It’s not working” is not helpful ❗️

It doesn’t tell others about the problem you’re facing.

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


#Tips #QA
@ProgrammingTip
Extension Method

Home of 781 extension methods for C#, VB, F#, Swift, Kotlin and Javascript 💎

[ Website ] : http://www.extensionmethod.net/

#ExtensionMethod
@ProgrammingTip
What is currentColor in CSS

currentColor — As name says , it pick the current color reference in an class and when you assign currentColor as one of the value of the property it will show the refer color.

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


#CSS #Tips
@ProgrammingTip
Sorry PHP Developers ( again ) 😂

#Fun
@ProgrammingTip
Entity Framework Core Generic Repository 🦋

The generic repository pattern has its pros and cons.

You are the one to decide if it fits for your project.

You can always use it only for parts of your application, you don’t have to go all in with generic repository pattern❗️

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

https://t.me/pgimg/7

#Repository #AspMvc #EF #Core
@ProgrammingTip
💎 <%= EJS %> 💎

"E" is for "effective." EJS is a simple Templating Language that lets you generate HTML markup with plain JavaScript. 🔥

No religiousness about how to organize things. No reinvention of iteration and control-flow. It's just plain JavaScript. 🤷🏻‍♂️

[ Website ] : http://ejs.co/

https://t.me/pgimg/8

#ejs #templating #js #node #express
@ProgrammingTip
GenFu 🤺

GenFu is a library you can use to generate realistic test data.

It is composed of several property fillers that can populate commonly named properties through reflection using an internal database of values or randomly created data.

You can override any of the fillers, give GenFu hints on how to fill them. 🛠

[ Website ] : http://genfu.io/

https://t.me/pgimg/9

#Dotnet #Core #UnitTest
@ProgrammingTip
What is PushJs ?

Push is the fastest way to get up and running with Javascript desktop notifications. 🔥

A fairly new addition to the official specification, the Notification API allows modern browsers such as Chrome, Safari, Firefox, and IE 9+ to push notifications to a user’s desktop. 👌🏻

Push acts as a cross-browser solution to this API, falling back to use older implementations if the user’s browser does not support the new API. 🌀

Installing
You can quickly install Push via npm:
$ npm install push.js --save


Or, if you want something a little more lightweight, you can give Bower a try:
$ bower install push.js --save


https://t.me/pgimg/10
[ Website ] : https://pushjs.org/


#js #push #notification
@ProgrammingTip
Authentication in ASP.​NET Core for your Web API and Angular2+ using JWT 🔑

Authentication in a single page application is a bit more special, if you just know the traditional ASP.NET way.

To imagine that the app is a completely independent app like a mobile app helps.

Token based authentication is the best solution for this kind of apps.

https://t.me/pgimg/11

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

#AspMvc #WebApi #Authentication #JWT
@ProgrammingTip
🌈 WebGradients

WebGradients is a free collection of 180 linear gradients that you can use as content backdrops in any part of your website. 🖥

Easy copy CSS3 Crossbrowser code and use it in a moment! They Have also prepared a .PNG version of each gradient. As a bonus, there are packs for Sketch & Photoshop. 🔥

https://t.me/pgimg/12
[ Website ] : https://webgradients.com/


#css #color #gradient
@ProgrammingTip