Jake Woods

Australia

Age: 21

I am a student at the University of Newcastle (Australia) studying Software Engineering

I also work at Macquarie Generation as a Software Engineer using .NET based technologies to provide software solutions.

May
16
revised Best practices for regex performance VS sheer iteration
Improved formatting
May
3
awarded Supporter
Apr
26
awarded Yearling
Apr
26
awarded Yearling
Apr
26
comment I am new to programming and I am interested in jdbc - Tips and Advice needed
Creativity is definitely a huge part of it. Your users are going to come to you with a broad and ambiguous set of problems and your job is to figure out how to explain and implement those requirements in a way a machine can understand. Machines don't tolerate any ambiguity so it required a lot of creativity in the way you solve those problems. I've been programming for close to 7 years now and I think it's really important to hold onto that enthusiasm for new knowledge. Luckily programming is a field where there's always more to learn.
Apr
26
answered I am new to programming and I am interested in jdbc - Tips and Advice needed
Apr
26
comment I am new to programming and I am interested in jdbc - Tips and Advice needed
The initial learning curve can be very intimidating but I've found that as you gain more knowledge it gets easier. But you never stop learning as once one section is easy it's time to move onto another harder or different section of programming. You can be financially successful in programming without continuous learning but I couldn't imagine picking a point in my career where I'll say "I think I've learned enough, it's time to stop".
Apr
26
comment I am new to programming and I am interested in jdbc - Tips and Advice needed
Success in computer science/software engineering doesn't depend on specialization. It depends on your ability to solve problems, understand users and continuous learning. Additionally JDBC is just a technology for connecting to databases from Java. It's not exactly a technology that can be specialized in.
Apr
18
comment C++ index-to-index map
@tmighty It's hard to tell what you used Content() for without more information. It might be worthwhile editing the question with more information about the context in which your int-to-int mapping is going to be used.
Apr
18
revised C++ index-to-index map
added 858 characters in body
Apr
18
comment C++ index-to-index map
@JakobS. You're right. I have understated the impact of performance as in some situations it will make a significant difference. My feeling is that the OP is prematurely optimizing and should be considering what he is trying to represent (an int-to-int mapping) rather then worying about to-the-metal speed but as you said it's hard to tell without more information.
Apr
18
comment C++ index-to-index map
I would estimate that it would be fine. However programmers are notoriously bad at estimates like that so what I would suggest is that you implement this in a class and then profile the entire program. Profiling will identify bottlenecks in the system and if it turns out the std::map is too slow you can look at other options such as a large vector, unordered_map or other optimizations. When in doubt: profile.
Apr
18
revised C++ index-to-index map
deleted 22 characters in body
Apr
18
comment C++ index-to-index map
800,000 id's is relatively tiny for a logarithmic operation. To put it into perspective log(800000) ~= 5.903 which is tiny on the scale of large computations. Copying that much data would be much slower then performing some map lookups. Though all of this depends on how your application is put together.
Apr
18
comment C++ index-to-index map
This really feels like there is a major design issue. What are you using this code to do? The snippet suggests you're trying to do some text manipulation or parsing but the design doesn't make sense in that context. The question is hard to answer in a useful manner in it's current form.
Apr
18
answered C++ index-to-index map
Apr
18
comment C++ index-to-index map
I wouldn't be surprised if your current m_content array exceeded the size of the stack which would be causing your immediate error. Regardless this approach seems off. What problem are you trying to solve?
Apr
16
awarded Supporter
Mar
18
awarded Civic Duty
Mar
5
awarded Caucus
1 2 3 4 5