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 #222 Β· Back to latest

Older Posts 20 shown
Post #220 1.34K
Invoking Delegate in an interpolated Verbatim String C# πŸ‘¨πŸ»β€πŸ’»

Try this short program, it has lots of topics to learn.

Console.WriteLine($@"Hello {( (Func<string>) ( () =>
{
Console.Write("What's your name ? ");
return Console.ReadLine();
})).Invoke()}");


γ€°γ€°γ€°γ€°γ€°γ€°
#CSharp #Deep
@ProgrammingTip
Post #218 1.41K
β€ŒBootbox.js : Bootstrap modals made easy πŸ”₯

Bootbox.js is a small JavaScript library which allows you to create programmatic dialog boxes using Bootstrap modals, without having to worry about creating, managing or removing any of the required DOM elements or JS event handlers. πŸ’Ž

Here’s the simplest possible example:

bootbox.alert("Hello world!");


or

bootbox.alert("Your message here…",
function(){ /* callback */ })


[ Website ] : http://bootboxjs.com/

γ€°γ€°γ€°γ€°γ€°γ€°
#Bootstrap #Bootbox #JavaScript
@ProgrammingTip
Post #216 1.55K
Log Rocket πŸš€

Logging and Session Replay for JavaScript Apps.

Stop guessing why bugs happen,
LogRocket records everything users do on your site, helping you reproduce bugs and fix issues faster.

Provide SDKs for :
β€’ React
β€’ Angular
β€’ Vue
β€’ Redux
β€’ Ember
β€’ Plain JS

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

γ€°γ€°γ€°γ€°γ€°γ€°
#JavaScript #Logging
@ProgrammingTip
Logrocket Session Replay | Product Analytics | Error Tracking | LogRocket LogRocket helps you understand problems affecting your users, so that you can get back to building great software.
Post #214 1.21K
Nameof Expression, Avoid Magic Strings 🚢🏻

This is one of many goodnesses that came with C# 6.0 Back in July 2015.

A moment to think about some wild magic string that we could replace with nameof.

[ Website ] : https://codingblast.com/nameof-expression/

γ€°γ€°γ€°γ€°γ€°γ€°
#CSharp #NameOf
@ProgrammingTip
Post #213 1.1K
Cleave.js πŸ’Ž

Format your <input/> content when you are typing. πŸ“

Supported Formats :
β€’ Credit Card
β€’ Phone Number ( All Countries )
β€’ Date
β€’ Numeral
β€’ Custom Formatting
β€’ ReactJS Component πŸŒ€
β€’ AngularJS Directive πŸ…°οΈ

[ Website ] : http://nosir.github.io/cleave.js/

γ€°γ€°γ€°γ€°γ€°γ€°
#JavaScript #Library
@ProgrammingTip
Post #212 1.06K
Thinking JavaScript πŸ’‘

The question posed to me was this :
Why does this first line "work" (compiles/runs) but the second line gives an error ⁉️

[[]][0]++;

[]++;


Not that I expect you'll ever intentionally write (or read, hopefully!) code like this, but being able to think more like JavaScript does always help you write better code. βœ…

In this topic, we're gonna answer this question.

[ Website ] : https://davidwalsh.name/thinking-javascript

γ€°γ€°γ€°γ€°γ€°γ€°
#JavaScript #Compiler #Deep
@ProgrammingTip
DWB Thinking JavaScript Exploring JS syntax/grammar to understand a confusing snippet, improving our thinking to be more like JavaScript!
Post #209 1.07K
Git - Differences Between Commits πŸ™‡πŸ»

To see the changes of the last commit, you can use:

 $ git log β€”stat 


This command will show the files and the number of lines added and removed by file in each commit. πŸ’Ž

To see what exactly was changed in a commit, use git diff. πŸ’₯

To see the difference between two commits using sha s of commits in hand (0da94be and 59ff30c), use:

$ git diff 0da94be 59ff30c


#git #commit
@ProgrammingTip
Post #205 1.07K
How to think like a programmer ⁉️

β€œI don’t get JavaScript. I can’t make components from scratch. My mind goes blank when I stare at a blank JavaScript file. I guess I can’t do it because I don’t know how to think like a programmer”.


Sounds familiar❔ You’re not alone, my friend.
Many people who tried to pick up JavaScript as their first programming language faced the same problem.

Let today be the day where you learn to think like a programmer.

[ Website ] : https://zellwk.com/blog/think/

γ€°γ€°γ€°γ€°γ€°γ€°
#FreeTime #Think
@ProgrammingTip
Zellwk How to think like a programmer Stop freezing at blank files: Break problems down, solve them step-by-step, then refactor. Overcome coder's block with proven thinking strategies.
Post #203 2.69K
Pluralsight - .NET Micro ORMs.zip1017.6 MB
Pluralsight | .NET Micro ORMs ⚑️

Demonstrate the details of 5 different .NET Micro ORMs :

β€’ Dapper
β€’ OrmLite
β€’ Massive
β€’ PetaPoco
β€’ Simple.Data
γ€°γ€°γ€°γ€°γ€°γ€°
#ORM #Dapper #Tutorial
@ProgrammingTip
Post #201 1.03K
Git - Stash Saves Time πŸ’Ž

The command git stash , picks All the changes in staging and save it in a separate place. Thus, this useful and aptly named command clears your staging area. πŸ”₯

That way you can save a set of changes you have made but do not yet want to commit. πŸ’₯

$ git stash


Or, if you would need to stash untracked changes as well, use -u argument: πŸ’‘

$ git stash -u


In particular, I use more stash when I need to git pull and want to avoid conflicts between local changes and changes upstream.
Β―\_(ツ)_/Β―

To restore your local changes back to staging, you need to apply your stash. The following command recreates the latest changes that were stashed away: βœ”οΈ

 $ git stash apply 


You can have more than one stash. By default, your stashes will be applied in FILO (First-in, last-out) order.

#git #vcs #stash
@ProgrammingTip
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 β†’