Showing posts with label university. Show all posts
Showing posts with label university. Show all posts

Wednesday, November 18, 2009

Strange missing feature in CSharpCodeProvider

Currently I'm developing a database application for my university study that uses NHibernate. To enable lazy loading of results it is required for all members of mapped class to be virtual, so NHibernate can create proxy that will be replaced by actual object when required. And if class has events they also must be virtual because actually this is the same fields and methods.

On the other hand I've decided to generate those classes from XML definitions. On of the reasons for this is that this classes seems to be just and a set of properties, but they need to implement INotifiyPropertyChanged. I've decided to write a code generator using System.CodeDom members and to gain some experience at working with members of this namespace. However I've found that CSharpCodeProvider doesn't generate virtual events! Despite the fact that I set the appropriate attribute the event is still normal so NHibernate couldn't generate proxy. I've search through CSharpCodeProvider with Reflector and found that in the method GenerateEvent that generates code of event there is no call of a method OutputVTableModifier that inserts "virtual" keyword. VBCodeGenerator also doesn't generate virtual events.

So I wonder whether this is an intentional decision or the bug in the current .NET framework version (I have 3.5 SP 1). Actually I wasn't determined enough to search for this in the older version of .NET.

Tuesday, May 26, 2009

Summer session

I wasn't writing here for much time, but I hope I will fix that soon :) At least today I've written posts to my software blog and here. This summer sessions seems to be the easiest of all that I've already had. I only have to pass two rather simple exams. So almost all summer is free from studying! And now I'm applying to study in Summer Scholl in OpenWay Group in Saint Petersburg. If I will succed then this will be a study course for a 6 weeks but studying seems to be very intersting and usefull there.

Monday, October 29, 2007

Winter session exams: Programming is already passed

It's not a secret that I love programming :). And I'm rather good at it. So I've decided not to wait end of semester to pass all laboratory works on programming and passed last this Saturday! 9 works in 8 weeks — good result I think. And I won't need to pass exam on it. Now I only need to make a documentation to my coursework. So now I'll have more free time. :)

Tuesday, September 25, 2007

Some free time coming?

It's the end of September and I'm rising my study activity. On last Saturday I've passed two laboratory works in programming and today I've passed one work in physics. Badly only for 4 points from 5. But that was a result of that I didn't remember one formula, so I'll try in future to understand information better.

Also I've finished reading book "Pragmatic programmer". I think the next book will be "Design Patterns". It content looks rather good and was mentioned some times in PP.

Also at these days I'm collecting some medical documents for me to be approved as unsuitable to serve in Russian Army. It's makes some problems because I need to visit a lot of organizations only to be sent to organization of lower level.


Thought, I hope in close time I'll finally could make me give myself more free time from university study. Apparently writing this post is a result of that intention. :-)

Sunday, September 16, 2007

Again and again: where is time?

So I've recently written that I have a lot of work and now I've realized that now I couldn't find time for my own activities, i.e. programming. I was constantly working during this week and made a lot of work, but it all was about university. And next week doesn't promise to be different. What to do? How to make all university staff and made something for yourself? Again I meet this problem. Of course "myself" isn't only programming, it is also other thing but this is the first about which I think. Tomorrow I will visit big book market with my friend. It is better than sitting at home all day.


What to do?
  • Firstly, now I'm actively using Todoist to manage my tasks and time arrangement. I still couldn't use calendars or organizers but I found a good use for that simple webapp.
  • On next week I'll try to find time to do something that is not-university. Surely it will be some programming (and what you awaited from me? :).
  • May be found some non-computer activity? Or at least non-programming? I couldn't guess what it can be.

And also about my current activities: some of my time is spent on working with book for one of our professors. He has a book about his subject but it exists only in one instance. So I've scanned it and now make text recognition. Rather dull work because my OCR is rather simple (but free).

And idea of a day: Do something meaningful :)

Wednesday, September 12, 2007

A lot of work

Eh... I've started new studying year, and now have a lot of homework. And I'm trying to do it as soon as possible. Before new tasks will come. For a previous day I haven't found a time for programming, but hope soon I'll allocate my time better and find some time for my hobbies :). And I've bought book "Pragmatic programmer" by Andy Hunt and Dave Thomas!

Update: add a link to http://www.pragmaticprogrammer.com/ on book title.

Thursday, June 28, 2007

Plans for summer

Now second semester is over officially. I have best marks on all subjects as in first semester :). During next 2 months I think my main activity will be work. I want to buy a laptop. What is bad, is that, as I think, there is no real need in it for me. I only *want* it... But in the end of summer there will be my birthday and I want laptop as a present :). Moreover I have some other plans for summer:
  • Read some dialogues of Plato
  • Study C# (I have a choice between two books. I've already decided which I'll buy, but I think, in future I will buy also an another, because these books cover different parts of language and software development)
  • Study UML (I've also found a book about it)
  • Write Egnoly: text editor on C#. Main aim of this project for me is to to study development of Windows applications and practice in C# and in programming in whole
  • Write application with codename UP: now it's just an evaluator of arithmetical expressions. That's also a practice in programming and it is rather interesting.

Saturday, June 23, 2007

Yeah... Relax...

Today I've passed physics exam on best mark. I'm really pleased with that. Now there is only exam in programming, but, to be honest, I know programming enough well to be sure that there won't be any problems with it. I'm rather tired after exams so need some rest... some programming... :) and play "Battle for Wesnoth"... :)

And what is more: Google has its Summer of Code, so why I can't have my own? That not be a contest (at least at first time) and in this year there will be only me, all in all this name will be much more symbolic than the representation of real matters... But why not have some fun with names? :)

Tuesday, June 19, 2007

Where time goes?

Not very original name for the post, but that is the question I've asked myself today. On Saturday I will have an exam in physics. So I had some plans on preparing to it... but there is evening now, but I still haven't made even half of planned work! And I couldn't understand what I was doing today that the all time went out without remarkable result...

Bad! Very bad! May be I need some rest?..

Monday, June 18, 2007

Mathematics exam

Today I've passed an exam in mathematics on best mark! I'm really pleased with that, and now I have only 2 exams left and one of them is programming and I haven't got any problems with it. Another is physics. I'm not so good in it as in programming but I think there will be nothing too difficult for me.

I now haven't got much time for my own activities and paused my programming work. Moreover I'm experiencing some internal conflict: I have a lot of things I want to do, but time goes as a sand from hands without any significant result... But I think exams are legitimate reason not to be enough productive.