• Log InLog In
  • Register
Liquid`
Team Liquid Liquipedia
EST 10:07
CET 16:07
KST 00:07
  • 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
RSL Season 3 - RO16 Groups C & D Preview0RSL Season 3 - RO16 Groups A & B Preview2TL.net Map Contest #21: Winners12Intel X Team Liquid Seoul event: Showmatches and Meet the Pros10[ASL20] Finals Preview: Arrival13
Community News
[TLMC] Fall/Winter 2025 Ladder Map Rotation12Weekly Cups (Nov 3-9): Clem Conquers in Canada4SC: Evo Complete - Ranked Ladder OPEN ALPHA8StarCraft, SC2, HotS, WC3, Returning to Blizzcon!45$5,000+ WardiTV 2025 Championship7
StarCraft 2
General
Mech is the composition that needs teleportation t RotterdaM "Serral is the GOAT, and it's not close" RSL Season 3 - RO16 Groups C & D Preview [TLMC] Fall/Winter 2025 Ladder Map Rotation TL.net Map Contest #21: Winners
Tourneys
RSL Revival: Season 3 Sparkling Tuna Cup - Weekly Open Tournament Constellation Cup - Main Event - Stellar Fest Tenacious Turtle Tussle Master Swan Open (Global Bronze-Master 2)
Strategy
Custom Maps
Map Editor closed ?
External Content
Mutation # 499 Chilling Adaptation Mutation # 498 Wheel of Misfortune|Cradle of Death Mutation # 497 Battle Haredened Mutation # 496 Endless Infection
Brood War
General
FlaSh on: Biggest Problem With SnOw's Playstyle BW General Discussion What happened to TvZ on Retro? Brood War web app to calculate unit interactions [ASL20] Ask the mapmakers — Drop your questions
Tourneys
[Megathread] Daily Proleagues Small VOD Thread 2.0 [BSL21] RO32 Group D - Sunday 21:00 CET [BSL21] RO32 Group C - Saturday 21:00 CET
Strategy
PvZ map balance Current Meta Simple Questions, Simple Answers How to stay on top of macro?
Other Games
General Games
Path of Exile Stormgate/Frost Giant Megathread Nintendo Switch Thread Clair Obscur - Expedition 33 Beyond All Reason
Dota 2
Official 'what is Dota anymore' discussion
League of Legends
Heroes of the Storm
Simple Questions, Simple Answers Heroes of the Storm 2.0
Hearthstone
Deck construction bug Heroes of StarCraft mini-set
TL Mafia
TL Mafia Community Thread SPIRED by.ASL Mafia {211640}
Community
General
Things Aren’t Peaceful in Palestine US Politics Mega-thread Russo-Ukrainian War Thread Artificial Intelligence Thread Canadian Politics Mega-thread
Fan Clubs
White-Ra Fan Club The herO Fan Club!
Media & Entertainment
Movie Discussion! [Manga] One Piece Anime Discussion Thread Korean Music Discussion Series you have seen recently...
Sports
2024 - 2026 Football Thread Formula 1 Discussion NBA General Discussion MLB/Baseball 2023 TeamLiquid Health and Fitness Initiative For 2023
World Cup 2022
Tech Support
SC2 Client Relocalization [Change SC2 Language] Linksys AE2500 USB WIFI keeps disconnecting Computer Build, Upgrade & Buying Resource Thread
TL Community
The Automated Ban List
Blogs
Dyadica Gospel – a Pulp No…
Hildegard
Coffee x Performance in Espo…
TrAiDoS
Saturation point
Uldridge
DnB/metal remix FFO Mick Go…
ImbaTosS
Reality "theory" prov…
perfectspheres
Customize Sidebar...

Website Feedback

Closed Threads



Active: 2286 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
Hyrule19152 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 54m
[ Submit Event ]
Live Streams
Refresh
StarCraft 2
SteadfastSC 350
TKL 341
Reynor 49
mcanning 46
StarCraft: Brood War
Britney 32905
Rain 4173
actioN 1647
Horang2 1446
Jaedong 1184
Shuttle 522
Stork 472
EffOrt 303
firebathero 261
Leta 114
[ Show more ]
Barracks 105
Shinee 97
ggaemo 96
Hyun 80
PianO 66
LaStScan 65
JYJ49
Shine 49
Mong 31
Rock 25
Movie 24
ToSsGirL 22
Bale 20
zelot 15
HiyA 10
soO 10
sorry 8
Sacsri 7
Dota 2
Gorgc5504
qojqva1773
Dendi1127
XcaliburYe145
LuMiX0
Counter-Strike
oskar115
Heroes of the Storm
Khaldor136
Other Games
B2W.Neo1782
DeMusliM470
Hui .333
Lowko306
Pyrionflax240
Fuzer 206
febbydoto6
Organizations
Dota 2
PGL Dota 2 - Main Stream8720
PGL Dota 2 - Secondary Stream3341
Other Games
EGCTV119
StarCraft 2
Blizzard YouTube
StarCraft: Brood War
BSLTrovo
sctven
[ Show 17 non-featured ]
StarCraft 2
• Berry_CruncH154
• StrangeGG 72
• IndyKCrew
• AfreecaTV YouTube
• intothetv
• Kozan
• sooper7s
• LaughNgamezSOOP
• Migwel
StarCraft: Brood War
• Michael_bg 3
• STPLYoutube
• ZZZeroYoutube
• BSLYoutube
Dota 2
• C_a_k_e 2112
• Ler59
League of Legends
• Nemesis2754
Other Games
• WagamamaTV236
Upcoming Events
IPSL
1h 54m
ZZZero vs rasowy
Napoleon vs KameZerg
OSC
3h 54m
BSL 21
4h 54m
Tarson vs Julia
Doodle vs OldBoy
eOnzErG vs WolFix
StRyKeR vs Aeternum
Sparkling Tuna Cup
18h 54m
RSL Revival
18h 54m
Reynor vs sOs
Maru vs Ryung
Kung Fu Cup
20h 54m
Cure vs herO
Reynor vs TBD
WardiTV Korean Royale
20h 54m
BSL 21
1d 4h
JDConan vs Semih
Dragon vs Dienmax
Tech vs NewOcean
TerrOr vs Artosis
IPSL
1d 4h
Dewalt vs WolFix
eOnzErG vs Bonyth
Replay Cast
1d 7h
[ Show More ]
Wardi Open
1d 20h
Monday Night Weeklies
2 days
WardiTV Korean Royale
2 days
BSL: GosuLeague
3 days
The PondCast
3 days
Replay Cast
4 days
RSL Revival
4 days
BSL: GosuLeague
5 days
RSL Revival
5 days
WardiTV Korean Royale
5 days
RSL Revival
6 days
WardiTV Korean Royale
6 days
Liquipedia Results

Completed

Proleague 2025-11-14
Stellar Fest: Constellation Cup
Eternal Conflict S1

Ongoing

C-Race Season 1
IPSL Winter 2025-26
KCM Race Survival 2025 Season 4
SOOP Univ League 2025
YSL S2
BSL Season 21
CSCL: Masked Kings S3
SLON Tour Season 2
RSL Revival: Season 3
META Madness #9
BLAST Rivals Fall 2025
IEM Chengdu 2025
PGL Masters Bucharest 2025
Thunderpick World Champ.
CS Asia Championships 2025
ESL Pro League S22
StarSeries Fall 2025
FISSURE Playground #2
BLAST Open Fall 2025

Upcoming

BSL 21 Non-Korean Championship
Acropolis #4
IPSL Spring 2026
HSC XXVIII
RSL Offline Finals
WardiTV 2025
IEM Kraków 2026
BLAST Bounty Winter 2026
BLAST Bounty Winter 2026: Closed Qualifier
eXTREMESLAND 2025
ESL Impact League Season 8
SL Budapest Major 2025
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 © 2025 TLnet. All Rights Reserved.