code2 - کد۲
353 subscribers
144 photos
63 videos
1 file
141 links
کد۲
💻 برنامه‌نویسی، فناوری و استارتاپ
Download Telegram
این شرکت توی لیندکین آشنا شدم و برای یه موقعیت قرار شد task رو انجام بدم. یه کار خیلی جالبی که دارن این که ریسورس های مختلف برای job role هاشون رو لیست کردن. به نظرم خیلی کار جالب و قشنگی هست.
منابع هم انصافاً دستچین و خوب بود 👌

https://payever.org/careers/technical-faq
👨‍💻When to Use Which?

#javascript

🏹 Arrow Functions:
Short, simple functions or callbacks (e.g., event listeners, array methods like map, filter, reduce).
When you need to preserve "this" from the enclosing scope.

👍 Normal Functions:
When defining methods in objects or classes.
When you need dynamic "this" or access to the "arguments" object.
For constructors or functions requiring the "new" keyword.

@code2_ir
Interfaces or Types?

#javascript

Here are the key differences between TypeScript interfaces and types:

1. Syntax:
// Interface
interface User {
name: string;
age: number;
}

// Type
type User = {
name: string;
age: number;
}


2. Extension/Inheritance:
// Interface extends interface
interface Animal {
name: string;
}
interface Dog extends Animal {
bark(): void;
}

// Type extends type (using intersection)
type Animal = {
name: string;
}
type Dog = Animal & {
bark(): void;
}


3. Declaration Merging (Interface-only feature):
// Interfaces can be defined multiple times and will merge
interface User {
name: string;
}
interface User {
age: number;
}
// Result: User has both name and age

// Types cannot be reopened
type User = { name: string }
// Error: Cannot redeclare type User
type User = { age: number }


4. Union Types (Type-only feature):
// Only possible with type
type Status = "pending" | "approved" | "rejected";

// Can't do this with interface
type StringOrNumber = string | number;


5. Computed Properties:
// Works with type
type Keys = "firstname" | "lastname";
type DudeType = {
[key in Keys]: string;
}

// Doesn't work with interface
interface DudeInterface {
[key in Keys]: string; // Error
}


General recommendations:
- Use interface when:
- Defining object shapes/APIs
- You need declaration merging
- You're creating object-oriented designs
- You want clearer error messages

- Use type when:
- Creating unions or intersections
- Working with primitives
- Using mapped types
- Need complex type operations

Most modern TypeScript codebases tend to favor type because it's more flexible, but both are valid choices. The TypeScript team originally recommended interfaces, but types have become equally well-supported.
SQL cheat sheet - Every JOIN explained
source

@code2_ir
و اما فارس نیوز 😁😁


@code2_ir
This media is not supported in your browser
VIEW IN TELEGRAM
💎با It.Xstudio به انیمیشن‌هاتون روح بدین!

🛑با ویژگی جدید "حالت‌های چهره" در ltx.studio، حالا می‌تونید دقیق‌ترین احساسات رو به شخصیت‌ها منتقل کنید. از حالت‌های از پیش آماده استفاده کنید، یا با کنترل‌های سفارشی، ریزترین جزئیات صورت مثل حالات چشم‌ها، دهان و ابروها رو تنظیم کنید.

🛑هوش‌مصنوعی داره صنعت فیلم‌‌سازی و انیمیشن‌ سازی رو متحـول می‌کنه و امــکانات جدیدی رو برای خلق آثار هنری بی‌نظیر فراهم کرده.🫰
@code2_ir
میلاد امیرالمومنین علی علیه السلام و روز پدر بر شما مبارک 🌺🌹
😲 یک ابزار هوش مصنوعی برگ ریزان دیگه معرفی کنم؟
Anonymous Poll
67%
بله حتما
33%
برو آقا. خدا روزیت جای دیگه حواله کنه!
This media is not supported in your browser
VIEW IN TELEGRAM
مدیرعامل پرپلکسیتی میگه کاری که چینی‌ها با مدل دیپ‌سینک DeepSeek کردن یک چیزی شبیه معجزه است و به خاطر محدودیت دسترسی به نسل آخر GPUهای انویدیا تا ۳۰ برابر بهینه‌تر مدل رو توسعه دادند و در بلندمدت میتونند مدل‌های آمریکایی رو کنار بزنند!
https://t.co/2gQRjVTYS5
یه وقتایی شرمندش می‌شم :)
بعضی آدما برات انقدر فکر نمی‌کنن که این می‌کنه

یه بار ۳، ۴ دقیقه داشت فکر می‌کرد. مرام فقط deepseek

@code2_ir
Channel photo updated
اگر نیاز به ارز دیجیتال داشتید، خب نوبیتکس خیلی معروف هست و شناخته شده است:

اگر دوست داشتید با لینک دعوت من ثبت نام کنید:

https://nobitex.ir/signup/?refcode=19CAD41
>co-creator of Unix
>creator of B (precursor to C)
>co-creator of Go
>creator of the first shell
>creator of the first text editor (ed)
>creator of grep
>co-creator of UTF-8
>creator of Plan9
>creator of the first chess engine (Belle)
>creator of the first chess endgame

🔗 Kai Fall @kai_fall
📲 @twittdl_bot
contact.us
contact.him
contact.them
.
.
.

@code2_ir
معمولا برای هر شخصی که بخواد برنامه نویسی یا نرم افزار کار کنه بسته به خود آدم نظر میدم و شاید نشه برای همه یه جواب مشخص داشت.
این اپ رو تو کافه بازار و گوگل پلی دیده بودم و نصب کرده بودم ولی اصلا بازش نکرده بودم ببینم چه مدلی. الان تست کردم. کارش خوبه و انصافا زحمت خوبی براش کشیده شده.
به نظرم موفق خواهد و همینطور به نظرم میشه توصیه اش کرد.

http://cafebazaar.ir/app/?id=ir.finca.code&ref=share
سلام و درود

خسته نباشید و ایام به کام

اگر محتوای خاصی دوست دارید ساخته بشه یا نیازمندی خاصی توی برنامه‌نویسی ، دواپس یا استارتاپ ها دارید خوشحال میشم اگر بتونم کمکی کنم.

البته تو بحث استارتاپ و کسب و کار که میاد یه سری شاید بگن که تو خودت پس چرا کاره ای نیستی چیزی از خودت نداری. اگر راست میگی بگو میخوای چی کار کنی؟ استارتاپ راه بندازی؟ چطوری؟ خب در پاسخ باید بگم خیلی ممنون شما چطورید؟ بعد از شوخی، کلا استارتاپ و کسب و کارهای نوین کار راحتی نیستن لزوما. همراه با ریسک زیادن و احتمال و درصد شکست توشون زیاده.
حالا در مجموع توی این حوزه هم مطالعه و تجربه به نسبت خوبی داشتم لذا اندک دانشی است تحفه درویش چه کند بی نوا ندارد بیش.

۲۹ بهمن ۱۴۰۳
Channel photo updated
وقتی هارددیسکت جا نداره و فقط زورت به داکر می‌رسه :)
🐋


@code2_ir