
We use simulation analysis to optimise business processes. Our work frequently reveals the unexpected, and has created £500m+ financial gains for our clients.
West Midlands, England
Joined September 2016
- Tweets715
- Following1.6K
- Followers982
- Likes520
Pinned Tweet
Paragon Simulation is one of the UK's leading predictive simulation consultancies. Find out more about what we do: paragonsimulation.com
𝐖𝐡𝐚𝐭 𝐜𝐚𝐧 𝐛𝐮𝐬𝐢𝐧𝐞𝐬𝐬𝐞𝐬 𝐝𝐨 𝐭𝐨 𝐩𝐫𝐞𝐩𝐚𝐫𝐞 𝐟𝐨𝐫 𝐭𝐡𝐞 𝐟𝐮𝐭𝐮𝐫𝐞? A return to Business As Usual leaves business vulnerable to the next big, unexpected, disruptive event.
paragonsimulation.com/change…
1
Is the future you’re planning BAU or Whatever It Takes? Listen to our conversation about the operational impact of Covid-19 on our business, and what challenges the future might bring #scenarioplanning #strategy #simulation
tinyurl.com/2wbc87dj
1
Tip 6: Use Functions
A well-constructed model will contain Functions as these enable you to:
- Avoid duplicating code
- Simplify the model
- Examine the model’s internal data
- Make it easier to make changes
1
1
For more go to paragonsimulation.com/heart-…
Tip 5: “Assert” values before use
The essential idea is that Variables/Elements values are usually set outside the model e.g. in an Excel spreadsheet, and then these values are “read in” by the model.
1
Tip 4: Don’t use hard-coded values
Instead use Constants. Hard-coded values are offensive! It’s so easy and more meaningful to use a Constant instead.
1
Tip 3: Use a naming convention
A common technique is to use a short prefix (1-3 characters) on a variable/element name so you know the variable type.
1
Tip 2: Declare all variables
You're in danger of using a Variable incorrectly,& if you mis-spell its name the software will create a new one “on the fly” & will probably have a 0 value. Revealing itself at some stage when the model is being tested, usually as a run-time error.
1
For more go to: paragonsimulation.com/heart-…
A test-able code. The more modular the code, the easier it is to develop tests to prove the code is accurate. You should write code assuming that things could be wrong – this is called “defensive coding”, and it forces you to think about how to handle unexpected situations.
Keep the code modular. If you find yourself copy/pasting a block of code a couple of times, this is a sign that you ought to consider creating a Function that reproduces its purpose in a generic way, so that it can be re-used.
Keep the code understandable. Consistent use of indents and comments, meaningful Variable and Function names, and clarity of purpose results in readable code, and if the code can be easily “read” then it is more likely it will be understood.
Make code manageable. On my computer monitor I can see & absorb about 50 lines of code at a time. I would suggest this is a reasonable max length of a block of code. This includes comments, so a block that is more than 35 lines of executable code is a candidate to be split up.
Simple code: Some write code to be as compact as possible, but it’s far better to split a complex one-liner into 3/4 lines. It makes is easier to see what’s happening. negative - the more code there is the more chances there are for errors. So make sure every line is error-free!
Correctness is the most important consideration. Keep the code simple. Keep the code manageable. Keep the code understandable. Keep the code modular. Keep the code test-able.
More on this tomorrow!
Tip 1: Aim for error-free code. Seems like an obvious statement? There's sometimes a mindset that “near-enough is good-enough”. This isn't the case with what happens inside a simulation model. It only does what it is programmed to do, so what it is programmed to do must be right.
Over the next few tweets we'll be sharing "10 Tips for Better Coding". So keep an eye out next week!
We're back! With a new blog post - check it out!
paragonsimulation.com/heart-…
We love this in Birmingham! #BanksyInBrum
New Banksy found in Birmingham highlights homelessness in the city at Christmas
New Banksy found in Birmingham highlights homelessness
Follow @Independent for more UK news
Business performance issues are inherently complex, with many factors to consider. Our comprehensive business process modelling approach enables you to identify and resolve the challenges facing your business.
#simulation #analysis #ukbusiness #britishSME #ukmfg #gbmfg
1
Amazing to see what we can do these days!
This video from @KLM and @Ultimaker shows how KLM recycle the plastic bottles used in their flights to create filament which is then used to 3D print tools for aircraft maintenance using Ultimaker's 3D printers. #3dprinting #sustainable

