TGViewer
Channel Public Channel
Qishloqi πŸ‘¨β€πŸ’»

Qishloqi πŸ‘¨β€πŸ’»

@qishloqi_dev

Stuff.
SWE at srpsoftware.com.
Subscribers
56
Photos
40
Videos
4
Links
62

Showing posts older than #61 Β· Back to latest

Older Posts 14 shown
Post #60 257
Qishloqi πŸ‘¨β€πŸ’» Would you rather be safe or free? in other words, my experience with coding styles Story: I found myself being amazed and furious, seeing how strict code checking rules at Ecole 42 (School 21 now) were on my first day during the entrance intensive exam in…
BTW, here's the Norminette rules that was mentioned above for anyone interested: https://github.com/42school/norminette/blob/master/pdf/en.norm.pdf
GitHub norminette/pdf/en.norm.pdf at master Β· 42school/norminette Official 42 norminette. Contribute to 42school/norminette development by creating an account on GitHub.
Post #59 208
Would you rather be safe or free?
in other words, my experience with coding styles

Story:
I found myself being amazed and furious, seeing how strict code checking rules at Ecole 42 (School 21 now) were on my first day during the entrance intensive exam in Kazan. I had very little prior experience with python, writing bots and studying at Inha. Never before I had my way of writing code limited and inspected this way. I was doing all sorts of shady stuff and neither the prof at Inha nor his assistant bat an eye. But Ecole was complete opposite. First time moving out of town, It doubled the cultural shock.

Your function is more that 25 lines?
- Failed
You have too many variables or function params?
- Failed
Oh you don't have proper suffixes for your type, struct, function names.
- Eat dirt

Having "working code" was not enough, I hated it. To validate and get the XP for a given project, we had to pass about 3 peer reviews, linting checks and of course code must be tested and have no memory leaks. We were forced to fix the problems and deal with all the restrictions. Despite the restrictions, many peers made amazing stuff, games, shaders, 3D rendering engines, parsers, shells all written with little to no 3rd party libraries. The rules didn't limit creativity, they enabled collaboration.

Rules were unusual for me, but I got used to them in the next couple of weeks. Now I could read any peer's code and start understanding in little to no time. Because everyone, over a thousand students, followed the same set of rules. I could find code snippets of students from all over the world, be it Japan or America, and learn from them.

Real world:
Not all codebases are the same, and, I had to get hit with reality check to appreciate the value of rules. And oh-boy was it unpleasing sometimes. Especially during internship, everyone had their own style, you'd open up their project and get lost. Not because they were a bad programmer, but because we didn't have a ruleset that everyone needs to comply with. I messed up so many projects myself because I didn't follow a proper style and was too lazy to write good code because I was the only one working on them. I regret it.

I concluded that code readability is local to the team and the project. There's no readable code, It's more about how much of a particular style one spent time reading and writing. Don't optimize the style for someone from outside to be able to read anytime, chances are, nobody ever will. Optimize for yourself and the team. And if anyone wants to read your code they'll learn that style if they are serious about it. And probably making the correct decision is to just use a community standard(ish) style. It doesn't have to be perfect, it needs to be enforced and consistent.

My answer:
I will enable myself maintainable freedom through discipline. Real prison is spending your "freedom" to clean up your own mess.


What do you think?

@qishloqi_dev
  • πŸ”₯ 2
  • ❀ 1
  • πŸ’― 1
Post #58 165
The locals gave Wilbur and Orville the nickname of "the two poor nuts”.

The 4-year path was brutal: Experimental gliders crashed. Calculations failed. Materials broke. Weather often didn’t cooperate. Locals watched from a distance, shaking their heads at these weirdos pretending to be birds and attempting suicide.

Wilbur hit rock bottom one day. He looked across to Orville and said: β€œNot in a thousand years will man fly”

The morning after making this statement, he was back sketching another new design.

And then one day on December 17, 1903… Wilbur and Orville were the first non-birds ever to fly.
Wilbur’s flight was the longest that day: 59 seconds covering 582 feet.
‍Wilbur was so high agency β€” he flew outside the quadrant of happening to life.

Last year, 5.58 billion passenger seats were flown on airplanes. And it all started from β€œtwo nuts” pretending to be birds on a beach.‍
Wilbur Wright might be the highest agency human ever to live.

Source: https://www.highagency.com/

Thanks to: @alt_abdusamad

