|
Sander Rossel wrote: ridiculous hate against it (VB) I never have used VB apart from academic projects (3-4 years back) and the only thing bugged me that time was its crazy syntax. So I think you have a point here.
I maybe wrong but I think there are some features in C#, which are not there in VB.
You have just been Sharapova'd.
|
|
|
|
|
Agent__007 wrote: I maybe wrong but I think there are some features in C#, which are not there in VB VB had features that weren't in C# for years, like filtered catch blocks, optional parameters and late binding functionality
On the other hand VB didn't support iterators (yield return) until .NET version 4.5 (VB version 12 or something?).
A few years ago VB also had better type inference for generics (not sure if that's still the case though).
As far as I know Microsoft now keeps the languages mostly equal.
I'm not saying VB is the best language out there, or that it is better than C# (I love C#), but the unreasonable hate against VB just ticks me off
|
|
|
|
|
You have just been Sharapova'd.
|
|
|
|
|
Sander Rossel wrote: It's missing VB, my first language mistake
FTFY
|
|
|
|
|
The only mistake is that so many people hate on VB.
More precisely, they hate on a VB that's 25 years old and never bothered to get to know the modern VB, which can do the same as C# just using different syntax (and sometimes a bit different overall).
|
|
|
|
|
Just kidding I know VB can do more or less the same as C#.. I think I actually read about some detail it could do better. I just can't stand the verbose syntax..
(and in case of lambdas, the objectively crude syntax! )
/Sascha
|
|
|
|
|
Sascha Lefévre wrote: and in case of lambdas, the objectively crude syntax! Agreed
|
|
|
|
|
Sander Rossel wrote: It's missing VB, my first language
Edsger W. Dijkstra wrote: It is practically impossible to teach good programming to students that have had a prior exposure to BASIC: as potential programmers they are mentally mutilated beyond hope of regeneration.
Congratulations for being an exception that proves the rule.
If you have an important point to make, don't try to be subtle or clever. Use a pile driver. Hit the point once. Then come back and hit it again. Then hit it a third time - a tremendous whack.
--Winston Churchill
|
|
|
|
|
The BASIC Dijkstra talks about cannot be compared to the Visual Basic we use today
|
|
|
|
|
No - today's version is far worse.
"These people looked deep within my soul and assigned me a number based on the order in which I joined."
- Homer
|
|
|
|
|
Are you still a beginner?
Then why need your language? Let beginners choose theirs.
The sh*t I complain about
It's like there ain't a cloud in the sky and it's raining out - Eminem
~! Firewall !~
|
|
|
|
|
But then at least the language should be in the chart
|
|
|
|
|
Yes, designer thought of same... But there was no space left, so he skipped VB
The sh*t I complain about
It's like there ain't a cloud in the sky and it's raining out - Eminem
~! Firewall !~
|
|
|
|
|
The only "must have" about that flowchart is a microscope.
I wanna be a eunuchs developer! Pass me a bread knife!
|
|
|
|
|
That is a must have for flow... Not chart.
The sh*t I complain about
It's like there ain't a cloud in the sky and it's raining out - Eminem
~! Firewall !~
|
|
|
|
|
Can this be a sticky on the Q&A section?
|
|
|
|
|
Lounge is strong enough to keep the evil away from QA
Although you can bookmark it, or save the URL (of image) and so on.
The sh*t I complain about
It's like there ain't a cloud in the sky and it's raining out - Eminem
~! Firewall !~
|
|
|
|
|
I was thinking about the Interview threads the other day. What are some of the brain-teaser kind of puzzles you've been asked, like Fiz-Buz, etc?
If it's not broken, fix it until it is
|
|
|
|
|
I was once asked, "Which type of loop is more appropriate for modelling a bouncing ball, a for loop or a while loop?"
I don't recall which was the correct answer, but I do remember that I initially got it "wrong." However, I argued my case and the interviewer eventually agreed with me.
The difficult we do right away...
...the impossible takes slightly longer.
|
|
|
|
|
I would hazard a while loop, in that the number of bounces is seldom known ahead of time.
while ballSpeed > 0
bounce
You could have some incredibly complex expression as a for loop condition, but while seems more appropriate for including that calculation inside the loop, where this is simply a mortal sin in for loops.
No object is so beautiful that, under certain conditions, it will not look ugly. - Oscar Wilde
|
|
|
|
|
I'd go with a FOR, decrementing by a calculation based on the initial height and gravity.
Or a WHILE that uses exactly the same calculation.
i.e. It's a bluddy stupid question. Apply for a different job, where intelligent people work.
I wanna be a eunuchs developer! Pass me a bread knife!
|
|
|
|
|
Mark_Wallace wrote: i.e. It's a bluddy stupid question. Apply for a different job, where intelligent people work. And we have a winner.
No object is so beautiful that, under certain conditions, it will not look ugly. - Oscar Wilde
|
|
|
|
|
No brain teasers or silly things like that that I recall, but there was one where I was asked to write a function that would determine whether or not two strings were rotations of each other, e.g. given "houseboat" and "boathouse" it would return true.
|
|
|
|
|
- I was given 7 pennies, and challenged with making 2 rows of 4.
- Reverse a singly linked list.
- Test if a character is a capital letter or not.
I don't like writing code on the board, I don't think linearly.
I jot down thoughts, and evaluate, refactor and iterate.
I have had interviews where I didn't verify the input as the very first thing I wrote, the interviewer immediately started to hem and haw. I'm fine with the attention and the pressure, however in that situation I already failed the test because I didn't solve the problem they wanted it to be solved.
One of these times after they put me through the ringer with an on the board test, and they ask "Do you have any questions?"
I want to say "Yeah, here is a brainteaser, could you code it on the board? I want to know how skilled the colleagues I work with are."
... Probably only if I have already decided I don't want the job though.
|
|
|
|
|
Paul M Watt wrote: I want to say "Yeah, here is a brainteaser, could you code it on the board? I want to know how skilled the colleagues I work with are."
This I should print, put a frame around it and nail it on the wall. Simply brilliant!
Geek code v 3.12
GCS d--- s-/++ a- C++++ U+++ P- L- E-- W++ N++ o+ K- w+++ O? M-- V? PS+ PE- Y+ PGP t++ 5? X R++ tv-- b+ DI+++ D++ G e++>+++ h--- r++>+++ y+++*
Weapons extension: ma- k++ F+2 X
I use 1TBS
|
|
|
|