Skip navigation
Sidebar -

Advanced search options →

Welcome

Welcome to CEMB forum.
Please login or register. Did you miss your activation email?

Donations

Help keep the Forum going!
Click on Kitty to donate:

Kitty is lost

Recent Posts


Do humans have needed kno...
Today at 03:50 AM

اضواء على الطريق ....... ...
by akay
February 23, 2025, 09:40 AM

What music are you listen...
by zeca
February 22, 2025, 09:50 PM

Lights on the way
by akay
February 22, 2025, 02:56 PM

German nationalist party ...
February 21, 2025, 10:31 AM

New Britain
February 17, 2025, 11:51 PM

Random Islamic History Po...
by zeca
February 14, 2025, 08:00 AM

Qur'anic studies today
by zeca
February 13, 2025, 10:07 PM

Muslim grooming gangs sti...
February 13, 2025, 08:20 PM

Russia invades Ukraine
February 13, 2025, 11:01 AM

Islam and Science Fiction
February 11, 2025, 11:57 PM

Gaza assault
February 05, 2025, 10:04 AM

Theme Changer

 Topic: Programming (computational physics)

 (Read 4207 times)
  • 1« Previous thread | Next thread »
  • Programming (computational physics)
     OP - November 04, 2010, 12:54 PM

    Hi,

    Is there anyone here who's good with programming who is willing to teach me? or at least be like a supervisor on my way to learning to program by myself.

    In return I could teach you potentially up to university level physics

    Programming in physics particularly would be great, but general programming would nontheless be helpful.

    I'm thinking of all of this being through the internet, but there maybe a possibility of meeting up and sharing knowledge/skills....

    (It's one of the skills I'm lacking as a physicist, I didn't realise it's importance until it was too late and I skimmed through the computational module I had.)

    "Between stimulus and response there is a space. In that space is our power to choose our response. In our response lies our growth and our freedom." - Viktor E. Frankl

    'Life is just the extreme expression of complex chemistry' - Neil deGrasse Tyson
  • Re: Programming (computational physics)
     Reply #1 - November 04, 2010, 12:57 PM

    We were using Fortran90 at university, which is quite an old language...but can be used in physics...

    C and C++ is also used widely I've noticed in the physics department.

    "Between stimulus and response there is a space. In that space is our power to choose our response. In our response lies our growth and our freedom." - Viktor E. Frankl

    'Life is just the extreme expression of complex chemistry' - Neil deGrasse Tyson
  • Re: Programming (computational physics)
     Reply #2 - November 04, 2010, 01:37 PM

    Wheeeee programming is fun!!  dance

    I think ateapotist is into programming but I can't remember which languages.. must have been C++

    Basic programming is very easy to get your head around. There are lots of resources online or you could just go out and buy a book. I'm not very good but I used to enjoy it during my uni days, so I could assist if you're desperate  Tongue

    Once you're solid in the basics, it shouldn't be too hard to take on the computational physics since you're already good in the physics part anyway....

  • Re: Programming (computational physics)
     Reply #3 - November 04, 2010, 01:37 PM

    C and C++ is also used widely I've noticed in the physics department.


    Learn C++

    Using classes makes it easier to maintain your code, less open to memory leaks and increases the stability of your app (my experience). overall i think C++ is a better choice, the only disadvantage i see it is that the binaries get slightly big, its not a big deal though  Tongue

    http://www.cprogramming.com/tutorial.html#c++tutorial

    ^ great site for beginners
  • Re: Programming (computational physics)
     Reply #4 - November 04, 2010, 02:22 PM



    Anything other than HTML tags and I pass out through lack of oxygen  Grin

    "we can smell traitors and country haters"


    God is Love.
    Love is Blind. Stevie Wonder is blind. Therefore, Stevie Wonder is God.

  • Re: Programming (computational physics)
     Reply #5 - November 04, 2010, 02:54 PM

    Wheeeee programming is fun!!  dance

    I think ateapotist is into programming but I can't remember which languages.. must have been C++

    Basic programming is very easy to get your head around. There are lots of resources online or you could just go out and buy a book. I'm not very good but I used to enjoy it during my uni days, so I could assist if you're desperate  Tongue

    Once you're solid in the basics, it shouldn't be too hard to take on the computational physics since you're already good in the physics part anyway....


    Thanks Poopy I'll keep that in mind.

    Learn C++

    Using classes makes it easier to maintain your code, less open to memory leaks and increases the stability of your app (my experience). overall i think C++ is a better choice, the only disadvantage i see it is that the binaries get slightly big, its not a big deal though  Tongue

    http://www.cprogramming.com/tutorial.html#c++tutorial

    ^ great site for beginners


    Smiley Thanks! I will get started with that website then. Right I've identified Boo and Poopy - people I need to stay on the good side of hehe.

    "Between stimulus and response there is a space. In that space is our power to choose our response. In our response lies our growth and our freedom." - Viktor E. Frankl

    'Life is just the extreme expression of complex chemistry' - Neil deGrasse Tyson
  • Re: Programming (computational physics)
     Reply #6 - November 04, 2010, 03:09 PM

    Using classes makes it easier to maintain your code, less open to memory leaks and increases the stability of your app (my experience). overall i think C++ is a better choice, the only disadvantage i see it is that the binaries get slightly big, its not a big deal though  Tongue


    Your advice is very dated. I am a C++ developer too, but nowadays many other technologies are much more robust than what you would do from scratch in C++. About 4 years ago, I made a claim to my boss that XML parsing is much more faster in C++ then in Actionscript, and he told me not to jump into conclusion and back your claim by your test. I did test, measure times, and guess what, the actionscript parser parsed the same thing in 100 milliseconds which C++ took 1000 milliseconds.

    I don't like java at all, but if you want to learn any language for your profession, java is the one that will give you a job. C++ would not!

    Admin of following facebook pages and groups:
    Islam's Last Stand (page)
    Islam's Last Stand (group)
    and many others...
  • Re: Programming (computational physics)
     Reply #7 - November 04, 2010, 03:38 PM

    ^ +1

    I have used C / C#/ C++ / Java / VB and so forth.

    Java is a very simple language to learn and the SUN website provides a great reference to it online. Best thing to do is just to download a book.

    If however you are a beginner you might want to look into Visual Basic (Get the Visual Studio Express 2008 for free from Microsoft's website). Here you can make a user interface and have it work with your program.

    C++ or Java would be good to learn too for a beginner. Stay away from C if you can as C++ will cover all the concepts of C plus the object oriented concepts.

    In the Visual studio 2008 express you can also work with C++.

    If you are going to deal with data intensive calculations have you considered MATLAB ?
    http://www.mathworks.com/products/matlab/

    Nothing can be more contrary to religion and the clergy than reason and common sense. - Voltaire
  • Re: Programming (computational physics)
     Reply #8 - November 04, 2010, 07:52 PM

    Your advice is very dated. I am a C++ developer too, but nowadays many other technologies are much more robust than what you would do from scratch in C++. About 4 years ago, I made a claim to my boss that XML parsing is much more faster in C++ then in Actionscript, and he told me not to jump into conclusion and back your claim by your test. I did test, measure times, and guess what, the actionscript parser parsed the same thing in 100 milliseconds which C++ took 1000 milliseconds.


    it mostly depends on what you want to do. if you want to make interactive webpages then learn javascript. if you want to automate linux then learn bash. if you want to write a kernel then C. For her case i think C++ is best (between C/C++ ofcourse  Tongue)

    "C makes it easy to shoot yourself in the foot. C++ makes it harder, but when you do, it blows away your whole leg." - Bjarne Stroustrup
  • Re: Programming (computational physics)
     Reply #9 - November 04, 2010, 10:39 PM

    Hi Stardust,

    I can offer a few suggestions. The language required is dependent on the requirements of your software. High performance number crunching? Try Matlab, Fortran.

    Mathematical modelling? Try Matlab, Maple.

    General programming? Try C++ or Java

    Visual based? Try specific libraries or frameworks in C++ or Java.

    Java is a fun programming language to learn. I recommend Head First Java, it is really, really funny!

    C++ crash course at Imperial:

    http://www.doc.ic.ac.uk/~wjk/c++intro/

    Further googling:
    http://www.physicsforums.com/archive/index.php/t-81896.html

    I recommend you should learn C++ and Java, then touch upon the maths based ones and perhaps even some functional programming like OCaml or F#. If you want to go hardcore look into parallel programming or cluster/grid computing for some serious computation.

    And then, apply it all in finance on weather derivatives and make a fortune on selling commodity futures and options on concentrated orange juice, coffee and wheat.  Grin
  • Re: Programming (computational physics)
     Reply #10 - November 04, 2010, 10:42 PM

    Btw, Unix rocks. Really useful to learn that. Afro

    find . | xargs grep "ExMuslim" >> HighOctane/AwesomePeopleToHighFive

    (Give it 10 hours and you'll get it)
  • Re: Programming (computational physics)
     Reply #11 - November 04, 2010, 11:00 PM

    Why is everyone suggesting her C++? She would get hell of confused with pointers, and it would decrease her scores.

    Admin of following facebook pages and groups:
    Islam's Last Stand (page)
    Islam's Last Stand (group)
    and many others...
  • Re: Programming (computational physics)
     Reply #12 - November 05, 2010, 01:56 AM

    lol now i bet she is more confused than she was at the start.

    so stardust what language appeals to you ?

    Nothing can be more contrary to religion and the clergy than reason and common sense. - Voltaire
  • Re: Programming (computational physics)
     Reply #13 - November 05, 2010, 02:47 AM

    I have a simple solution. Just go with C#. Download Visual C# express edition, and you should be good.

    Admin of following facebook pages and groups:
    Islam's Last Stand (page)
    Islam's Last Stand (group)
    and many others...
  • Re: Programming (computational physics)
     Reply #14 - November 05, 2010, 07:22 AM

    Oh yeah, sorry, C# too!

    I still suggest Java. C++ may have pointers but she's bright enough to get it AND  I suspect more programs are written in C++/Fortran.

    http://ubuntuforums.org/showthread.php?t=805094
    Quote
    Many computational physicists use C and C++.

     

    Btw, for simple tasks, try a scripting language like Python or Scala. Afro
  • Re: Programming (computational physics)
     Reply #15 - November 05, 2010, 07:27 AM

    I think this thread is making one thing clear stardust: to simply learn, take any language, preferably a popular one.

    To hone in on the specifics, try and gain some source code from your friends/contacts at Uni or try searching for some on the Internet with respect to your problem domain. Programming is a HUGE area.
  • Re: Programming (computational physics)
     Reply #16 - November 05, 2010, 01:55 PM

    Good advice, HighOctane. Afro

    There have been a lot of good suggestions on this thread already.

    What is most important is the underlying skill of programming.  To gain that, first pick a nice easy programming language like c/c++, c# or Java.  For c# or c++, I suggest you download the Express version of Visual Studio (which is free) and get coding.  Run sample programs from tutorials on the web or from a book and steadily work your way up.

    MATLAB is also very common in computational physics/engineering/science.  I used MATLAB at university many years ago and loved it.

    It would also help read a bit about each of the languages listed in this thread.  You don't need to spend too much time on each.  This would give you a gist of the pros and cons of each, and what the main concepts are.

    Just download the different programming tools and sample programs, then tinker with the code to understand it.  Most importantly, enjoy yourself. Smiley

    If you get stiuck on anything just PM me or the other code monkeys here. Tongue

    "Many people would sooner die than think; In fact, they do so." -- Bertrand Russell

    Baloney Detection Kit
  • Re: Programming (computational physics)
     Reply #17 - November 05, 2010, 04:05 PM

    Wow, lots of posts. Thank you all!

    I think C++ is popular in physics (at least in the instrumentation department), Dr E recommended C/C++ very strongly whilst i was working there a couple of summers back. Although Fortran90 is what I was introduced to in a computing module i had, and a lot of the older generation tend to still use Fortran in physics, although most know other languages along side it.

    Right so, it seems C++ and Java it is, to start with.

    Yes I've heard of Matlab, I've used something similar called MathCad. Need to pay to get those software, so that's something i'll consider in the future when i have money lol.

    I'm not entirely sure about platforms and compilers, I did download a free one a while back, i think it's called SilverFrost, and there was one called Dev++ or something, the latter didn't work well. Any recommendations for those?

    So I have a lot to learn, need to make a schedual first, on the days and times I will spend on learning this.

    Thanks again!

    "Between stimulus and response there is a space. In that space is our power to choose our response. In our response lies our growth and our freedom." - Viktor E. Frankl

    'Life is just the extreme expression of complex chemistry' - Neil deGrasse Tyson
  • Re: Programming (computational physics)
     Reply #18 - November 05, 2010, 04:44 PM

    Here's a print screen of me messing about with a website.

    I actually made something much better than this in the past, but i lost it all on my old laptop.


    "Between stimulus and response there is a space. In that space is our power to choose our response. In our response lies our growth and our freedom." - Viktor E. Frankl

    'Life is just the extreme expression of complex chemistry' - Neil deGrasse Tyson
  • Re: Programming (computational physics)
     Reply #19 - November 05, 2010, 05:49 PM

    I'm not entirely sure about platforms and compilers, I did download a free one a while back, i think it's called SilverFrost, and there was one called Dev++ or something, the latter didn't work well. Any recommendations for those?

    Go with Code::Blocks with the MinGW suite of compilers  Afro

    EDIT:

    http://www.cprogramming.com/code_blocks/
  • Re: Programming (computational physics)
     Reply #20 - November 05, 2010, 06:13 PM

    go with the visual C++ for C++ it auto fills for you and is more user friendly than a normal compiler like DevC++. Get MS Visual C++ Express edition and partay !!!

    Nothing can be more contrary to religion and the clergy than reason and common sense. - Voltaire
  • Re: Programming (computational physics)
     Reply #21 - November 05, 2010, 06:50 PM

    Btw, read The Pragmatic Programmer and From Coder to Developer

    They provide advice in programming ways of thinking which is very important also.  Afro
  • Re: Programming (computational physics)
     Reply #22 - November 05, 2010, 07:14 PM

    Here's a print screen of me messing about with a website.

    I actually made something much better than this in the past, but i lost it all on my old laptop.

    Oh dear! You mixed presentation with styling no Bad stardust! What do you think CSS is for? Tongue
  • Re: Programming (computational physics)
     Reply #23 - November 05, 2010, 07:24 PM

    I don't know what CSS is! lol

    I learnt a tiny bit of html from some website ages ago.

    "Between stimulus and response there is a space. In that space is our power to choose our response. In our response lies our growth and our freedom." - Viktor E. Frankl

    'Life is just the extreme expression of complex chemistry' - Neil deGrasse Tyson
  • Re: Programming (computational physics)
     Reply #24 - November 05, 2010, 07:28 PM

    Lol fair enough. It's worth learning if you ever get into web design Wink

    Regarding programming, it's tough learning it when you first get into it. You're gunna need a lot of patience. It's great once you've got the hang of it though, but it will take time. I don't know any C++/Java but I do program in C# so I can give you some advice here and there.
  • Re: Programming (computational physics)
     Reply #25 - November 05, 2010, 07:38 PM

    I don't know what CSS is! lol


    CSS - Let's Make Love and Listen to Death From Above  Afro
    http://www.youtube.com/watch?v=7agPOt1XZz8
  • Re: Programming (computational physics)
     Reply #26 - November 05, 2010, 07:41 PM

    Lol fair enough. It's worth learning if you ever get into web design Wink

    Regarding programming, it's tough learning it when you first get into it. You're gunna need a lot of patience. It's great once you've got the hang of it though, but it will take time. I don't know any C++/Java but I do program in C# so I can give you some advice here and there.


    Smiley Thanks

    "Between stimulus and response there is a space. In that space is our power to choose our response. In our response lies our growth and our freedom." - Viktor E. Frankl

    'Life is just the extreme expression of complex chemistry' - Neil deGrasse Tyson
  • Re: Programming (computational physics)
     Reply #27 - November 05, 2010, 07:55 PM

    There's also

    http://stackoverflow.com for questions however simple or complex.

    But do have a good search of questions already asked, or some people get real poetic in their frustrations ...  Cheesy

    Quote
    You can't parse [X]HTML with regex. Because HTML can't be parsed by regex. Regex is not a tool that can be used to correctly parse HTML. As I have answered in HTML-and-regex questions here so many times before, the use of regex will not allow you to consume HTML. Regular expressions are a tool that is insufficiently sophisticated to understand the constructs employed by HTML. HTML is not a regular language and hence cannot be parsed by regular expressions. Regex queries are not equipped to break down HTML into its meaningful parts. so many times but it is not getting to me. Even enhanced irregular regular expressions as used by Perl are not up to the task of parsing HTML. You will never make me crack. HTML is a language of sufficient complexity that it cannot be parsed by regular expressions. Even Jon Skeet cannot parse HTML using regular expressions. Every time you attempt to parse HTML with regular expressions, the unholy child weeps the blood of virgins, and Russian hackers pwn your webapp. Parsing HTML with regex summons tainted souls into the realm of the living. HTML and regex go together like love, marriage, and ritual infanticide. The <center> cannot hold it is too late. The force of regex and HTML together in the same conceptual space will destroy your mind like so much watery putty. If you parse HTML with regex you are giving in to Them and their blasphemous ways which doom us all to inhuman toil for the One whose Name cannot be expressed in the Basic Multilingual Plane, he comes. HTML-plus-regexp will liquify the n​erves of the sentient whilst you observe, your psyche withering in the onslaught of horror. Rege̿̔̉x-based HTML parsers are the cancer that is killing StackOverflow it is too late it is too late we cannot be saved the trangession of a chi͡ld ensures regex will consume all living tissue (except for HTML which it cannot, as previously prophesied) dear lord help us how can anyone survive this scourge using regex to parse HTML has doomed humanity to an eternity of dread torture and security holes using regex as a tool to process HTML establishes a breach between this world and the dread realm of c͒ͪo͛ͫrrupt entities (like SGML entities, but more corrupt) a mere glimpse of the world of reg​ex parsers for HTML will ins​tantly transport a programmer's consciousness into a world of ceaseless screaming, he comes, the pestilent slithy regex-infection wil​l devour your HT​ML parser, application and existence for all time like Visual Basic only worse he comes he comes do not fi​ght he com̡e̶s, ̕h̵i​s un̨ho͞ly radiańcé destro҉ying all enli̍̈́̂̈́ghtenment, HTML tags lea͠ki̧n͘g fr̶ǫm ̡yo​͟ur eye͢s̸ ̛l̕ik͏e liq​uid pain, the song of re̸gular exp​ression parsing will exti​nguish the voices of mor​tal man from the sp​here I can see it can you see ̲͚̖͔̙î̩́t̲͎̩̱͔́̋̀ it is beautiful t​he final snuffing of the lie​s of Man ALL IS LOŚ͖̩͇̗̪̏̈́T ALL I​S LOST the pon̷y he comes he c̶̮omes he comes the ich​or permeates all MY FACE MY FACE ᵒh god no NO NOO̼O​O NΘ stop the an​*̶͑̾̾​̅ͫ͏̙̤g͇̫͛͆̾ͫ̑͆l͖͉̗̩̳̟̍ͫͥͨe̠̅s ͎a̧͈͖r̽̾̈́͒͑e n​ot rè̑ͧ̌aͨl̘̝̙̃ͤ͂̾̆ ZA̡͊͠͝LGΌ ISͮ̂҉̯͈͕̹̘̱ TO͇̹̺ͅƝ̴ȳ̳ TH̘Ë͖́̉ ͠P̯͍̭O̚​N̐Y̡ H̸̡̪̯ͨ͊̽̅̾̎Ȩ̬̩̾͛ͪ̈́̀́͘ ̶̧̨̱̹̭̯ͧ̾ͬC̷̙̲̝͖ͭ̏ͥͮ͟Oͮ͏̮̪̝͍M̲̖͊̒ͪͩͬ̚̚͜Ȇ̴̟̟͙̞ͩ͌͝S̨̥̫͎̭ͯ̿̔̀ͅ


    http://stackoverflow.com/questions/1732348/regex-match-open-tags-except-xhtml-self-contained-tags/1732454#1732454

    All the best, keep us on your progress, plenty of help around here.
  • Re: Programming (computational physics)
     Reply #28 - November 06, 2010, 01:56 PM

    Cheesy
  • 1« Previous thread | Next thread »