• Log InLog In
  • Register
Liquid`
Team Liquid Liquipedia
EDT 04:13
CEST 10:13
KST 17:13
  • Home
  • Forum
  • Calendar
  • Streams
  • Liquipedia
  • Features
  • Store
  • EPT
  • TL+
  • StarCraft 2
  • Brood War
  • Smash
  • Heroes
  • Counter-Strike
  • Overwatch
  • Liquibet
  • Fantasy StarCraft
  • TLPD
  • StarCraft 2
  • Brood War
  • Blogs
Forum Sidebar
Events/Features
News
Featured News
[ASL22] Ro24 Preview: Summer's End9Serral wins HomeStory Cup 2915Serral wins Maestros of the Game 244ByuL, and the Limitations of Standard Play3Team Liquid Map Contest #22: Results and Winners7
Community News
Weekly Cups (August 10-16): SHIN doubles2GSTL Returns in 2026!45Weekly Cups (Aug 3-9): Protoss get shut out7RSL goes to London! 2026 Offline Finals Nov 21-2212Weekly Cups (July 27-Aug 2): SHIN's big week0
StarCraft 2
General
Geoff 'iNcontroL' Robinson has passed away SC4ALL II: SC2 Player Announcement 6/8 - Maru GSTL Returns in 2026! Balance hotfix patch 5.0.16b (July 16) Serral wins Maestros of the Game 2
Tourneys
PIG STY FESTIVAL 8.0! (13 - 23 August) WORTEX 2026 - Hungarian SC2 Finals Budapest Sparkling Tuna Cup - Weekly Open Tournament SC2 AI Tournament 2026 Fall 2026 GSTL Announcement
Strategy
[G] Having the right mentality to improve
Custom Maps
Nexus Wars 2021 GUIDE [M] (2) Industrial Park
External Content
The PondCast: SC2 News & Results Mutation # 539 Thunder Dome Mutation # 538 Media Blackout Mutation # 537 Hostile Territory
Brood War
General
Replay Review Process - What do you do? Pros React To: First 'Fastest' Map in ASL History BW General Discussion [Personal Project Share] Terran Defense v0.60 ASL22 General Discussion
Tourneys
[ASL22] Ro24 Group C Small VOD Thread 2.0 Toronto invitational lan 22 august [ASL22] Ro24 Group A
Strategy
Odyssey Mineral Stack Saturation Fighting Spirit mining rates Any training maps people recommend? Simple Questions, Simple Answers
Other Games
General Games
Nintendo Switch Thread General RTS Discussion Thread Anyone here play Quakeworld back in the day? Stormgate/Frost Giant Megathread EVE Corporation
Dota 2
Official 'what is Dota anymore' discussion
League of Legends
[TL LoL EUW IHs] Teemo shall perish TSM pausing esports and CLG Dead
Heroes of the Storm
Heroes of the Storm 2.0
Hearthstone
Deck construction bug
TL Mafia
TL Mafia Power Rank TL Mafia Community Thread NeO.D_StephenKing vs This Guy From 1 Million Dance
Community
General
US Politics Mega-thread Russo-Ukrainian War Thread Canadian Politics Mega-thread Dating: How's your luck? Artificial Intelligence Thread
Fan Clubs
The Creator Fan Club MarineLorD Fan Club The ShoWTimE Fan Club
Media & Entertainment
Movie Discussion! Anime Discussion Thread
Sports
Football (Soccer) Thread MLB/Baseball 2023 TeamLiquid Health and Fitness Initiative For 2023 NBA General Discussion
World Cup 2022
Tech Support
Computer Build, Upgrade & Buying Resource Thread Simple Questions Simple Answers FPS when play League Of Legend on laptop
TL Community
The Automated Ban List Northern Ireland Global Starcraft
Blogs
Young Players Exit Esports E…
TrAiDoS
LOCKPICKING NOOB
LUCKY_NOOB
Cathedral Of CS And NY pizza a…
FuDDx
Please support my new stand…
Peanutsc
Customize Sidebar...

Website Feedback

Closed Threads



Active: 4828 users

The Big Programming Thread - Page 82

Forum Index > General Forum
Post a Reply
Prev 1 80 81 82 83 84 1032 Next
Thread Rules
1. This is not a "do my homework for me" thread. If you have specific questions, ask, but don't post an assignment or homework problem and expect an exact solution.
2. No recruiting for your cockamamie projects (you won't replace facebook with 3 dudes you found on the internet and $20)
3. If you can't articulate why a language is bad, don't start slinging shit about it. Just remember that nothing is worse than making CSS IE6 compatible.
4. Use [code] tags to format code blocks.
tec27
Profile Blog Joined June 2004
United States3702 Posts
October 03 2011 01:55 GMT
#1621
On October 03 2011 10:43 Weson wrote:
I got a question...
I've just started a course in Flash and actionscript and the whole course is based on actionscript 2. I've done some programming in as2 before and could go through this course without putting much efforet in to it.
My teacher wants us to program in AS2 and almost begs us to do so because he says that AS3 is hard to learn and can be really confusing.
I get easily bored if i have to learn things i already know (like watching some online tutorial on how to make a button....) so i wonder if it's a good idea to learn AS3 instead? Or are there no benefits to it?

Personally I would just try to spend your time learning something non-flash. Flash is pretty much on the way out as far as web stuff goes. Maybe you could spend that time learning something like Javascript instead? It would be similar since they're both dialects of ECMAScript and would also have more use to you if you decide to build regular websites or maybe even servers through NodeJS.
Can you jam with the console cowboys in cyberspace?
Nanar
Profile Joined July 2011
United States16 Posts
October 03 2011 02:33 GMT
#1622
Does anyone have any links for Assembly Language programming? I'm a Comp Sci major and I'm completely and utterly lost in my Assembly Language class.
tofucake
Profile Blog Joined October 2009
Hyrule19240 Posts
October 03 2011 02:42 GMT
#1623
Which assembly?
Liquipediaasante sana squash banana
Weson
Profile Blog Joined December 2010
Iceland1032 Posts
October 03 2011 04:27 GMT
#1624
On October 03 2011 10:55 tec27 wrote:
Show nested quote +
On October 03 2011 10:43 Weson wrote:
I got a question...
I've just started a course in Flash and actionscript and the whole course is based on actionscript 2. I've done some programming in as2 before and could go through this course without putting much efforet in to it.
My teacher wants us to program in AS2 and almost begs us to do so because he says that AS3 is hard to learn and can be really confusing.
I get easily bored if i have to learn things i already know (like watching some online tutorial on how to make a button....) so i wonder if it's a good idea to learn AS3 instead? Or are there no benefits to it?

Personally I would just try to spend your time learning something non-flash. Flash is pretty much on the way out as far as web stuff goes. Maybe you could spend that time learning something like Javascript instead? It would be similar since they're both dialects of ECMAScript and would also have more use to you if you decide to build regular websites or maybe even servers through NodeJS.

We will have some courses in javascript in spring. It's just that i got to chose now what Actionscript version i'll go for. Will i benefit from learning AS3 more than AS2? or is it basicly a waste of time? I'm having a course in XHTML/CSS at the same time and would it be smart to breeze through flash actionscript 2 and go full on XHTML/CSS?
"!@€#" - as some guy said
alwinuz
Profile Joined September 2011
Netherlands77 Posts
October 03 2011 04:38 GMT
#1625
On October 03 2011 04:43 EvanED wrote:
Show nested quote +
On October 02 2011 20:07 KaiserJohan wrote:
On October 02 2011 19:33 Morfildur wrote:
On October 02 2011 12:42 Millitron wrote:
On September 29 2011 05:02 gullberg wrote:
Aaaah man.... Everything was going so well in my programming course until we got to linked lists, abstract queues and all that. Classes/objects are fucked up. FML

Think of a class like the blueprint for a house's construction, with the object being the finished house.

As for linked lists, think of them like your browser's forward and back buttons. You can only go forward or back one page at a time. Just like in the linked lists, you can only go forward or back one node at a time.

Never heard of abstract queues, can't help ya there.


IIRC Abstract Queues are just queues that work for any type, like:

class Queue<T>
{
public void Enqueue(T item) {...}
public T Dequeue() {...}
}

So just a fancy name for something that is actually quite simple, though from my experience, 90% of what programming professors seem to do is finding fancy names for simple things people do since the dawn of programming, just to scare and confuse students.


If so, abstract queues is a really dumb name, it would get you thinking about abstract classes. General queues or whatever sounds more proper, but as you say, professors loves dem fancy names' :p

The "abstract" part of "abstract queue" comes more from the fact that it doesn't specify how the implementation works, and isn't particularly related to the fact that the collection is parameterized. In other words, it's abstract because you don't know if it's implemented with an array, a linked list, or some other data structure. (That's not the whole story and it'd be possible to write a bit more about that -- in particular it doesn't say why it should be distinct from the Queue interface -- but that's the main bit.) In particular, the generics parameterization is basically unrelated.

And if it makes you think abstract class, that's good... because it is one, and that's also related to the name. :-)


Why an abstract class and not an interface?
SunDown
Profile Joined March 2010
52 Posts
October 03 2011 04:43 GMT
#1626
On October 03 2011 13:27 Weson wrote:
Show nested quote +
On October 03 2011 10:55 tec27 wrote:
On October 03 2011 10:43 Weson wrote:
I got a question...
I've just started a course in Flash and actionscript and the whole course is based on actionscript 2. I've done some programming in as2 before and could go through this course without putting much efforet in to it.
My teacher wants us to program in AS2 and almost begs us to do so because he says that AS3 is hard to learn and can be really confusing.
I get easily bored if i have to learn things i already know (like watching some online tutorial on how to make a button....) so i wonder if it's a good idea to learn AS3 instead? Or are there no benefits to it?

Personally I would just try to spend your time learning something non-flash. Flash is pretty much on the way out as far as web stuff goes. Maybe you could spend that time learning something like Javascript instead? It would be similar since they're both dialects of ECMAScript and would also have more use to you if you decide to build regular websites or maybe even servers through NodeJS.

We will have some courses in javascript in spring. It's just that i got to chose now what Actionscript version i'll go for. Will i benefit from learning AS3 more than AS2? or is it basicly a waste of time? I'm having a course in XHTML/CSS at the same time and would it be smart to breeze through flash actionscript 2 and go full on XHTML/CSS?

I'm a web/flash developer.

First, Flash has a niche that won't go away for a while. Entertainment/rich media websites. HTML5/Canvas is really no substitute yet for rich media apps, and won't be for a long time. To say "Flash is on it's way out" is incorrect; it's role is becoming more focused.

AS3 is a modern programming language. Classes and scoping works as it should. Contrast with AS2, which is very different from Java/JS/C in terms of organization and how you build apps. The transition from AS2 to Java, or an object based framework for Javascript (like Mootools) will be much more difficult. Skills you learn from AS3 are directly translatable to modern object based languages, it's just a syntax change and learning libraries. This isn't true for AS2.

My advice is try to jump to AS3 now. When I made the jump, it took a while because AS2 was the first programming language I spent significant time with and some aspects are so different in AS3. However, stick with it for a little bit and you'll be much better off.

As you go through your course, I suspect your teacher might be breaking a lot of fundamentals like encapsulation if he believes AS3 is so much harder to learn. Just be aware that if he teaches in AS2, you might have to re-organize (not just change the syntax of) his examples to work in AS3. This is for the better, in the long run.
Hi
Chaosvuistje
Profile Joined April 2010
Netherlands2581 Posts
October 03 2011 06:47 GMT
#1627
On October 03 2011 13:27 Weson wrote:
Show nested quote +
On October 03 2011 10:55 tec27 wrote:
On October 03 2011 10:43 Weson wrote:
I got a question...
I've just started a course in Flash and actionscript and the whole course is based on actionscript 2. I've done some programming in as2 before and could go through this course without putting much efforet in to it.
My teacher wants us to program in AS2 and almost begs us to do so because he says that AS3 is hard to learn and can be really confusing.
I get easily bored if i have to learn things i already know (like watching some online tutorial on how to make a button....) so i wonder if it's a good idea to learn AS3 instead? Or are there no benefits to it?

Personally I would just try to spend your time learning something non-flash. Flash is pretty much on the way out as far as web stuff goes. Maybe you could spend that time learning something like Javascript instead? It would be similar since they're both dialects of ECMAScript and would also have more use to you if you decide to build regular websites or maybe even servers through NodeJS.

We will have some courses in javascript in spring. It's just that i got to chose now what Actionscript version i'll go for. Will i benefit from learning AS3 more than AS2? or is it basicly a waste of time? I'm having a course in XHTML/CSS at the same time and would it be smart to breeze through flash actionscript 2 and go full on XHTML/CSS?


No, just flipping... I'll tell you what's up.

AS3 was the first real OOP language I learned. I had to learn AS2 back then too, but I protested because it was a dated language and did all my assignments in AS3 without the help of my teachers. As a result, I really got what the basics of OOP were like classes, functions, eventlisteners and variables. I could make sense of the code I was writing.

Then in the same course, we headed over to PHP. Safe to say more than half of the class complained that it was too hard and abstract to learn ( lol, not that that was surprising. Most of them didn't want to code or program a single thing because it was 'nerdy' ). I needed to ask one single question to the teacher at the start and I could simply breeze through the whole course.

AS3 is a good way to start programming because it is so visual. Sure you will be coding procedural at the start. But everyone starts that way. Personally I bought Essential Actionscript 3 from O' Reilly. It helped me a lot in figuring things out, although it was hard at times.

If you are passionate about making stuff for the Web, do AS3. If you just want to get a nice grade now and pass your web stuff easily, do AS2. But if they at some point move over to PHP, it WILL bite you in the butt I can assure you that.
Denar
Profile Blog Joined March 2011
France1633 Posts
October 03 2011 07:05 GMT
#1628
On October 03 2011 11:33 Nanar wrote:
Does anyone have any links for Assembly Language programming? I'm a Comp Sci major and I'm completely and utterly lost in my Assembly Language class.


If you talk about x86 assembly, you can take a look here : http://www.cs.virginia.edu/~evans/cs216/guides/x86.html

There is not a lot of documentation about it even though some people still work mainly in assembly nowadays
NikonTC
Profile Joined September 2010
United Kingdom418 Posts
Last Edited: 2011-10-03 08:06:22
October 03 2011 08:05 GMT
#1629
Is anyone able to tell me about getting a job in the programming industry? I recently graduated from university with a degree that is computing related (digital media) but mostly on the creative/web side of things. I've since decided that I'd rather do something more programming related along the lines of Java, C#, SQL etc. My dissertation was a Java project that I chose to do because i wanted to learn a bit about OO programming, and I'm currently teaching myself C# from books, but I'm wondering if its possible to go to a company that has entry level coding positions and even get a look in without some sort of specific "I am a programmer" qualifications.
"IdrA crushes the marine push, absolutely demolishes this 2 rax play. Would not be suprised to see a GG from IdrA at any moment" Day[9]
Deleted User 101379
Profile Blog Joined August 2010
4849 Posts
October 03 2011 13:26 GMT
#1630
On October 03 2011 17:05 NikonTC wrote:
Is anyone able to tell me about getting a job in the programming industry? I recently graduated from university with a degree that is computing related (digital media) but mostly on the creative/web side of things. I've since decided that I'd rather do something more programming related along the lines of Java, C#, SQL etc. My dissertation was a Java project that I chose to do because i wanted to learn a bit about OO programming, and I'm currently teaching myself C# from books, but I'm wondering if its possible to go to a company that has entry level coding positions and even get a look in without some sort of specific "I am a programmer" qualifications.


It's hard to get a job as programmer without formal education as one and without job experience. I would suggest starting as web designer and then transition into programming from there.

Sadly, a lot of companies don't care about "I taught myself language X", probably because many who say that don't know more than the syntax and can't actually program anything more than hello worlds.

catamorphist
Profile Joined May 2010
United States297 Posts
October 03 2011 13:42 GMT
#1631
On October 03 2011 17:05 NikonTC wrote:
Is anyone able to tell me about getting a job in the programming industry? I recently graduated from university with a degree that is computing related (digital media) but mostly on the creative/web side of things. I've since decided that I'd rather do something more programming related along the lines of Java, C#, SQL etc. My dissertation was a Java project that I chose to do because i wanted to learn a bit about OO programming, and I'm currently teaching myself C# from books, but I'm wondering if its possible to go to a company that has entry level coding positions and even get a look in without some sort of specific "I am a programmer" qualifications.


The biggest "I am a programmer" qualification is a body of work that you can present. You should find a project you're interested in and work on it, preferably collaborating with others. As a dude who interviews people, the only thing more convincing than looking at good code you've written is looking at the commit history on the good code you've written.
http://us.battle.net/sc2/en/profile/281144/1/catamorphist/
EvanED
Profile Joined October 2009
United States111 Posts
Last Edited: 2011-10-03 14:29:00
October 03 2011 14:26 GMT
#1632
On October 03 2011 13:38 alwinuz wrote:
Show nested quote +
On October 03 2011 04:43 EvanED wrote:
The "abstract" part of "abstract queue" comes more from the fact that it doesn't specify how the implementation works, and isn't particularly related to the fact that the collection is parameterized. In other words, it's abstract because you don't know if it's implemented with an array, a linked list, or some other data structure. (That's not the whole story and it'd be possible to write a bit more about that -- in particular it doesn't say why it should be distinct from the Queue interface -- but that's the main bit.) In particular, the generics parameterization is basically unrelated.

And if it makes you think abstract class, that's good... because it is one, and that's also related to the name. :-)


Why an abstract class and not an interface?

They provide a partial implementation.

It might be easier to understand that by looking at AbstractCollection.If you have some new idea for a collection, you can extend AbstractCollection instead of implementing Collection and do way less work.

For full functionality, the only functions you need to write are add(E obj), iterator(), and size(). That's three functions instead of the 15 of the Collection interface.

The AbstractCollection will do things like provide contains(Object o) by calling iterator() and walking over the collection for you. You are, of course, free to override more of those methods if you have a better implementation.
NikonTC
Profile Joined September 2010
United Kingdom418 Posts
October 03 2011 16:55 GMT
#1633
On October 03 2011 22:26 Morfildur wrote:
Show nested quote +
On October 03 2011 17:05 NikonTC wrote:
Is anyone able to tell me about getting a job in the programming industry? I recently graduated from university with a degree that is computing related (digital media) but mostly on the creative/web side of things. I've since decided that I'd rather do something more programming related along the lines of Java, C#, SQL etc. My dissertation was a Java project that I chose to do because i wanted to learn a bit about OO programming, and I'm currently teaching myself C# from books, but I'm wondering if its possible to go to a company that has entry level coding positions and even get a look in without some sort of specific "I am a programmer" qualifications.


It's hard to get a job as programmer without formal education as one and without job experience. I would suggest starting as web designer and then transition into programming from there.

Sadly, a lot of companies don't care about "I taught myself language X", probably because many who say that don't know more than the syntax and can't actually program anything more than hello worlds.



That's disheartening. I was really hoping to avoid going into web design, partly because I didn't enjoy it and also partly because I just wasn't very good at it... I'm probably a better programmer now than I was a web designer (not saying much).

There's a project for the local church that my Dad was doing in his spare time. I was considering taking it off him and having a go at it, partly because it's a nice straightforward project that I can handle with my current C#/SQL knowledge, and partly because I was hoping it would count towards the "commercial experience" that companies are interested in. It would be unpaid, though, so I'm not sure if that counts against me.

Starting to get slightly worried about my job prospects however. I really don't know if there's a place for me in the IT industry right now, and god knows where else I'd go.
"IdrA crushes the marine push, absolutely demolishes this 2 rax play. Would not be suprised to see a GG from IdrA at any moment" Day[9]
Deleted User 101379
Profile Blog Joined August 2010
4849 Posts
October 03 2011 17:05 GMT
#1634
On October 04 2011 01:55 NikonTC wrote:
Show nested quote +
On October 03 2011 22:26 Morfildur wrote:
On October 03 2011 17:05 NikonTC wrote:
Is anyone able to tell me about getting a job in the programming industry? I recently graduated from university with a degree that is computing related (digital media) but mostly on the creative/web side of things. I've since decided that I'd rather do something more programming related along the lines of Java, C#, SQL etc. My dissertation was a Java project that I chose to do because i wanted to learn a bit about OO programming, and I'm currently teaching myself C# from books, but I'm wondering if its possible to go to a company that has entry level coding positions and even get a look in without some sort of specific "I am a programmer" qualifications.


It's hard to get a job as programmer without formal education as one and without job experience. I would suggest starting as web designer and then transition into programming from there.

Sadly, a lot of companies don't care about "I taught myself language X", probably because many who say that don't know more than the syntax and can't actually program anything more than hello worlds.



That's disheartening. I was really hoping to avoid going into web design, partly because I didn't enjoy it and also partly because I just wasn't very good at it... I'm probably a better programmer now than I was a web designer (not saying much).

There's a project for the local church that my Dad was doing in his spare time. I was considering taking it off him and having a go at it, partly because it's a nice straightforward project that I can handle with my current C#/SQL knowledge, and partly because I was hoping it would count towards the "commercial experience" that companies are interested in. It would be unpaid, though, so I'm not sure if that counts against me.

Starting to get slightly worried about my job prospects however. I really don't know if there's a place for me in the IT industry right now, and god knows where else I'd go.


Do it.
Every finished project you can put on your resume increases your chances to get a job as a programmer.

And just apply everywhere, you can always get lucky anyways.
heishe
Profile Blog Joined June 2009
Germany2284 Posts
October 03 2011 17:36 GMT
#1635
On October 03 2011 02:36 HowitZer wrote:
Show nested quote +
On October 02 2011 20:56 heishe wrote:
By the way, academic programming courses are usually pretty bad. The problem is that programming doesn't ever have general cases of problems which can be solved with general methods, ...


I'm content with the programming classes I took in college insofar as they prepared me for the real programming based job I have now. I think I've applied 75% of what I did in my programming classes to real world problems. It was never a problem in college to find a generic problem to apply some programming method to.



You kinda cut off the point of my statement. I know that you learn some things there that you'll need later, but I think nothing that you learn in one of those courses can't be picked up a lot quicker by reading a tutorial or a good book.

Or can you provide a counter example?
If you value your soul, never look into the eye of a horse. Your soul will forever be lost in the void of the horse.
Deleted User 101379
Profile Blog Joined August 2010
4849 Posts
October 03 2011 20:06 GMT
#1636
On October 04 2011 02:36 heishe wrote:
Show nested quote +
On October 03 2011 02:36 HowitZer wrote:
On October 02 2011 20:56 heishe wrote:
By the way, academic programming courses are usually pretty bad. The problem is that programming doesn't ever have general cases of problems which can be solved with general methods, ...


I'm content with the programming classes I took in college insofar as they prepared me for the real programming based job I have now. I think I've applied 75% of what I did in my programming classes to real world problems. It was never a problem in college to find a generic problem to apply some programming method to.



You kinda cut off the point of my statement. I know that you learn some things there that you'll need later, but I think nothing that you learn in one of those courses can't be picked up a lot quicker by reading a tutorial or a good book.

Or can you provide a counter example?


I agree with you, though the fact that 90% of the people that studied programming know less than me before i began my traineeship might distort my judgement.

I always say: Programmers are born - not made.

Either you program even long before you start to study it - which means you won't learn much in college/university - or you will be just another of those mediocre-at-best programmers that make me rage whenever i have to maintain their code -.-

+ Show Spoiler [True Fact:] +
95% of all programmers couldn't write maintainable code if their life depended on it

Thorakh
Profile Joined April 2011
Netherlands1788 Posts
October 03 2011 20:12 GMT
#1637
95% of all programmers couldn't write maintainable code if their life depended on it
I always hear people talking about this, but what do you exactly mean by that? Can you give any examples?
Black Gun
Profile Blog Joined July 2009
Germany4482 Posts
Last Edited: 2011-10-03 20:20:40
October 03 2011 20:20 GMT
#1638
just a little question by an almost complete noob, sorry if it doesnt fit in here:

is it possible to hand over functions as arguments to C (not C++ !) or fortran function calls?

im a statistician that is working in a field of research where estimating algorithms arent very developed yet, but speed plays a role. to achieve speed-ups, the core fitting routines of our estimating algorithms are often times written in C or fortran instead of the default language of our field (R, if anybody knows it... an interpreter languague, so its not the fastest thing possible...). now i found this really interesting algorithm that seems to be general purpose for the class of problems that i am doing research on. therefore, i consider implementing the core parts of it in C to make it faster - but i have no clue about C, i would have to leapfrog through it using source code of the C-calls from other R-functions to learn it on the fly.

the main obstacle however is that my general purpose C-function would have to use a "gradient" argument which is a user-specified function that depends on the concrete type of data. so what i want to do is to define a function in the toplevel code (R) and pass it on as an argument to the call to C. is something like that possible?
"What am I supposed to do against this?" - "Lose!" :-]
vyyye
Profile Joined July 2010
Sweden3917 Posts
October 03 2011 20:22 GMT
#1639
Slightly retarded question, but how do you navigate the Java API? I opened it a bunch of times, I'm met with a box with links and some stuff on the sidebar, but I have no idea how or where I should look for anything. Tried clicking about but not getting wiser.

I'm really new to programming as a whole, maybe that's why? Used a For Dummies book a bit which kept advising to look X up in the API and eh, not quite working out.
Denar
Profile Blog Joined March 2011
France1633 Posts
October 03 2011 20:25 GMT
#1640
On October 04 2011 05:20 Black Gun wrote:
just a little question by an almost complete noob, sorry if it doesnt fit in here:

is it possible to hand over functions as arguments to C (not C++ !) or fortran function calls?

im a statistician that is working in a field of research where estimating algorithms arent very developed yet, but speed plays a role. to achieve speed-ups, the core fitting routines of our estimating algorithms are often times written in C or fortran instead of the default language of our field (R, if anybody knows it... an interpreter languague, so its not the fastest thing possible...). now i found this really interesting algorithm that seems to be general purpose for the class of problems that i am doing research on. therefore, i consider implementing the core parts of it in C to make it faster - but i have no clue about C, i would have to leapfrog through it using source code of the C-calls from other R-functions to learn it on the fly.

the main obstacle however is that my general purpose C-function would have to use a "gradient" argument which is a user-specified function that depends on the concrete type of data. so what i want to do is to define a function in the toplevel code (R) and pass it on as an argument to the call to C. is something like that possible?


It is absolutely possible. You use a function pointer for this purpose, take a look here : http://www.newty.de/fpt/index.html
Prev 1 80 81 82 83 84 1032 Next
Please log in or register to reply.
Live Events Refresh
Next event in 1h 47m
[ Submit Event ]
Live Streams
Refresh
StarCraft 2
BRAT_OK 29
MindelVK 10
StarCraft: Brood War
Shuttle 3562
actioN 351
Bisu 224
Sharp 56
Mind 50
Bale 32
Killer 19
Noble 18
ZergMaN 11
Dota 2
The International162716
Gorgc9257
singsing2858
League of Legends
JimRising 601
Counter-Strike
shoxiejesuss516
Super Smash Bros
Mew2King54
Other Games
summit1g8654
Happy162
Sick145
amsayoshi29
Organizations
Other Games
gamesdonequick484
[ Show 11 non-featured ]
StarCraft 2
• AfreecaTV YouTube
• intothetv
• Kozan
• IndyKCrew
• Migwel
StarCraft: Brood War
• BSLYoutube
• STPLYoutube
• ZZZeroYoutube
Dota 2
• WagamamaTV23
League of Legends
• Lourlo1276
• Jankos909
Upcoming Events
Sparkling Tuna Cup
1h 47m
PiG Sty Festival
3h 47m
Solar vs Reynor
Serral vs Maru
OSC
7h 47m
Afreeca Starleague
1d 1h
hero vs ggaemo
Larva vs Mong
The Patches Monday
1d 7h
Afreeca Starleague
2 days
Soulkey vs PianO
JyJ vs sSak
GSL
2 days
PiGosaur Cup
2 days
Replay Cast
2 days
Afreeca Starleague
3 days
Mini vs Calm
Queen vs EffOrt
[ Show More ]
Replay Cast
3 days
The PondCast
4 days
IntoTheTV X SOOP
5 days
GSL
6 days
Replay Cast
6 days
Liquipedia Results

Completed

Escore Tournament S3: W8
CranK Gathers Season 4: BW vs SC2 Team League
Eternal Conflict S2 Finale

Ongoing

KCM Race Survival 2026 Season 3
K-JUNGMAN
ASL Season 22
Super Anchor Qualifying S3
CSL Season 22: Qualifier 1
RSL Revival: Season 6
PiG Sty Festival 8.0
META DYMY #4
Esports World Cup 2026
Esports World Cup 2026: LCQ
BLAST Bounty Summer 2026
BLAST Bounty Summer Qual
Stake Ranked Episode 3
XSE Pro League 2026
IEM Cologne Major 2026

Upcoming

CSL Season 22: Qualifier 2
CSL 2026 AUTUMN (S22)
Acropolis #5
Acropolis #5 - TRS
Blizzard Classic Cup 2026
Acropolis #5 - GSA
Acropolis #5 - GSB
HSC XXX
SC4ALL II: StarCraft II
Kung Fu Cup 2026 Grand Finals
RSL Offline Finals
Calamity Invitational
Big Dog Cup 2026 Div 1
IEM Beijing 2026
Stake Ranked Episode 5
PGL Masters Bucharest 2026
Thunderpick World Champ. '26
ESL Pro League Season 24
Stake Ranked Episode 4
1win Private Club #1
Logitech G Play Connect 2026
SL StarSeries Fall 2026
FISSURE Playground #3
BLAST Open Fall 2026
TLPD

1. ByuN
2. TY
3. Dark
4. Solar
5. Stats
6. Nerchio
7. sOs
8. soO
9. INnoVation
10. Elazer
1. Rain
2. Flash
3. EffOrt
4. Last
5. Bisu
6. Soulkey
7. Mini
8. Sharp
Sidebar Settings...

Advertising | Privacy Policy | Terms Of Use | Contact Us

Original banner artwork: Jim Warren
The contents of this webpage are copyright © 2026 TLnet. All Rights Reserved.