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
โž• Add Any Numbers Without โ€œ+โ€ Operator In C โž•

Bitwise operators can be used to perform the addition (+) operation as mentioned in below example ๐Ÿ”†

int Add(int x, int y)
{
if (y == 0)
return x;
else
return Add( x ^ y, (x & y) << 1);
}


ใ€ฐใ€ฐใ€ฐใ€ฐใ€ฐใ€ฐใ€ฐใ€ฐใ€ฐใ€ฐใ€ฐใ€ฐใ€ฐใ€ฐใ€ฐใ€ฐ

#c #cpp #operator
@ProgrammingTip
Do casts if it's necessary โ—๏ธ

When you're casting an object, you are choosing to ask the compiler to trust you at compile time and to generate a check that will run at execution time to keep you honest. ๐Ÿ™‹๐Ÿปโ€โ™‚๏ธ

#Casting
@ProgrammingTip
THX ๐Ÿ’Ž

This WebGL banner is so captivating โ—๏ธ
I can't stop playing with it, it's incredible. ๐Ÿ˜

http://www.thx.com/

#WebGL #FreeTime
@ProgrammingTip
Code School Courses for Free ๐Ÿ’Ž

Just 1 day & 15 hours left. ๐Ÿ”ธ

https://www.codeschool.com/free-weekend

#Tutorial #Course
@ProgrammingTip
JavaScript Clean Code ๐Ÿ› 

Only comment things that have business logic complexity. ๐Ÿ’ก
Comments are an apology, not a requirement. Good code mostly documents itself.

Bad :
function hashIt(data) {
// The hash
let hash = 0;

// Length of string
const length = data.length;

// Loop through every character in data
for (let i = 0; i < length; i++) {
// Get character code.
const char = data.charCodeAt(i);
// Make the hash
hash = ((hash << 5) - hash) + char;
// Convert to 32-bit integer
hash &= hash;
}
}


Good :
function hashIt(data) {
let hash = 0;
const length = data.length;

for (let i = 0; i < length; i++) {
const char = data.charCodeAt(i);
hash = ((hash << 5) - hash) + char;

// Convert to 32-bit integer
hash &= hash;
}
}


โž–โž–โž–โž–โž–โž–
#JSTips #CleanCode
@ProgrammingTip
Road Map ๐Ÿ‘ฃ

Front-End Web Developers ๐Ÿ’Ž

#RoadMap #FrontEnd
@ProgrammingTip
Road Map ๐Ÿ‘ฃ

Back-End Web Developers ๐Ÿ› 

#RoadMap #BackEnd
@ProgrammingTip
Understanding Callbacks, Promises, Observables and async/await ๐Ÿคท๐Ÿปโ€โ™‚๏ธ

Whilst we only had callbacks for quite some time, in recent years promises, observables and lately async/await enriched the JavaScript world.

Let's take a closer look at these features and how they differ in this articleโ—๏ธ

https://academind.com/articles/javascript/callbacks-promises-observables-async-await

#JavaScript #Observables #Async #Promise
@ProgrammingTip
Vue VSCode Snippets by sdras ๐Ÿ”ฅ

Super easy to write Vue codes fast ๐Ÿ’Ž

Documentation :
https://github.com/sdras/vue-vscode-snippets

#JavaScript #Vue
@ProgrammingTip
๐Ÿ’™โ›ฐ What is Glide Library โ›ฐ๐Ÿ’™

Glide is a fast and efficient Open Source Media Management and image loading framework for Android that wraps media decoding, memory and disk caching, and resource pooling into a simple and easy to use interface.

Glide supports fetching, decoding, and displaying video stills, images, and animated GIFs. Glide includes a flexible API that allows developers to plug in to almost any network stack. ๐Ÿ™†๐Ÿปโ€โ™‚๏ธ

By default Glide uses a custom HttpUrlConnection based stack, but also includes utility libraries plug in to Google's Volley project or Square's OkHttp library instead. ๐Ÿ’Ž

For learn more about Glide see
https://github.com/bumptech/glide ๐Ÿ“—

#android #java #media
@ProgrammingTip
Media is too big
VIEW IN TELEGRAM
ุขู…ูˆุฒุด ุงุฏุบุงู… 2 Angular ุจุง ASP.NET Core โšก๏ธ

Integrate Angular 2 with ASP.NET Core ๐Ÿ”ฅ

Instructor : Mosh Hamedani ๐ŸŽฅ

#Angular #Aspnet #Core
@ProgrammingTip
JSON Server ๐Ÿ”ฅ

Get a full fake REST API with zero coding in less than 30 seconds (seriously) ๐Ÿ™‹๐Ÿปโ€โ™‚๏ธ

Created with โ™ฅ๏ธ for front-end developers who need a quick back-end for prototyping and mocking. ๐Ÿ› 

https://github.com/typicode/json-server

Fake Online REST API for Testing and Prototyping :
http://jsonplaceholder.typicode.com/

#API #JSON #Mocking
@ProgrammingTip
List Design ๐Ÿ’Ž

Lists is a gallery of real content ready to populate your mockups. ๐ŸŒ€

https://www.lists.design/

#Mocking
@ProgrammingTip
Google Gson Converter ๐Ÿ’ฅ

Gson is a Java library that can be used to convert Java Objects into their JSON representation. It can also be used to convert a JSON string to an equivalent Java object. ๐Ÿ“ฆ

Gson can work with arbitrary Java objects including pre-existing objects that you do not have source-code of. ๐Ÿ”ฅ

There are a few open-source projects that can convert Java objects to JSON. ๐Ÿ’Ž

However, most of them require that you place Java annotations in your classes; something that you can not do if you do not have access to the source-code. ๐Ÿ™†๐Ÿปโ€โ™‚๏ธ

For more about Gson see :
https://github.com/google/gson

#java #android #converter
@ProgrammingTip
Material Design The Development Documentation

This site has a single list of available Material Components and samples of their usage for developer. ๐Ÿ’Ž

The v7 appcompat library is used in website - provide support of material design user interface implementations for older Android platforms. ๐Ÿ™†๐Ÿปโ€โ™‚๏ธ

Note: Design Library - provides various material design components which are not part of Android SDK.

http://www.materialdoc.com/

#java #android #material
@ProgrammingTip
GPU.JS ๐Ÿ™

gpu.js will automatically compile specially written JavaScript functions into shader language and run them on the GPU using the WebGL API. โšก๏ธ

In case WebGL is not available, the functions will still run in regular JavaScript.

https://github.com/gpujs/gpu.js

#JavaScript #GPU
@ProgrammingTip