Skip to main content
Commonmark migration
Source Link

Here are some advices from my experience.

  • Explore new ideas with the Mathematica frontend. Don't hesitate to use sections and subsections in the frontend to structure your work and experiment various possibilities.

    Explore new ideas with the Mathematica frontend. Don't hesitate to use sections and subsections in the frontend to structure your work and experiment various possibilities.

  • When you have instructions that work, package them into functions, still in the frontend.

    When you have instructions that work, package them into functions, still in the frontend.

    It's practical to select all the useful instruction cells while holding Ctrl (in Windows), to copy them somewhere in the notebook so that they are following each other and to merge them. Then you just have to add a Module around the code, localize variables and add a function declaration with arguments.

It's practical to select all the useful instruction cells while holding Ctrl (in Windows), to copy them somewhere in the notebook so that they are following each other and to merge them. Then you just have to add a Module around the code, localize variables and add a function declaration with arguments.

  • Then package them into packages. I do it like explained here. You can also do it from a notebook.

    Then package them into packages. I do it like explained here. You can also do it from a notebook.

  • Use Wolfram Workbench. It's really important from my point of view for big projects as having a debugger is very important. Also you can rename variables across multiple packages (files) which is very convenient.

    Use Wolfram Workbench. It's really important from my point of view for big projects as having a debugger is very important. Also you can rename variables across multiple packages (files) which is very convenient.

    (The only non obvious thing in using Workbench, is when you're at a breakpoint in debug mode and want to abort the evaluation, you need to abort the evaluation in the Mathematica frontend using Ctrl+. for example and continue the evaluation in Workbench.)

(The only non obvious thing in using Workbench, is when you're at a breakpoint in debug mode and want to abort the evaluation, you need to abort the evaluation in the Mathematica frontend using Ctrl+. for example and continue the evaluation in Workbench.)

  • Once you already have a project big enough, you can write some functions directly in Workbench.

    Once you already have a project big enough, you can write some functions directly in Workbench.

  • Write unit tests, before or right after writing a new code that works. Workbench handles unit tests.

    Write unit tests, before or right after writing a new code that works. Workbench handles unit tests.

  • Use code versioning, for example Git with the plugin Egit in Eclipse (that you will use if you use Wolfram Workbench).

    Use code versioning, for example Git with the plugin Egit in Eclipse (that you will use if you use Wolfram Workbench).

  • Reuse, reuse, reuse. Never write twice the same thing.

    Reuse, reuse, reuse. Never write twice the same thing.

  • Use the function Echo or this more sophisticated utility to print values from deep inside your code.

    Use the function Echo or this more sophisticated utility to print values from deep inside your code.

Here are some advices from my experience.

  • Explore new ideas with the Mathematica frontend. Don't hesitate to use sections and subsections in the frontend to structure your work and experiment various possibilities.
  • When you have instructions that work, package them into functions, still in the frontend.

It's practical to select all the useful instruction cells while holding Ctrl (in Windows), to copy them somewhere in the notebook so that they are following each other and to merge them. Then you just have to add a Module around the code, localize variables and add a function declaration with arguments.

  • Then package them into packages. I do it like explained here. You can also do it from a notebook.
  • Use Wolfram Workbench. It's really important from my point of view for big projects as having a debugger is very important. Also you can rename variables across multiple packages (files) which is very convenient.

(The only non obvious thing in using Workbench, is when you're at a breakpoint in debug mode and want to abort the evaluation, you need to abort the evaluation in the Mathematica frontend using Ctrl+. for example and continue the evaluation in Workbench.)

  • Once you already have a project big enough, you can write some functions directly in Workbench.
  • Write unit tests, before or right after writing a new code that works. Workbench handles unit tests.
  • Use code versioning, for example Git with the plugin Egit in Eclipse (that you will use if you use Wolfram Workbench).
  • Reuse, reuse, reuse. Never write twice the same thing.
  • Use the function Echo or this more sophisticated utility to print values from deep inside your code.

Here are some advices from my experience.

  • Explore new ideas with the Mathematica frontend. Don't hesitate to use sections and subsections in the frontend to structure your work and experiment various possibilities.

  • When you have instructions that work, package them into functions, still in the frontend.

    It's practical to select all the useful instruction cells while holding Ctrl (in Windows), to copy them somewhere in the notebook so that they are following each other and to merge them. Then you just have to add a Module around the code, localize variables and add a function declaration with arguments.

  • Then package them into packages. I do it like explained here. You can also do it from a notebook.

  • Use Wolfram Workbench. It's really important from my point of view for big projects as having a debugger is very important. Also you can rename variables across multiple packages (files) which is very convenient.

    (The only non obvious thing in using Workbench, is when you're at a breakpoint in debug mode and want to abort the evaluation, you need to abort the evaluation in the Mathematica frontend using Ctrl+. for example and continue the evaluation in Workbench.)

  • Once you already have a project big enough, you can write some functions directly in Workbench.

  • Write unit tests, before or right after writing a new code that works. Workbench handles unit tests.

  • Use code versioning, for example Git with the plugin Egit in Eclipse (that you will use if you use Wolfram Workbench).

  • Reuse, reuse, reuse. Never write twice the same thing.

  • Use the function Echo or this more sophisticated utility to print values from deep inside your code.

replaced http://mathematica.stackexchange.com/ with https://mathematica.stackexchange.com/
Source Link

Here are some advices from my experience.

  • Explore new ideas with the Mathematica frontend. Don't hesitate to use sections and subsections in the frontend to structure your work and experiment various possibilities.
  • When you have instructions that work, package them into functions, still in the frontend.

It's practical to select all the useful instruction cells while holding Ctrl (in Windows), to copy them somewhere in the notebook so that they are following each other and to merge them. Then you just have to add a Module around the code, localize variables and add a function declaration with arguments.

  • Then package them into packages. I do it like explained herehere. You can also do it from a notebook.
  • Use Wolfram Workbench. It's really important from my point of view for big projects as having a debugger is very important. Also you can rename variables across multiple packages (files) which is very convenient.

(The only non obvious thing in using Workbench, is when you're at a breakpoint in debug mode and want to abort the evaluation, you need to abort the evaluation in the Mathematica frontend using Ctrl+. for example and continue the evaluation in Workbench.)

  • Once you already have a project big enough, you can write some functions directly in Workbench.
  • Write unit tests, before or right after writing a new code that works. Workbench handles unit tests.
  • Use code versioning, for example Git with the plugin Egit in Eclipse (that you will use if you use Wolfram Workbench).
  • Reuse, reuse, reuse. Never write twice the same thing.
  • Use the function Echo or this more sophisticated utilityutility to print values from deep inside your code.

Here are some advices from my experience.

  • Explore new ideas with the Mathematica frontend. Don't hesitate to use sections and subsections in the frontend to structure your work and experiment various possibilities.
  • When you have instructions that work, package them into functions, still in the frontend.

It's practical to select all the useful instruction cells while holding Ctrl (in Windows), to copy them somewhere in the notebook so that they are following each other and to merge them. Then you just have to add a Module around the code, localize variables and add a function declaration with arguments.

  • Then package them into packages. I do it like explained here. You can also do it from a notebook.
  • Use Wolfram Workbench. It's really important from my point of view for big projects as having a debugger is very important. Also you can rename variables across multiple packages (files) which is very convenient.

(The only non obvious thing in using Workbench, is when you're at a breakpoint in debug mode and want to abort the evaluation, you need to abort the evaluation in the Mathematica frontend using Ctrl+. for example and continue the evaluation in Workbench.)

  • Once you already have a project big enough, you can write some functions directly in Workbench.
  • Write unit tests, before or right after writing a new code that works. Workbench handles unit tests.
  • Use code versioning, for example Git with the plugin Egit in Eclipse (that you will use if you use Wolfram Workbench).
  • Reuse, reuse, reuse. Never write twice the same thing.
  • Use the function Echo or this more sophisticated utility to print values from deep inside your code.

Here are some advices from my experience.

  • Explore new ideas with the Mathematica frontend. Don't hesitate to use sections and subsections in the frontend to structure your work and experiment various possibilities.
  • When you have instructions that work, package them into functions, still in the frontend.

It's practical to select all the useful instruction cells while holding Ctrl (in Windows), to copy them somewhere in the notebook so that they are following each other and to merge them. Then you just have to add a Module around the code, localize variables and add a function declaration with arguments.

  • Then package them into packages. I do it like explained here. You can also do it from a notebook.
  • Use Wolfram Workbench. It's really important from my point of view for big projects as having a debugger is very important. Also you can rename variables across multiple packages (files) which is very convenient.

(The only non obvious thing in using Workbench, is when you're at a breakpoint in debug mode and want to abort the evaluation, you need to abort the evaluation in the Mathematica frontend using Ctrl+. for example and continue the evaluation in Workbench.)

  • Once you already have a project big enough, you can write some functions directly in Workbench.
  • Write unit tests, before or right after writing a new code that works. Workbench handles unit tests.
  • Use code versioning, for example Git with the plugin Egit in Eclipse (that you will use if you use Wolfram Workbench).
  • Reuse, reuse, reuse. Never write twice the same thing.
  • Use the function Echo or this more sophisticated utility to print values from deep inside your code.
added 51 characters in body
Source Link
xyz
  • 655
  • 4
  • 38
  • 117

Here are some advices from my experience.

  • Explore new ideas with the Mathematica frontend. Don't hesitate to use sections and subsections in the frontend to structure your work and experiment various possibilities.
  • When you have instructions that work, package them into functions, still in the frontend.

It's practical to select all the useful instruction cells while holding CtrlCtrl (in Windows), to copy them somewhere in the notebook so that they are following each other and to merge them. Then you just have to add a Module around the code, localize variables and add a function declaration with arguments.

  • Then package them into packages. I do it like explained here. You can also do it from a notebook.
  • Use Wolfram WorkbenchWolfram Workbench. It's really important from my point of view for big projects as having a debugger is very important. Also you can rename variables across multiple packages (files) which is very convenient.

(The only non obvious thing in using Workbench, is when you're at a breakpoint in debug mode and want to abort the evaluation, you need to abort the evaluation in the MathematicaMathematica frontend using Ctrl+.Ctrl+. for example and continue the evaluation in WorkbenchWorkbench.)

  • Once you already have a project big enough, you can write some functions directly in WorkbenchWorkbench.
  • Write unit tests, before or right after writing a new code that works. WorkbenchWorkbench handles unit tests.
  • Use code versioning, for example GitGit with the plugin Egit in Eclipse Eclipse (that you will use if you use Wolfram WorkbenchWolfram Workbench).
  • Reuse, reuse, reuse. Never write twice the same thing.
  • Use the function EchoEcho or this more sophisticated utility to print values from deep inside your code.

Here are some advices from my experience.

  • Explore new ideas with the Mathematica frontend. Don't hesitate to use sections and subsections in the frontend to structure your work and experiment various possibilities.
  • When you have instructions that work, package them into functions, still in the frontend.

It's practical to select all the useful instruction cells while holding Ctrl (in Windows), to copy them somewhere in the notebook so that they are following each other and to merge them. Then you just have to add a Module around the code, localize variables and add a function declaration with arguments.

  • Then package them into packages. I do it like explained here. You can also do it from a notebook.
  • Use Wolfram Workbench. It's really important from my point of view for big projects as having a debugger is very important. Also you can rename variables across multiple packages (files) which is very convenient.

(The only non obvious thing in using Workbench, is when you're at a breakpoint in debug mode and want to abort the evaluation, you need to abort the evaluation in the Mathematica frontend using Ctrl+. for example and continue the evaluation in Workbench.)

  • Once you already have a project big enough, you can write some functions directly in Workbench.
  • Write unit tests, before or right after writing a new code that works. Workbench handles unit tests.
  • Use code versioning, for example Git with the plugin Egit in Eclipse (that you will use if you use Wolfram Workbench).
  • Reuse, reuse, reuse. Never write twice the same thing.
  • Use the function Echo or this more sophisticated utility to print values from deep inside your code.

Here are some advices from my experience.

  • Explore new ideas with the Mathematica frontend. Don't hesitate to use sections and subsections in the frontend to structure your work and experiment various possibilities.
  • When you have instructions that work, package them into functions, still in the frontend.

It's practical to select all the useful instruction cells while holding Ctrl (in Windows), to copy them somewhere in the notebook so that they are following each other and to merge them. Then you just have to add a Module around the code, localize variables and add a function declaration with arguments.

  • Then package them into packages. I do it like explained here. You can also do it from a notebook.
  • Use Wolfram Workbench. It's really important from my point of view for big projects as having a debugger is very important. Also you can rename variables across multiple packages (files) which is very convenient.

(The only non obvious thing in using Workbench, is when you're at a breakpoint in debug mode and want to abort the evaluation, you need to abort the evaluation in the Mathematica frontend using Ctrl+. for example and continue the evaluation in Workbench.)

  • Once you already have a project big enough, you can write some functions directly in Workbench.
  • Write unit tests, before or right after writing a new code that works. Workbench handles unit tests.
  • Use code versioning, for example Git with the plugin Egit in Eclipse (that you will use if you use Wolfram Workbench).
  • Reuse, reuse, reuse. Never write twice the same thing.
  • Use the function Echo or this more sophisticated utility to print values from deep inside your code.
added 260 characters in body
Source Link
faysou
  • 11k
  • 3
  • 50
  • 131
Loading
added 1 character in body
Source Link
faysou
  • 11k
  • 3
  • 50
  • 131
Loading
added 316 characters in body
Source Link
faysou
  • 11k
  • 3
  • 50
  • 131
Loading
added 166 characters in body
Source Link
faysou
  • 11k
  • 3
  • 50
  • 131
Loading
added 127 characters in body
Source Link
faysou
  • 11k
  • 3
  • 50
  • 131
Loading
Source Link
faysou
  • 11k
  • 3
  • 50
  • 131
Loading