Tag: coding-style

191 Alternatives to procedural loops and iterating over lists in Mathematica 2011-04-30T00:16:16.173

132 Can one identify the design patterns of Mathematica? 2013-05-10T13:11:00.337

116 Struct equivalent in Mathematica? 2012-01-30T14:41:06.300

97 Why should I avoid the For loop in Mathematica? 2017-01-02T14:40:36.080

67 Is this the most effective and efficient programming style for prototyping (a ray tracer) in Mathematica? 2014-05-27T22:00:26.177

56 Placement of Condition /; expressions 2012-01-23T11:58:54.813

48 Granular versus terse coding 2016-03-15T10:30:48.113

48 The Game of Hex in Mathematica 2016-09-03T12:39:04.033

45 Programming paradigm change 2014-04-11T06:19:13.860

40 Getting serious about Mathematica programming 2013-07-24T13:03:35.160

39 Guidelines on giving readable names to variables 2013-09-06T08:07:07.030

36 Mathematica style guide? 2015-01-28T12:54:54.197

30 What are some advanced uses for Block? 2012-10-04T21:42:56.183

29 Extracting values from nested rules in JSON data 2012-03-17T02:45:47.087

26 Writing functions with "Method" options 2016-04-01T18:19:00.803

23 How do I increase the readability of this code? 2016-06-22T11:16:51.437

22 How to find the name of the current function? 2013-03-04T16:43:10.577

19 Are there advantages to using additional arguments of common functions rather than alternative ways of calculating with lists? 2012-03-08T21:37:27.410

18 Part extraction vs functions like First, Last? 2012-04-07T23:55:19.253

18 Notebook formatting - easier descriptions for equations and results? 2012-10-12T13:01:13.023

18 Is there a guideline about when to end expressions with semicolons? 2014-01-25T06:46:01.063

17 stop notebook evaluation when Assert fails 2015-11-07T19:09:56.353

17 Combining # & pure functions with post-fix notation 2017-05-29T06:39:14.090

16 Speeding up random walk for many particles 2012-05-11T22:28:19.750

16 f[arg1, arg2,...,argN] vs. f[{arg1, arg2,...,argN}] 2012-12-05T03:53:19.480

15 With versus Function 2012-01-26T03:00:53.560

14 What's the most "functional" way to do Cholesky decomposition? 2012-06-11T14:19:44.773

14 Map vs. Table for index-specific operations on 2D arrays 2019-08-03T00:47:50.080

13 Short syntax for accessing System`Utilities`HashTableAdd and System`Utilities`HashTableGet 2012-04-11T22:10:05.363

13 An elegant way to plot a numeric function that returns a list, and have each element in a different color 2012-11-14T18:49:59.723

13 Code indenting of // postfix functions 2017-03-06T05:54:24.447

12 Equivalent Nested Loop Structure 2013-11-07T13:53:17.717

12 Clarify when to use Style vs Directive vs List 2017-05-12T03:52:16.463

11 Is there a convention on which name to use for a throwaway variable? (Like underscore in Python) 2017-03-09T10:39:53.093

11 Angle increment spiral in Mathematica 2019-05-15T17:29:47.827

10 Are these nested Tables necessary? 2012-05-05T03:34:45.747

10 What is the purpose of Dump contexts? 2012-09-17T16:51:51.597

9 Can this code be written in a more functional style 2012-04-01T13:03:53.347

9 Alternatives to While Loops? 2012-10-15T22:23:45.203

9 How to generate this structure of a list without `While` and the like? 2016-04-22T11:40:16.217

9 Using vtx[] instead of vtx 2019-10-26T03:05:41.897

8 Speed up Mathematica code involving Convolve 2012-07-29T17:43:46.210

8 What is a good way to code long, complex, compilable algorithms? 2015-06-07T19:23:34.270

8 What is the idiomatic way to shift and extend a list by a number of elements? 2015-07-06T13:14:06.500

8 Can we turn this for loop into a more elegant Mathematica code? 2019-01-31T11:19:42.943

8 Design Patterns for System Functions? 2019-06-11T04:49:30.470

7 Alternative to overloading Set 2012-02-02T10:51:52.670

7 Mathematica style (drawing cubes) 2014-03-19T15:12:51.820

7 Good coding for a tricky expansion with convolutions, limits, substitutions 2015-09-22T05:50:40.757

