Uncategorized

ADT

Algebraic Data Type

Ask QuestionAsked todayActive todayViewed 23 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 29 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 18 mins ago   
  • 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 15 mins ago   
  • I would recommend you to read Uncle Bob’s articles and videos on future programming, where he says “use the idea of OO without OO tools, FP without FP tools, Agile, without Agile tools, …” As the MIT guys (FP idea, LISP, originated there”) says, the most important thing is ABSTRACTION, which has no application boundaries. Or as Bruce Lee says, “be water my friend”, don’t be confined to any “forms” or application areas, in the pros’ words, be “ADAPTIVE”. – tlfong01 just now   Edit   

add a comment

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 )

Google photo

You are commenting using your Google 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.