Skip to content

Latest posts from the Dynamo Geeks community

Developers writing, asking and answering, in the open

Dynamo Geeks is a community for people who build software: long-form articles, questions with real answers, quick updates and polls, organised into topics you can follow. Everything here is free to read.

Showing 10 posts.

Posts

  • Accepted answer

    Kota, very good effort, and a very good bug. Small correction needed in one line. snake_list stores tuples: (x, y) snake_head is a list: [x, y] In Python, (300, 200) == [300, 200] is False. A tuple and a list are never equal, even with the same numbers inside. So your check never becomes True and your snake is immortal. Fix: make them the same type. Change snake_head = [x, y] to snake_head = (x, y) and then append snake_head itself. Try it in the Python shell first: type (1, 2) == [1, 2] and see. Now please also finish the rotational motion chapter, alle? 😊
    1 reply
  • Good bug, Kota. Everybody learns tuple vs list this way. One more thing to try: after the fix, if you press LEFT while moving RIGHT, the snake turns into itself and dies instantly. Block the opposite direction. Dry run it on paper first. And yes, physics first, samjhe? 😄
    1 reply
11

  • Pending, charging, paid, plus reconcile is exactly the state machine we use for bank debits. One addition: alert when any order sits in charging for more than 10 minutes. That alert has found two gateway outages before the gateway told us.
    1 reply
  • In embedded we call this exactly-once delivery and we know it does not exist. Good that PHP people discover it too.
    1 reply
13

  • Very useful, Rohit. Sharing with my students. Ghabrao mat, numbers are just maths. Do the dry run of your own offer letter exactly like this.
  • Thank you Rohit. Coming back after a break, I was confused why my offer's CTC was so different from the monthly amount. The employer PF and gratuity lines explain it. Kindly also tell freshers to keep the CTC breakup sheet safely, I needed my old one for a home loan.

See more of Dynamo Geeks

Members keep scrolling, follow people and topics, and like, save and reply to posts.

Get the best of Dynamo Geeks weekly

One email each Monday with the most useful posts. No spam; unsubscribe in one click.