7 Defining Function with right T arrow 2017-04-16T07:38:41.747

7 Strategies for creating links to external systems 2018-02-24T20:32:35.297

7 Quick way to preview and tweak styles? 2020-01-07T18:41:08.713

6 What are some general strategies to avoid using For loops? 2012-07-05T12:26:39.223

6 More structure in Source Code/Notebooks 2012-12-20T21:27:21.370

6 Should I end all definitions from packages with semicolon? 2013-10-11T19:11:39.257

6 Functional programming Style & Performance 2013-12-23T16:01:07.877

6 Simple while loop alternative in Mathematica 2014-11-14T00:32:47.620

6 Proper style for function documentation? 2017-03-30T20:27:27.637

6 How do I improve the style, efficiency, and versatility of this code? 2018-01-13T07:47:09.777

6 Notebook layout best practices 2018-04-05T10:55:36.033

5 What is the right way to write a function that includes other functions? 2014-07-17T09:28:55.177

5 Annotation specifier like :Author: and sectioning like ::Section:: in package code 2015-03-02T00:02:22.550

5 Changing deep parts of expression specified by complex query 2018-01-17T15:09:51.220

5 Create a graph from a huge list of edges 2018-06-09T05:04:23.883

5 How to safely forward/manage options between functions? 2019-04-12T17:05:00.077

5 Best Practice: spending transactions to expense list 2019-12-22T00:29:19.340

5 In over my head in trying to create a debugger 2020-03-30T18:55:10.633

5 Modify each element depending on previous elements 2020-10-22T21:24:29.680

4 How do I add options to a built in function, which only apply to a certain class of argument? 2012-12-06T19:13:14.000

4 The guidelines for options or multiple arguments? 2013-06-28T10:29:00.943

4 Calculate efficiently an expensive hermitian matrix 2015-01-12T10:28:09.863

4 Is it possible to write Matlab-like scripts in Mathematica? 2017-01-12T14:54:10.480

4 Is there a better way to achieve the same result with {f[#],g[#]}&@list? 2017-08-19T19:26:53.280

4 How to improve on this Stylesheet Manipulation for Message Styling 2019-04-19T08:35:11.410

4 Why is my version of Euler's Method not working? 2019-09-11T19:06:34.380

4 What is the best coding style for performance? 2020-11-02T13:29:56.440

4 Question about plotting a curve and tangent lines 2020-11-13T15:09:50.313

3 Lines with label in Plot options syntax 2012-10-28T14:55:07.613

3 What can I do to improve the performance of my calculations? 2014-04-12T14:29:02.347

3 Converting a nested for loop from MATLAB 2014-07-26T20:16:03.680

3 Use Style on list elements 2014-08-24T16:27:55.733

3 Replace For with If in Mathematica way 2016-05-05T21:12:26.077

3 How to find all prime power factorizations of an integer 2017-03-24T01:25:48.127

3 Whats the difference between Cases and Select? 2018-09-17T17:10:42.407

3 Good habits for handling intense computations with mathematica 2019-02-08T09:29:18.187

3 Extract outputs from a WHILE loop in a table format 2019-08-13T22:34:46.243

3 Project and notebook design 2019-10-27T22:16:42.080

3 What are some debugging helpers or tips/tricks in your Mathematica toolbag? 2020-06-25T03:34:49.317

2 Writing a function to mimic Characters 2013-08-16T00:33:08.370

2 Good coding for a sequence of derivatives 2015-10-14T14:09:57.110

2 Good coding for integral substituions 2015-11-14T22:55:42.870

2 Problem with writing a basic function to produce number of multiples 2018-03-24T22:46:57.010

2 Another for loop question: efficiency versus readability 2019-01-31T22:07:44.563

2 How can I make this "Pick" inside a "Table" run faster? 2019-09-04T07:23:56.287

2 BarChart simultaneous axes label and numerical label 2019-12-22T21:33:12.543

2 Write repeated expressions within a rule more simply 2020-06-02T17:08:32.593

2 How to calculate how many points in function f are greater than the average of functions g and k? 2020-10-17T22:36:01.510

2 Question about finding the area 2020-11-13T21:20:31.730

2 Mimicking named arguments, a good idea? (programming style) 2020-12-10T11:11:09.787