TGViewer
Channel Public Channel
Programming & AI Tips πŸ’‘

Programming & AI Tips πŸ’‘

@programmingtip

Programming & AI:
Tips πŸ’‘
Articles πŸ“•
AI & LLMs πŸ‘Ύ
Design, Architecture, Principles βœ…

πŸ‡³πŸ‡± Contact: @MoienTajik
Subscribers
46.3K
Photos
67
Videos
11
Links
376

Showing posts older than #180 Β· Back to latest

Older Posts 20 shown
Post #179 993
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
GitHub GitHub - google/gson: A Java serialization/deserialization library to convert Java Objects into JSON and back A Java serialization/deserialization library to convert Java Objects into JSON and back - google/gson
Post #176 890
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
GitHub GitHub - typicode/json-server: Get a full fake REST API with zero coding in less than 30 seconds (seriously) Get a full fake REST API with zero coding in less than 30 seconds (seriously) - typicode/json-server
Post #174 1.71K
Ψ’Ω…ΩˆΨ²Ψ΄ Ψ§Ψ―ΨΊΨ§Ω… 2 Angular Ψ¨Ψ§ ASP.NET Core ⚑️

Integrate Angular 2 with ASP.NET Core πŸ”₯

Instructor : Mosh Hamedani πŸŽ₯

#Angular #Aspnet #Core
@ProgrammingTip
Post #173 1.14K
πŸ’™β›° 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
GitHub GitHub - bumptech/glide: An image loading and caching library for Android focused on smooth scrolling An image loading and caching library for Android focused on smooth scrolling - bumptech/glide
Post #169 907
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
Post #168 1.01K
Road Map πŸ‘£

Back-End Web Developers πŸ› 

#RoadMap #BackEnd
@ProgrammingTip
Post #167 926
Road Map πŸ‘£

Front-End Web Developers πŸ’Ž

#RoadMap #FrontEnd
@ProgrammingTip
Post #166 892
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
Post #163 815
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
Post #162 993
βž• 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
Post #161 928
What happens when you enter "google.com" into a browser❓

This text attempts to answer this question with as much extreme detail as possible. πŸ€·πŸΏβ€β™‚οΈ

https://github.com/alex/what-happens-when/blob/master/README.rst

γ€°γ€°γ€°γ€°γ€°γ€°
#Fun #FreeTime
@ProgrammingTip
GitHub what-happens-when/README.rst at master Β· alex/what-happens-when An attempt to answer the age old interview question "What happens when you type google.com into your browser and press enter?" - alex/what-happens-when
Post #160 1.14K
JavaScript Clean Code πŸ› 

Async/Await are even cleaner than Promises πŸ’‘

Bad :
get('https://en.wikipedia.org/wiki/Robert_Cecil_Martin')
.then((response) => {
return writeFile('article.html', response);
})
.then(() => {
console.log('File written');
})
.catch((err) => {
console.error(err);
});


Good :
async function getCleanCodeArticle() {
try {
const response = await get('https://en.wikipedia.org/wiki/Robert_Cecil_Martin');

await writeFile('article.html', response);

console.log('File written');
} catch(err) {
console.error(err);
}
}


βž–βž–βž–βž–βž–βž–
#JSTips #CleanCode
@ProgrammingTip
Post #158 1.05K
GraphQL πŸ”₯

A query language for your API πŸ’Ž

GraphQL is a query language for APIs and a runtime for fulfilling those queries with your existing data.

GraphQL provides a complete and understandable description of the data in your API,
gives clients the power to ask for exactly what they need and nothing more,
makes it easier to evolve APIs over time,
and enables powerful developer tools.

http://graphql.org/
https://scaphold.io/
γ€°γ€°γ€°γ€°γ€°γ€°
#GraphQL #API
@ProgrammingTip
graphql.org GraphQL | The API language for humans and agents GraphQL is a query language for APIs and a runtime for fulfilling those queries with your existing data.
Older posts β†’
Threads Profile ViewerView any public Threads profile without an account.Open ThreadLook β†’Writing with AI? Make it sound human.Metric37 rewrites AI drafts so they read naturally. Free AI detector, 1,500 words free.Try Metric37 β†’