ADT notes

Algebraic Data Type

Ask QuestionAsked todayActive todayViewed 21 times0

I understand the concept of algebraic data types, but I don’t see in what context they are useful or when they would be beneficial. When should I consider using them and how are they useful in functional programming? Would they be of any use in object-oriented programming? What are some of the main benefits they have to offer? Thanks.theorydatatypeshareedit  follow  flag asked 2 hours agoretardedguy1111 bronze badge

  • 1this sounds like a language theoretic (i.e. computer science) or just a programming question. It’s not about electrical engineering, so this is not the right place to ask about it. – Marcus Müller 2 hours ago
  • Other than that, your question is really far too broad even for computer science or programming stack exchange sites. You need to ask a specific question, so I’m not proposing to migrate this somewhere else, I’m afraid. – Marcus Müller 2 hours ago
  • This is EE; not the best place for this question. I have seen Haskell being used for hardware description (CλaSH), but that is a bit of a stretch as an argument for keeping this question here. – ocrdu 2 hours ago 
  • Post this in Stack Overflow with context. ESE may not be the suitable place for this question. – Mitu Raj 1 hour ago
  • @retardedguy, Do you mean ADT (Abstract Data Type)? My favourite language is functional programming, and I am a huge fan of LUA. I have been using ADT for at least two decades, in both Software Engineering and Hardware Engineering, when doing System Integration and TDD (Test Driven Development). Let me give an example, SDM (Structured Development Methodology is used Info System Engineering, SSADM, involving both computer computer software and hardware). The idea is used since the Stone Age, used to be called “Divide and Conquer”. In software engineering it is called “Structured Programming”, – tlfong01 14 mins ago   
  • I am doing EE hardware system integration and test driven development (TDD). In ADT, you enclose functions/methods in an module (ADT), so the module is loosely/decoupled from other modules for better testing and development. This week I am making a DRV8871 (search DRV8833 for my Micky Mouse Project), the function in my hardware ADT is DRV8871, the “data” of my ADC is the signals generated by the NE555 or XY sig gen, preset to 100kHz for ADC. Another “data” is the preset mechanical power of GB37 motor, … – tlfong01 3 mins ago   Edit   
  • In today,s mechantronic and robotic age, all concepts in different disciplines are abstracted and used across the board. Perhaps more later. Happy functional programming and ADTing. Cheers. – tlfong01 10 secs ago   Edit   Delete

Categories: Uncategorized

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s

This site uses Akismet to reduce spam. Learn how your comment data is processed.