Hello from Italy

Back to Introduce Yourself forum

mvicmz     2021-04-19 09:28:32

Hi, after having worked in a different field (publishing, if you'd ask), I decided to rediscover programming (many years ago I worked a bit with Fortran and Cobol, at the University). Now I've started to study C++, but what I would like is to be able to refine the study of problems, the development of algorithms. In my free time I like to read novels (mainstream fiction, crime, a bit of SF, graphic novels - what was once just plain comics) and learn to play guitar (yes, I'm retired, if you hadn't guessed...)

Rodion (admin)     2021-04-19 12:52:38
User avatar

Hi Friend!

Thanks for your story - it is always quite interesting and inspiring to meet people with solid experience in some other field! BTW I wonder why we still do not have some publishing-related problem... I think I'll try to come up with some :)

Curious to see you solved problems in no specific order! I guess C++ may be useful if you would like to dive into microcontrollers, arduinos, raspberry pis! On the other hand you may prefer to try something like Python later if your goal is more general :)

yes, I'm retired, if you hadn't guessed

I thought of it when read that you witnessed the times when Fortran and Cobol were taught - while I know they still have some usage - I understand they ceased to be mainstream for few decades already!

Moreover that's cool - you obviously have great and active plans - that's pattern I wish other people follow :)

mvicmz     2021-04-19 20:06:22

Hi Rodion, my name is Marco, by the way (I forgot to sign, this morning). Why do you say "Curious to see you solved problems in no specific order!"? After a first casual approach, which got me into "Girls and Pigs", I'm dutifully following the Volume/Beginner's Problems list... I've got a couple of books, and I'm trying to digest a chapter with your problems before attacking the next one...

Rodion (admin)     2021-04-20 19:49:00
User avatar

Marco, Hi! Yep, thanks - with name it is even more comfortable to address you :)

I see now - you only started with couple random tasks. Though your code is not that of "extreme beginner" - you obviously know already something about how to write it! I only feel dealing with files instead of console input/output may be a bit unnecessary - but of course it's fine if it is fine for you!

I've got a couple of books

I wonder what books - on the language or about algorithms? As you use C++ (not simple C) I guess books on it are very tough nowadays...

mvicmz     2021-04-21 00:22:31

I've got Horton & van Weert's "Beginning C++20" and Dmitrovic's "Modern C++ for Absolute Beginners". Dmitrovic seems too plain, but Horton's book seems very good: very precise, concise and clear. Anyway they serve just to trigger the process: it is the problem solving, with all the debugging phases, that really helps to understand the rule, and how to use them.

I shouldn't begin to shoot suggestions before knowing better language and the site, but... here it comes... If I revise the small programs I wrote for the first problems, I'm already able to understand that there are some naivety, some prolixity, some mistakes even (with the Fahrenheit to Celsius problem
I had a set of data that never had a negative Celsius degree, and since I hadn't thought of that case while writing the program, it was just by chance that I passed the problem...) I'm correcting these past programs and I'd like to update them in the codeabbey site too. After all, if I wanted to use a function or some part of coding I wrote in the past, I should trust my code... but now I can't say I do... But I imagine that you should activate another algorythm of checking the code, because any modification is in fact a new code, and that could be faulty, so maybe it's not worth it. By the way, I get the chance to thank you for what you are doing. I think it is precious to help and stimulate all the future programmers.

Rodion (admin)     2021-04-27 08:24:20
User avatar

Marco, Hi!

Sorry for delay with the answer please - but meanwhile it is nice to see your recent username color change!

"Beginning C++20" and Dmitrovic's "Modern C++ for Absolute Beginners"

Thanks! I'd say both are new to me - though I guess they target modern language changes. However I believe word "beginner" in their title is a bit misguiding - the language is rather complicated, especially as it supports most of the things introduced in various years - with addition of C language on which it is based...

I shouldn't begin to shoot suggestions before knowing better language and the site, but

Oh, be sure - that's quite ok - please don't hesitate to express any concerns, even though probably not every is going to be amended - it's better to discuss :)

I had a set of data that never had a negative Celsius degree, and since I hadn't thought of that case while writing the program, it was just by chance that I passed the problem...)

Curious thing - example for data includes negatives, but checker code is plain about using fahrenheit inputs only from 32 and above. I vaguely suspect there probably was some rounding issue at some point and I reduced the checker upon complaints.

Perhaps I should return to this and investigate it more thoroughly!

On the other hand the idea of this site is to allow "easy learning curve" and not being too hard on beginners - so "weak" checkers are considered less or more ok on simpler problems. It is slightly different from problems at sites like CodeForces or SPOJ where problemsetters usually want to cover every "corner-case" with tests. But their goal is different - they intend to train people in "Competitive Programming" field while we meekly endeavor to help people become just "bit more practical" programmers. And practical programming is generally bit more permissive and forgiving as people, in industry, tend to review their solutions and write tests themselves :)

mvicmz     2021-04-27 08:57:57

If it can be of any help the set of data I received for Fahrenheit to Celsius is this: 38 52 75 78 147 488 379 101 85 199 469 292 382 455 235 216 383 248 566 202 312 107 511 217 560 207 281 73 39 131 292 439 399 287 33 398 144 191 41 and you can see that here all figures are higher than 32, so I would never meet the condition of a negative Celsius degree... The code I wrote, that didn't considered the case of negative Celsius but worked anyway on those data, is the code I had uploaded and you can find on my profile.

Please login and solve 5 problems to be able to post at forum