چرا بلاکی؟
با مجموعهها، منظم بمانید
ذخیره و طبقهبندی محتوا براساس اولویتهای شما.
Blockly به شما امکان میدهد بدون نگرانی در مورد پیچیدگیهای نحوه نمایش، کشیدن یا اتصال آن بلوکها در دامنه خود، تمرکز کنید.
این برای طیف وسیعی از موارد استفاده آموزشی کاربرد دارد، مانند:
- کار دانش آموزان به سمت برنامه نویسی مبتنی بر متن.
- تشویق تفکر محاسباتی
- کاوش سایر مفاهیم (مثلاً فیزیک) به صورت محاسباتی.
و همچنین بسیاری از موارد استفاده در صنعت، مانند:
- تجزیه و تحلیل داده ها و تمیز کردن.
- اتوماسیون (به عنوان مثال در رباتیک، گردش کار فرآیند، و غیره).
- پیکربندی (به عنوان مثال در فروشگاه های آنلاین، اینترنت اشیا و غیره).
نقاط قوت
Blockly دارای تعدادی نقاط قوت است که آن را به محبوب ترین گزینه برای ایجاد یک محیط برنامه نویسی مبتنی بر بلوک تبدیل می کند.
- دسترسی. Blockly در NPM منتشر شده است، بنابراین شما می توانید آن را به همان روشی که به هر وابستگی وب دیگری نیاز دارید، درخواست کنید.
- کاملا برجسته. Blockly همراه با بلوک های رایج است که کد را در 5 زبان برنامه نویسی محبوب (جاوا اسکریپت، پایتون، لوا، دارت و پی اچ پی) تولید می کند. به علاوه دارای یک اکوسیستم پلاگین پر رونق است که به شما قابلیت های بیشتری می دهد.
- قابلیت سفارشی سازی Blockly به شما امکان می دهد بلوک ها، فیلدها و ورودی های خود را به راحتی تعریف کنید. به علاوه بسیاری از عملکردهای اصلی آن را می توان با موارد سفارشی خود تعویض کرد.
- بین المللی شدن کتابخانه اصلی بلوکهای Blockly با ترجمههایی به بیش از 90 زبان، از جمله نسخههای راست به چپ برای عربی و عبری ارائه میشود.
- متن باز. گوگل فناوری Blockly را با همه به اشتراک می گذارد تا با هم بتوانیم نسل بعدی توسعه دهندگان را آموزش دهیم.
جایگزین، گزینه ها
مواردی وجود دارد که استفاده از کتابخانه ای غیر از Blockly منطقی است. در اینجا چند گزینه دیگر وجود دارد:
- PXT : این ویرایشگر ساخته شده بر روی Blockly است که MakeCode را تقویت می کند. این به طور انحصاری جاوا اسکریپت را خروجی می دهد، که آن را قادر می سازد از کد به بلوک تبدیل شود. همچنین همراه با یک کامپایلر و یک شبیه ساز ارائه می شود.
- Droplet : این ویرایشگری است که Pencil Code را فعال می کند. این به شما امکان می دهد تا بدون کشیدن بلوک ها را تایپ کنید و همچنین از رفتن از کد به بلوک دیگر پشتیبانی می کند.
- Node-red : این یک ویرایشگر برنامه نویسی مبتنی بر گره است نه مبتنی بر بلوک، اما عملکرد مشابهی را انجام می دهد. برای سیم کشی دستگاه های سخت افزاری، اغلب در زمینه های صنعتی، محبوب است.
جز در مواردی که غیر از این ذکر شده باشد،محتوای این صفحه تحت مجوز Creative Commons Attribution 4.0 License است. نمونه کدها نیز دارای مجوز Apache 2.0 License است. برای اطلاع از جزئیات، به خطمشیهای سایت Google Developers مراجعه کنید. جاوا علامت تجاری ثبتشده Oracle و/یا شرکتهای وابسته به آن است.
تاریخ آخرین بهروزرسانی 2025-07-25 بهوقت ساعت هماهنگ جهانی.
[null,null,["تاریخ آخرین بهروزرسانی 2025-07-25 بهوقت ساعت هماهنگ جهانی."],[[["\u003cp\u003eBlockly is a versatile library for creating visual, block-based programming environments, suitable for education and industry applications.\u003c/p\u003e\n"],["\u003cp\u003eIt offers a rich set of features, including pre-built blocks, code generation in multiple languages, and extensive customization options.\u003c/p\u003e\n"],["\u003cp\u003eBlockly is easily integrated into web projects, supports internationalization, and benefits from an active open-source community.\u003c/p\u003e\n"],["\u003cp\u003eWhile Blockly is a robust solution, alternatives like PXT, Droplet, and Node-red cater to specific use cases such as code-to-block conversion, hardware integration, or node-based programming.\u003c/p\u003e\n"]]],["Blockly enables users to apply blocks to their domain without managing rendering or connections. It's applicable in education for computational thinking and industry for automation, data analysis, and configuration. Key strengths include NPM availability, bundled blocks for multiple languages, customizability, internationalization, and open-source nature. Alternatives like PXT, Droplet, and Node-red exist for specific use cases, like JavaScript-only environments or node-based programming.\n"],null,["# Why Blockly?\n\nBlockly lets you focus on applying blocks to your domain without worrying about\nthe complexities of how those blocks should be rendered, dragged, or connected.\n\nIt is applicable to a wide range of educational use-cases, such as:\n\n- Working students toward text-based programming.\n- Encouraging computational thinking.\n- Exploring other concepts (e.g. physics) computationally.\n\nAs well as many many industry use-cases, such as:\n\n- Data analysis and cleaning.\n- Automation (e.g. in robotics, process workflows, etc).\n- Configuration (e.g. in online shops, IoT, etc).\n\nStrengths\n---------\n\nBlockly has a number of strengths that make it the most popular option for\nbuilding a block-based programming environment.\n\n- **Availability.** Blockly is published on NPM, so you can require it in the same way you require any other web dependency.\n- **Fully featured.** Blockly comes bundled with common blocks that generate code in 5 popular programming languages (JavaScript, Python, Lua, Dart, and PHP). Plus it has a thriving [plugin ecosystem](https://google.github.io/blockly-samples/#plugins) that gives you even more capabilities.\n- **Customizability.** Blockly lets you easily define your own blocks, fields, and inputs. Plus many of its core functionalities can be swapped out for your own custom ones.\n- **Internationalization.** Blockly's core library of blocks comes with translations in 90+ languages, including right-to-left versions for Arabic and Hebrew.\n- **Open Source.** Google shares Blockly's technology with everyone so, together, we can educate the next generation of developers.\n\nAlternatives\n------------\n\nThere are some use cases where it makes sense to use a library other than\nBlockly. Here are some other options:\n\n- [**PXT**](https://github.com/Microsoft/pxt): This is an editor built on Blockly that powers [MakeCode](https://makecode.com). It outputs JavaScript exclusively, which enables it to convert from code to blocks. It also comes bundled with a compiler and a simulator.\n- [**Droplet**](https://github.com/PencilCode/droplet): This is the editor that powers [Pencil Code](https://pencilcode.net/). It lets you type to create blocks without dragging, and also supports going from code to blocks.\n- [**Node-red**](https://nodered.org/): This is a node-based rather than block-based programming editor, but it fulfills a similar function. It is popular for wiring together hardware devices, often in industry contexts."]]