@qishloqi_dev
High Agency High Agency in 30 Minutes – George Mack George Mack explains the core philosophy of High Agency β€” a mindset that changes how you think and act.
  • πŸ‘ 1
  • πŸ”₯ 1
Post #57 178
Should I become a photographer?

@qishloqi_dev
  • πŸ”₯ 3
  • πŸ‘¨β€πŸ’» 1
Post #55 190
I’ll throw exceptions all over the place and panic if she’s ever to reply. Because I only have beinRejectedStrategyHandler.


Ps: bro got outta work earlier

@qishloqi_dev
  • 😁 2
  • 🀨 1
Post #54 186
Here’s how I would conclude my days long discussions and self reflection on some pain points of our app.

β€œI want to stop discovering SOLID by accident when things go wrong.
Instead, I want to apply those principles early, intentionally β€”
so we avoid pain later and build a healthier codebase from the start.”

@qishloqi_dev
  • πŸ”₯ 1
  • πŸ€” 1
Post #53 184
Assalomu alaykum

Hammaga qurbon hayiti muborak bo'lsin
  • πŸŽ‰ 4
Post #51 511
Eid muborak ✨
  • πŸ•Š 3
  • πŸ”₯ 2
Post #50 542
Qishloqi πŸ‘¨β€πŸ’» Typescriptni Goda qayta yozib chiqishyabdi ekan. Va testlar 10-15x performance improvement ko'rsatibdi. Men uchun kutilmagan va katta yangilik bo'ldi. https://www.totaltypescript.com/typescript-announces-go-rewrite @qishloqi_dev
Shu rewrite haqida interview bo'libdi typescriptni bosh arxitektorlaridan biri bilan: https://youtu.be/10qowKUW82U?si=-WlcyDlrAgrFnBkx


Shu o'rinda, interviewni olgan aka (Michigan Typescript) yaqinda faqat typelardan foydalangan holda Doomni run qilgandi 🀯.
Buni amalga oshirish uchu u typelarni o'zida ishlaydigan kompyuter qurgan, assembly instruktiyalarni implement qilib chiqqan, ram, disk vq h.k.zlarni qurgan to'liq typescript type sistemasini ichida. Hullas must watch: https://youtu.be/0mCsluv5FXA?si=pGSHBqUIWSPs979f

@qishloqi_dev
YouTube TypeScript is being ported to Go | interview with Anders Hejlsberg You're about to see concurrent 10x performance on your type checking with half the memory and much faster editor startup. The TypeScript team has been porting the project to Go for the past 8 months. https://devblogs.microsoft.com/typescript/typescript…
  • πŸ”₯ 3
  • πŸ‘ 1
Post #49 402
Post #48 404
Qishloqi πŸ‘¨β€πŸ’» Photo
Kecha @sbcommunityjs o'tkazgan ichki conferensiyada React Compiler, Animatsiyalar va AI modellarni browserda run qilish haqida gaplashdik. Hamma dokladlar juda qiziq bo'ldi. Ayniqsa animatsiylarni performance concernlarni bo'yicha ko'p narsa o'gandim.

Conferensiyadan keyin shu mavzu bilan ko'proq qiziqib internetda qidirib ko'rdim.

Animatsiyalar haqida qisqacha notelarim:
Layout thrashing animatsialarda asosiy bottlenecklardan biri.
Layoutni qayta hisoblashga majbur qiladigan narsalar: Link.
Css bilan animatsiya qilishda top, left va h.k.z larni o'rniga transform lardan foydalanish kerak.
Performance uchun cssdan, canvas, webgl, webgpular tomon o'tkazish kerak lekin bu texnologialar kompleksroq. Bazi paytlar shunchaki video qo'yib qo'yish arzonroq tushishi mumkin.

Compiler bo'yicha:
Qanchalik hohlasakda 1ta o'q bilan reactdagi hamma muammolarni hal qilmaydi. Ko'p hollarda compiler yaratgan natijani o'qib, qo'l bilan (manual) tekshirib chiqish kerak. Memoizatsiyani har doim ham to'gri qilmaydi ayniqsa useMemo bilan allaqachon yozgan kodimizni optimizatsiya qilish jarayonida buzilishlar kuzatilishi mumkin. Lekin compilerni juda keng darajada configlar orqali sozlasa bo'ladi.

@qishloqi_dev
Gist What forces layout/reflow. The comprehensive list. What forces layout/reflow. The comprehensive list. - what-forces-layout.md
  • πŸ”₯ 2
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 β†’