Join devRant
Do all the things like
++ or -- rants, post your own rants, comment on others' rants and build your customized dev avatar
Sign Up
Pipeless API
From the creators of devRant, Pipeless lets you power real-time personalized recommendations and activity feeds using a simple API
Learn More
Search - "#tree"
-
Programming in a tree. I usually climb up here and read, but I decided to code, and I didn't drop my laptop :D
I covered the screen with my hand because my code's ugly, and I don't want anyone to see it lol.144 -
Wife: what are you thinking about?
Me: how to optimize key storage in a binary tree
Wife: forget that I asked5 -
Yo mama's so fat that if she sat on a binary tree she will convert it into a linked list in O(1) time5
-
Only in computer science you'll find that root is on the top of the tree and that parent may kill it's child after its function is no longer needed.4
-
Give me six hours to chop down a tree and I'll spend the first twelve sharpening the axe. —A programmer.6
-
I was in school and I got bored. I opened two command prompts and did what any scammer would do.
I went to the root of the drive and did a tree. The other window is pinging google infinitely.
After a few seconds, I hear a kid say "Are you hacking the pentagon?". That guy also asked me to hack the Google Play Store. He shall forever think I'm a hacker.35 -
I'm at Disney world and the Windows OS was exposed on one of the machines at a ride so pulled up CMD and ran "tree C:/" then played sample music on full blast. Get on my level hackers :^)10
-
Before you're hired:
1. A binary tree?
2. Currying?
3. Higher-order function?
4. How does event loop work?
5. What is prototype?
6. What is encapsulation?
7. Can you draw an algorithm?
After you're hired:
1. Hey, can you add auth token and login to our app?11 -
Researching to making a small 2D game using constructor classes and while building out classes, was working on my Tree method using fractal geometry and made a wallpaper out of the tree 🌳12
-
So I was with my friends on the subway and we were talking about an assigment we have due this week with trees in Java. I got to say, the face on the old ladie next to us when we said "we must kill all the children left in the tree" was just epic! She must thought we were talking about beating some little kids or something... 😅3
-
No one dare deploy anything the week before Christmas - no fucking way I'm writing a hotfix under the Christmas tree again this year
-
Update on this: https://devrant.com/rants/1641198/...
I was a little tired but made updated and currently getting a more natural looking tree.26 -
My try at the fractal tree :) This sort of simple graphical code is very quickly satisfying, gonna try to add some wind next21
-
I'm a fucking finance girl. FINANCE. GIRL. Why the fuck am I spending all morning importing databases??
I'll tell you why.. "you are married to a dev. You must have picked something up." Fuck this. Fuck fuck fuck fuck. (no it's not working for the fuck of it, and whoever wrote this program deserves to be hanged by his balls from a tree)24 -
So I hear Christmas is coming, right? Here's a christmas tree for you!
P.S. this is the real thing. It's a Java project we have to work with... For Christ's sake! The guy who wrote this has recently left the company and handed this code to us as his legacy.
fuck.16 -
Seriously amazing how some people just contribute that much to open source:
https://www.npmjs.com/~sindresorhus
https://patreon.com/sindresorhus/
"I actively maintain 1100+ npm packages (1 billion downloads a month) and many popular projects. You're probably depending on some of my packages in your dependency tree. For example, Webpack relies on 77 of my packages."11 -
To all IT-guys out there, be it the desperate sysadmin or the kind lady of the support team, I whish all of you and your family/friends a merry christmas! 😃4
-
Wow, my girlfriend has been really efficient wrapping and organising the presents under the tree... You could say she’s a Swift Package Manager!!3
-
Open source block chain neural network binary tree growth hacker synergy vertically integrating cryptocurrency game changing GDPR compliant internet of things node.js quantum computing start up that'll disrupt and pivot the cloud based ecosystem11
-
At school in computer class,
Me: (to friend who gets excited from "hacking") Hey look im gonna hack!
Friend: *Turns to watch*
Me: *Does "color a" and "tree"*
Friend: Wow.
Me: *Writes a quick Matrix.bat and opens it*
Friend: Woah guys look he is hacking!!
Me: *Sits there awkwardly*5 -
Come to a festival they said.. .. It'll be fun they said.. Here I'm ranting and reading machine learning algorithms under a tree, while others party. Omg.7
-
You know your codebase is large when you expand your project tree and it's larger than a literal tree.4
-
about one and a half years ago I wrote my first application ^-^
it generates a little christmas tree with lights on the CLI.
and I still feel the same joy as back then when something actually works out :)8 -
I think my kids would be bullied at school when they proudly say that roots of a tree are at the top.1
-
Because blockchain is a merkle tree-like data structure that isn’t synonymous with a cryptocoin. I feel like blockchain fell into that buzz word pit, with machine learning, that execs use to try sound innovative and smart in front of superiors.6
-
You are asked by airport security to balance this binary tree to prove you're a programmer. How fucked are you?12
-
writing an assembler for my compiler, Manticore.
Currently working on writing a hand written parser and parse tree node system.7 -
People points at something on my monitor: My nuts climb the tree to hide
People points at something on my monitOR BY FUCKING TOUCHING IT: My day is ruined and my disappointment is immeasurable. And fuck you.
Official statistics say that people who touches a monitors screen while im nearby, lives significantly shorter time than people who dont.16 -
That is peak security:
- Require timebased OTP for login
- Also require recaptcha for login
- Select the frickin bus, palm tree and cross walk 93 times
- Finally manage to please the algorithm
- The 30 second validity window of TOTP expired
*GAAH!*18 -
Hey folks, I've just launched the https://okso.app - it is a drawing app that you may use to express, grasp, and organize your thoughts and ideas.
One key feature there is that you may organize your drawings/sketches into a hierarchical tree structure so that a large amount of data would be more manageable and less overwhelming.
I hope you find this app useful!10 -
*The interview wasn't off to a good start, as the recruiter forgot he invited me for an interview, so he just led me to some empty office after letting me wait for good 15 minutes. *
Them: Here, write some pseudocode to find a value in a tree.
Me (thinking): Interesting question; DFS / BFS would be really simple here, but nobody uses trees for that - perhaps I should ask about characteristics of the tree in question?
But before I realised, the interviewer already rushed out the office, so I just picked up my jacket and left... -
Now I get it, I did before, but this helps.
https://github.com/corkami/docs/...
I still don’t know how to go from my function to O however.4 -
When you chop down a tree it does not magically levitate because you misconfigured the chainsaw.
Lumberjack or carpenter would be a good life for me. Just being able to do something with physical consequences.5 -
Do you wanna build a Program?
Come on it can be in C
Doesn't compile anymore
bugs to report
Perhaps a parsing tree
We used to be peer buddies
And now we're not
I wish you would tell me why!-
Do you wanna build a Program?
It doesn't have to be in C.
Stackoverflow, Anna
Okay, bye2 -
Hmm our bundle js is already 1.35Mb maybe I should do something with that.
... Insert 2 hours of frantic webpack magic + babel-preset tweeking, tree-shake code optimization ...
- npm run build
- bundle.js => 1.37Mb
Great Success! I'm going to take a lunch...4 -
This tree I saw when I jog around the neighborhood..... Feels like this tree is a portal to somewhere.5
-
When the university finds out you're a pentester:
Usual underclassmen: Can you hack my bf/gf? I think they're cheating on me.
Delusional underclassmen who think they know everything: I can hack too! Who's your master? I learned how from master jimmy *runs a batch script that has "tree" on loop. See? What batch script do YOU have?"
The IT teachers: can you show us how a payload works?4 -
I today have seen lovers'name carved into a tree. I don't think it's cute. I just think it's strange how many people take knives on a date10
-
these are the kinds of commits i have to deal with :|
like "it's already past 5 o'clock! i have to leave!"7 -
Today, implemented Binary Tree from scratch and then wrote a unit testing suite from scratch in my personal project.
Pretty neat.7 -
Computer Scientists put the root at the top of their trees because they've never been outside to see what a real tree looks like3
-
Every side of my window is filled with pine-tree and the beautiful vision of snow. But I have to struggle with Jax-RS in weblogic instead of snowball.9
-
When you're asked to extend a functionality on a piece of code and the 2.5k lines in the view are a juicy mix of PHP, HTML, CSS, JavaScript and the functionality relying on jQuery trasversing through the document tree and expecting things to be in their place. Oh did I mention html build with strings in JS? I'm going to love this day! WHY, JUST WHY?! *gasp*3
-
Tells my non-programming friend that it's way more complex to program an A.I. that simply distinguishes a tree, than to make a program that adds up for like, a billion numbers...
SHE DOESN'T BELIEVE ME.2 -
Me(To a tree): Hey tree, You have leaves but you can't go anywhere. I can go anywhere but I don't have any leaves.4
-
After having to use Git and Bitbucket for over 2 semestres, my teachers decided to give us a Git tutorial where the whole class had to work in the same class. This was the result.10
-
!rant
Snow may be around
There may be no sound
Except for the quiet hum
Of a devs system
While you want to stay up and code
Don't forget to decorate your abode
For it's that time of year to put up the tree
And surround yourself with family4 -
I'm studying Software Engineering. Fuck me, right?
Next week I have 3 exams, and I have to deliver the implementation of a Red&Black Tree and a AVL Tree (+ GUI in Swing) by Wednesday. Oh, and also, 5 small systems in C.
I don't know how the FUCK will I survive, but I will.21 -
Just arrived at the vacation home, turns out the "free" wifi is dead as hell, because quote; "a tree fell on a wire"
Which first of all that is fucking bs because they have internet at the reception still so that shouldn't work either right? But okay we now live without internet for the coming 3 days we are relying on our data plan....5 -
In PHP (yes, it's a language I... don't hate) I've always hated exceptions. They're like GOTO, in an OOP world with interfaces and contracts, try/catch is really odd as it breaks a promise about returning with a typed value.
But you can now do this in PHP8, which comes pretty close to Maybe/Either monads (Option, Result whatever it's called in other languages):
function getUser(): User | UserNotFound
PHP8 unions don't come with the same strong guarantees as in other languages but *pets PHP gently on the head* you did well, my boy.
Now I would really love it if PHP9 could do:
function getUsers(): Collection<User>
Type Tree<T> = Null | Node<T>;
function 🎄(): Tree<Branch<Ornament|Light|null>>15 -
Finished our Christmas tree at work today. Featuring Zip ties, faulty burned blu rays, an old keyboard, a led stripe, cut IDE Cables and a 10m cat 5e cable and the holy Debian as topping
Sadly I cant capture all of its beauty in a single picture
I call him the GeekTree5 -
has anyone seen Google's AI face-tree nightmare generator? (a joke from another thread)
They need to be stopped!12 -
Tired after a long day at work. Let me shuffle some music in spotify:
"I don't want a lot for Christmas..."
Next
"Underneath the Christmas tree..."
Next
"All I want for Christmas is you..."
Next
"Love and understanding,
Merry Christmas everyone..."
*sigh*2 -
When I was about 13, I opened up command prompt on Windows, and changed the color of it to green then ran the tree command. So, not thinking of anything, this was in the library in front of about 60 people and 2 teachers.
All others saw was green text going down fast, and instantly presumed that I was hacking since they knew I was into coding and finding exploits, and just knew how to use a computer better than them in simple terms (HACKER MAN). Thus this lead to me getting sent to the principal's office... I almost got suspended cause I ran the tree command in green.
Two questions for me remain unanswered, that I would love to know. What would've happened if command prompt was printing text in red. Another question becomes, what would've happened if people saw me pinging Google or some popular site.4 -
This tree was the loneliest tree on Earth. The next tree was 400 kilometres away.
In 1973, it was knocked down by a truck driver.4 -
on the first day of christmas my PM send to me
There's a bug in your B-tree
on the second day of christmas my PM send to me
two threads deadlocked
and a bug in your B-tree
On the third day of christmas my PM send to me
Three servers crashing
two threads deadlockd
and a bug in my B-Tree
on the Fourth day of Christmas my PM send to me
Four clients angry
Three servers crashing
two threads deadlocked
and a bug in my B-tree
on the Fith day of Christmas my PM send to me
Five SCRUM meetings
Four clients angry
Three servers crashing
two threads deadlocked
and a bug in my B-tree
On the sixth day of Christmas my PM send to me
Six deadlines waiting
Five SCRUM meetings
Four clients angry
Three servers crashing
two threads deadlocked
and a bug in my B-tree
on the Seventh day of Christmas my PM send to me
Seven machines learning
Six deadlines waiting
Five SCRUM meetings
Four clients angry
Three servers crashing
two threads deadlocked
and a bug in my B-tree
on the Eighth day of Christmas my PM send to me
Eight repos compiling
Seven machines learning
Six deadlines waiting
Five SCRUM meetings
Four clients angry
Three servers crashing
two threads deadlocked
and a bug in my B-tree
on the Ninth day of Christmas my PM send to me
Nine interns asking
Eight repos compiling
Seven machines learning
Six deadlines waiting
Five SCRUM meetings
Four clients angry
Three servers crashing
two threads deadlocked
and a bug in my B-tree
on the Tenth day of Christmas my PM send to me
Ten Features requested
Nine interns asking
Eight repos compiling
Seven machines learning
Six deadlines waiting
Five SCRUM meetings
Four clients angry
Three servers crashing
two threads deadlocked
and a bug in my B-tree
on the Eleventh day of Christmas my PM send to me
Eleven products deploying
Ten Features requested
Nine interns asking
Eight repos compiling
Seven machines learning
Six deadlines waiting
Five SCRUM meetings
Four clients angry
Three servers crashing
two threads deadlocked
and a bug in my B-tree
on the Twelve day of Christmas my PM send to me
Twelve DBs updating
Eleven products deploying
Ten Features requested
Nine interns asking
Eight repos compiling
Seven machines learning
Six deadlines waiting
Five SCRUM meetings
Four clients angry
Three servers crashing
two threads deadlocked
and a bug in my B-tree3 -
Brilliant idea time:
Inspired by @TrojanMorse and his fractal trees
A fractal tree wallpaper that grows throughout the day.
So at 12 a script starts a new fractal and only uses depth 1 (a twig). Then every other hour it branches once more so at 2 am the fractal would have depth 2 and at noon it would have depth 7. That way you get a tree growing throughout the day for your screensaver. Now to make this a thing13 -
Buckle up, it's a long one.
Let me tell you why "Tree Shaking" is stupidity incarnate and why Rich Harris needs to stop talking about things he doesn't understand.
For reference, this is a direct response to the 2015 article here: https://medium.com/@Rich_Harris/...
"Tree shaking", as Rich puts it, is NOT dead code removal apparently, but instead only picking the parts that are actually used.
However, Rich has never heard of a C compiler, apparently. In C (or any systems language with basic optimizations), public (visible) members exposed to library consumers must have that code available to them, obviously. However, all of the other cruft that you don't actually use is removed - hence, dead code removal.
How does the compiler do that? Well, it does what Rich calls "tree shaking" by evaluating all of the pieces of code that are used by any codepaths used by any of the exported symbols, not just the "main module" (which doesn't exist in systems libraries).
It's the SAME FUCKING THING, he's just not researched enough to fully fucking understand that. But sure, tell me how the javascript community apparently invented something ELSE that you REALLY just repackaged and made more bloated/downright wrong (React Hooks, webpack, WebAssembly, etc.)
Speaking of Javascript, "tree shaking" is impossible to do with any degree of confidence, unlike statically typed/well defined languages. This is because you can create artificial references to values at runtime using string functions - which means, with the right input, almost anything can be run depending on the input.
How do you figure out what can and can't be? You can't! Since there is a runtime-based codepath and decision tree, you run into properties of Turing's halting problem, which cannot be solved completely.
With stricter languages such as C (which is where "dead code removal" is used quite aggressively), you can make very strong assertions at compile time about the usage of code. This is simply how C is still thousands of times faster than Javascript.
So no, Rich Harris, dead code removal is not "silly". Your entire premise about "live code inclusion" is technical jargon and buzzwordy drivel. Empty words at best.
This sort of shit is annoying and only feeds into this cycle of the web community not being Special enough and having to reinvent every single fucking facet of operating systems in your shitty bloated spyware-like browser and brand it with flashy Matrix-esque imagery and prose.
Fuck all of it.20 -
Could do with some dev input here.
Going to rename most of my projects before I start them up again just for some consistency amongst everything so...
Because I name my projects internally as a different tree for each milestone (1.0 is maple, 2.,0 is pine etc) I'm going to have my other stuff follow a tree related naming scheme, first up is my game engine/framework...
It's currently called the 'Mod Engine' but I have 3 idea's and want to know people opinions
- Woodsman Engine
- Lumberjack Engine
- Lumber Engine
Which is best do you think or can anyone think of any better ideas? :-320 -
Hey! First post on rant by saying merry Xmass!
This is my Christmas tree made from JavaScript ! I can change the height of the foliage and the wood part follow !
For those like me who live in a country where you only have the cold but not the snow 😅❄️11 -
If a tree falls over in the woods..
And important dev work gets done and shipped,
And it's not in JIRA.. did it even really happen..5 -
Source tree opened
Finds new option 'cherry pick'
Wtf is this
Clicks on it
Wooow, there goes my master branch again4 -
so today we used putty and coded the exercise within the university's server. i wanted to use "tree" to see all the files better cause thats what i normally use. turns out i had to install it.
i type in "sudo apt-install tree"
screen: no root priviledges. <university_login> is not included in root.txt. this will be reported immediately.
i forgot i needed root priviledges smh i just wanted to see my files better XD7 -
The hammer dev. See a problem, they grab a hammer. See a screw? Hammer. Complex social issue? You bet your binary tree it's getting hammered.2
-
Software engineers: "Maths is hard and scary!"
Also software engineers: "I've learnt to write a balanced binary search tree in c++ as interview prep!"
Mathematicians: "Have you guys heard of an AVL tree?"20 -
Anyone else prefer working with git visually (i.e. Source Tree) rather than on CLI? I like seeing what's going on easily26
-
The moment you go to a random Windows computer and type:
color 0a
tree /
in cmd and say:
„I‘m hacking into the Matrix“
and everyone around you is just like
„ooooooooooooouuuuh“ -
Why name Tree a Tree when it's really Root if you look at it with head up ?
(Tree Data Structure)
We're really taught to look at the world upside down1 -
Anyone else have trouble with real life common sense?
Story time:
Yesterday Evening a dog chased my best mate's cat up a tree. Being the genius I am, I decided to climb after the adorable bugger. Fell from about 8-10ft onto concrete slabs on my back.
Main thing first: I got lucky, CTs and X-rays showed no lasting damage. I'm back home and safe now.
What got me was going through the hospital having to hear the story of how I fell out of a tree onto my back and head like an idiot... from medical person to medical person.
I was lying in the bed, thinking "I swear I'm competent!? Why do people trust me!?"
Does anyone else have any weird skill black spots, or common sense break downs?7 -
Want to bundle your files: Node.
Want to minify your scripts: Node.
Want to tree shake your code: Node.
FUUUUUCK OOOOOOOOOOOOOFF I DON'T WANT NODE14 -
To paraphrase Paul Graham:
Arguing that Vue is better than React is like arguing that grasshoppers taste better than tree bark.11 -
Just thought I'd share what I've been working on lately.
Heap: https://repl.it/@AmyShackles/Heap/...
Array: https://repl.it/@AmyShackles/...
Binary Tree: https://repl.it/@AmyShackles/...
(I'm so freaking tired.)6 -
So during a test I was to write an algo of binary search tree traversal and I got a zero....Why? Cause I wrote a recursive algorithm and also because I wrote "English" instead of pseudocode, which she thought is called algorithm and on showing her the exact same recursive Algo on various websites and books, she just declared all of them wrong1
-
Random citation by p100sch (https://devrant.com/users/p100sch)
today while playing Minecraft:
"That moment when your family tree software throws recursion errors..."3 -
On the -2nd day of Christmas, my true love gave to me
offfffline servers,
NO notifications,
one, lousy fucking dayyyyyy
(... on the first day back to workkkkkkk..innnggg...)
Database corrup-ted,
users' fucking pissed....
and a partridge in a pear tree!
$merryXmas[-1]2 -
"Give me six hours to chop down a tree and I will spend the first four sharpening the axe." - Abraham Lincoln
-
Interviewer: so why should we hirer you?
Me: I think the real question is: how much will you pay me if I can make "Hello World!" pop up on the console?4 -
🎶Lemon Tree🎶
I wonder why,
I wonder how,
This stupid piece of code actually works right now.
And all that I could see, it's actually compiling...
(Happens all the time)1 -
! Rant
To any games programmers here (I feel so lonely surrounded by these Web devs)
If I tree falls in a scene with no audio listeners does it still make a sound...4 -
Freelancer/coworker: "Why don't you just use source tree instead of git in the command line?"... me: *face palm*3
-
Playing with tree like structures today. Had to write a function where a node produces a new node containing data from both self and parent.
The moment when you realise you've just coded incest...1 -
The park, under a tree. Preferably beside a lake or stream.
There can be people present, so long as they’re not too loud and don’t ask what I’m doing, hit on me, or try to chitchat.6 -
Written coding test, first question :
Form the minimum spanning tree of the given graph using Kruskals algorithm.
Plot twist : No weights given. Assume unweighted graph4 -
So I wanted to get back to some hobby projects and C# so built my own DevRant GUI.
I am curious though what other devs think.
TBH, I've never had anyone give me a code review and not sure how of a developer I am...
https://github.com/allanx2000/...
https://github.com/allanx2000/...9 -
"Great ideas can be found in every leaf, in every tree, in every blade of grass. Oh, no, wait… I was thinking of chlorophyll." - Jim Olen1
-
On the first day of Christmas
My true love gave to me
A drunk who drove into a tree
On the second day of Christmas
My true love gave to me
Two shattered skulls
And a drunk who drove into a tree....
Twelve beaten children
Eleven drive-by shootings
Ten frozen homeless
Nine amputations
Eight burn victims
Seven strangled shoppers
Six random knifings
Five suicides
Four beaten wives
Three O.D.'s
Two shattered skulls
And a drunk who drove into a tree6 -
It's nearly May. I am therefore going to start referring to apples as "tree potatoes" whenever possible.6
-
Unifi switches are so fucking bad.
For the third of fifth time it activated spanning tree by itself, causing alot of shit to go down.
It is only a expensive shelf from now on, fucking crap11 -
React devtools in Firefox is such a pile of shit! It's slow, it hangs when selecting and it doesn't fucking show the whole component tree when it's too deep. I'm forced to switch to Chrome when I need to debug.
Anyone here has problems with it too?4 -
Code monkey see bad code.
Code monkey don’t say anything.
Nobody ask code monkey.
Linter see bad code too.
Nobody pay attention to linter.
Code monkey get more bananas on Thursday.
Code monkey grateful for bananas.
Maybe one day, code monkey make banana tree.1 -
Share your look-busy scripts
I'm talking about some script, or command(s) which output impressive garbage to the screen. For instance, `tree / | od` or `ping google.ca | xxd` might be enough to dazzle an executive, but to really ensnare a fellow dev, you need to get a bit more complex.
So let's see those scripts! From stupid simple, to application-level complex, I wanna see 'em all! :D11 -
Let it snow! let it snow! Let it snow! A christmas tree made only with css. Codepen: https://codepen.io/flavio_amaral/...5
-
Fucking shitstorm wave 2 came along and fucked my backyard of the house the whole fucking tree collapsed inches away from my fucking house i almost lost my fucking home WHY IS LIFE THIS MUCH TRASHH7
-
!rant
In relation to https://devrant.com/rants/1643249/...
The tree has started!
The lovely pycairo package was super easy to pick up, and I made a rather shitty looking fractal tree with it!
Next step is to figure out a color scheme I like, and to make the tree look more natural/better.
It's happening guys3 -
Christmas Day and the Nintendo server is slow .... hmmm , I wonder what everybody unwrapped under the tree!
-
@wowotek : "I am not person who like to mumble"
--3 Hours Later found an Unhandled Exception in 17th layer of his decision tree--
Also @wowotek : "^[a-zA-Z]*!!!!!!!$"
He work beside me, never tired of this, but a bit annoying sometimes2 -
The saddest and funniest side of our industry is (atleast in India): someone works hard and makes it to the best colleges, do great projects on AI, ML; get a good score on Leetcode, codechef; gets a job in FAANG-like companies...
Changes colors in CSS and texts in HTML.
And, why is there so much emphasis on Data Structures and Algorithms? I mean, a little bit is fine, but why get obsessed with it when you never write algorithms in production code?
Now, don't tell me that, we use libraries and we should know what we are doing, no, we don't use algorithms even in libraries.
Now, before you tell me that MySQL uses B-tree for maintaining indexes, you really don't need to solve tricky questions to be able to understand how a B-tree works.
It's just absurd.
I know how to little bit on how design scalable systems.
I know how to write good code that is both modular and extensible.
I know how to mentor interns and turn them into employees.
I know how to mentor junior engineers (freshers) and help them get started.
Heck I can even invert a binary tree.
But some FAANG company would reject me because I cannot solve a very tricky dynamic programming question.4 -
I don't think "main" is the best replacement for "master" on GitHub, I mean Git already uses branches so why not continue with the whole tree analogy and call it the "root" branch?15
-
!dev
Man, fuck pollen
Tree pollen just exploded where I live. That means I'm gonna be miserable for the next few weeks. I'm talking runny nose, itchy eyes, head fog, the whole 9 yards.
Wish me luck and bring me antihistamines4 -
"Everyone is a genius. But if you judge a fish by its ability to climb a tree, it will live its whole life believing that it is stupid."
This is good to remember this one once in a while...3 -
Found in kernel/sched.c in Linux 1.2:
The "confuse_gcc" goto is used only to get better assembly code..
Dijkstra probably hates me.
https://git.kernel.org/pub/scm/...3 -
If you asked me two months ago I'd have said building and using a Barnes Hut tree with CUDA.
Today my answer is working on a fuzzer with LLVM without knowing shit about either C++ and compilers. -
This is the kind of shit that I don't want to write.
The kind of shit that should be in an STL so I never have to include it in a project.
Because it doesn't belong in a project.
And it doesn't belong in a dependency tree either.
It belongs in a language. -
worked for two month on a automatic sms system.
today boss says: ''yeah we dont need that''
... im just gonna find the nearest tree and hang my self.9 -
I am wondering how a #FunctionalProgramming based implementation of a Binary Search Tree would look like?
Has anyone tried it?11 -
I'm writing a ML course that explains concepts by going through/getting the reader to write simple implementations of concepts. I've written a decision tree in 250 lines of code (including plotting it), that is 100 times faster than another (hilariously bad) attempt at a simple decision tree, and it's far more readable than anything else I've seen.
I'm having a good day.6 -
Spent like 5 hours today installing, configuring, and playing with phpstorm. first time I've used a real ide type program and wow, I replaced 5 programs with this I would use at the same time.
filezilla (ftp), rapidphp (code), mysql workbench, cmd prompt (node, gulp, sass), and source tree (git)6 -
Redux is weird, and I don't like it because it violates the most basic principles of responsibility. The concept of expressing state changes as reducers is nice because it can be duplicated, saved and restored and compared for equality. So is creating isolated accessors and selectors. However, I really don't think a reducer should be aware of its own position in the hierarchy. When specifying an action you aren't addressing a reducer, you're addressing the tree. That the tree doesn't manage this addressing and expects reducers to identify themselves is a bit strange, especially considering that the whole point of having a tree is that reducers shouldn't be affected by their position in that tree because they're pure. Same goes for selectors, they should belong to the tree, not to any particular sub-reducer. Separating the slices is reasonable structure, but if you specify parts of the addressing in the slice and parts of it in the root you might as well just use separate reducers for each of your slices. It's functionally equivalent.12
-
I fucking hate it when big companies release a video with the new tech they developed and they jerk off about the great discovery they made in video format.
I mean, they usually are great discoveries but the "verborragia" (a spanish portmanteau between verb and haemorrhage) is unsufferable.
I'm feeling this way specifically about the microsoft videos. "Just get to the goddamn fucking point. What did you fucking develop exactly?"
They usually go like this:
(Play sad reverbed piano)
Trees are life. Have you ever been a tree? Everyday thousands of trees are being torn apart from their daddy trees. When a tree is removed to be processed into paper, dozens of pretty little dwarves go homeless.
That's why at Microdick we are working on one of the most trascendental advancements of the 21st century.
We are working really hard to take into account every aspect of environmentability to bring humanity closer to what it is to feel like a tree.
We are pushing forward what it means to be a tech company today and we are finding new creative ways to inflate our ego, as a way to pretend we're not dying like the rest of normal human beings.4 -
postman is the biggest dogshit ive ever seen. FUCKING DO SOMETHING.
how do people wait FOR MINUTES until a piece of the file tree unfolds?!?!
the ui is so fucking irresponsive and slow. it is such a painfull experience8 -
Confession: Sometimes when I need a minute break and someone is looking at my screen I run 'tree /'1
-
For those of you who can't wait for the next book of GoT to come out, I suggest you read the first few chapters that were generated by a neural network.
https://github.com/zackthoutt/...1 -
So my data structure's exam's result came and i got scored 57.5 out of 80. My classmates who barely know anything about C scored way more than me. I am so embarrassed at myself but i gave the right answers in exam. My score in the exams before was 39/40 and 38.5/40. All my hardwork failed because it was a so called THEORY exam where there was only 2 small questions of writing algos but all others were just like "describe pre-order traversal of a binary tree" or "write the difference between a tree and a graph?define adjacent node, path and complete graph"...
When will this fuckery end?2 -
Googling how to electromagnetically shield a espruino project from neodymium magnets over lunch, and that leads on a trail of manipulating and directing em fields...
"What are you doing? That doesn't look anything like a binary tree structure in Java... What the hell is all that?"
"Uhm... Personal research?" -
Decent family tree software that's capable of sanely organising photos, letters etc.
I'm sure none actually exists, web based or otherwise.2 -
Anyone else here love staring at the commit train railways? It's pretty 😍
pic related: not so complicated as we are a team of two working on different branches.3 -
Merry Grav-Mass!
So I saw many „Merry Christmas“ posts here lately.
But many of you may have forgotten that 25th of December is the birthday of the greatest physician and mathematician of all time — Isaac Newton! So let's celebrate the existence of comprehensible physical laws!
One way to celebrate Grav-Mass is to decorate a tree with apples and other fruits. Glue them or attach them, but not too well! The idea is that occasionally a fruit should fall. Put them on the tree no more than 2 feet up, so that they won't get damaged or hurt anybody when they fall. Investigating and perfecting the methods for doing this is a great way expose a child to the process of scientifically studying the behavior of the physical world.
Merry Grav-Mass and happy New Year! 🍎
Further reading: https://stallman.org/grav-mass.html4 -
I just got mindustry (which is currently on sale for $3) and it's a great tower defence, resource production, machine builder, tech tree researcher, sort of game! Really really worth the $3 and will probably appeal to a lot of people here.7
-
NPM and the whole dependency tree for JS packages should burn in the pits of hell.
Let's pretend that uninstalling a single (albeit larger) module didn't take 8 minutes and that it didn't spit out 20 warnings from a total of 277 (HOLY FUCK) related packages.
How can you guys (JS-only devs) handle this ?!15 -
What would happen if a programmer and a PM had to cut down a tree...
https://twitter.com/i/moments/...
Wouldn't be so funny if it weren't so true... -
There are two kinds of people:
-Who thinks that to make a tree you need the seed
-Who thinks that to make a tree you need Huffman1 -
So I thought I knew source tree, apparently I do not... Lost a week's worth of work, went to history, saw someone removed it with a commit, and now I'm getting blamed for my own work 'disappearing'. The reason I am being told I am to blame is how I control my branches... So how I do it is that I keep a local copy of the master branch, I keep it updated and monitor it for changes regularly (meaning fetch and pull cause double tap..) before I do a merge, I check for any new code on master again, then using the local copy of master, which I just updated, I pull the master changes into my branch, deal with any conflicts, build and done. Then I request my changes into master once I am happy everything is good.
My question is, clearly there is something wrong with the way I do things, so please source tree users, what is the most fool proof way to pull latest from master so that I don't loose code? 😔11 -
In other to sharpen my algorithm and data structure skill.
I implemented the complete *eval()* function for arithmetic Expression in java
It can compute any kind of arithmetic Expression even with parenthesis grouping
Here is the github repo
https://github.com/Afrographic/...1 -
Have you ever seen a tree data structure implementation in any code base?
I wonder why recruiters are so desperately asking how to invert binary trees in my coding interviews🥴4 -
Removing a kiwi tree is like unsubscribing every single spam you receive and hoping they don't ever come back.
-
Oh look I'm posting the same thing again because all logical patheways lead to the same fucking place.
Sort of binary tree with a few keys added visualized.7 -
Girl: "Professor I don't really understand the algorithm. Can you please write it on the board again?"
Professor writes down the alphabet.
Girl: "I don't get it."
We were talking about traversing a Binary search tree in Inorder traversal.2 -
So I was compiling Resurrection Remix, Android 10. And I'm making some commits here and there, and my friend looks over and asks me "so how does this work?" And I briefly explain about device tree, vendor and kernel. So he says "oh okay, so basically it's like copy and paste?"
I've never been so offended in my life 😐rant kernel developer roms offensive android vendors pissed off kernel development mad angry dev angry3 -
Google and TikTok sitting is a tree, K-I-S-S-I-N-G
First comes love, then comes marriage
Then comes a baby in a baby carriage
---
I see this every time I need to manually update some apps...19 -
Using a 3rd part library to manage drag/drop in wpf and then have to use router events because it doesn't natively manage commanding for mvvm pattern, then you write a commanding behaviour which works perfectly for everything else except drag drop because it's not part of the visual tree so binging is a nightmare!! 😡😡😡😡😡😡😡😡1
-
Algo question: Tree data structures while drawn as Nodes with children, are usually better implemented with (resizable) arrays?30
-
My states of learning Flutter:
Oh, this looks easy!
Hm, this example is very complicated.
Aw yeah, I'll never need Android Studio again!
How much is a iOS dev account?
Oh for fuck's sake, why is everything working except displaying a webpage in non-fullscreen dynamically and implementing it in my widget tree? It is unusable for me if this doesn't work but I want to use it! >:(2 -
This moment when your PFSense routers IDS lights up like a christmas tree when you try to play a game. Also this moment when you are a programmer and only rant about sysadmin stuff because your programming almost never is a problem.
-
Yeah today i'm sharing a little java program who can scan any editable file in your system and count all the alphabet character from it and show the result in a chart renderer in an html document
Code
https://github.com/Afrographic/...11 -
Does vim have a tree view and multiple tabs? Maybe some sort of plugin? How bout Neovim? If there is anyway to get that on vim I am sold, but until then I’m sticking with my text editor.7
-
So I see posts about an interview question/challenge of inverting a binary tree. I don't use trees very often (mainly file related or parsing server nodes), but I thought I would learn how to do this.
I saw a page that started talking about different ways to invert enough to understand that one type of inversion is swapping left and right nodes. So I stopped before they showed how.
Then I created a test program that has a tree structure and also can display a tree before and after modification. This was kind of fun.
So then I wrote the inversion function. It was less than 10 lines of code. Wtf? I thought it would be harder than this.
Then I started wondering where trees were used. So today I have been learning how they are used and why I might need one to solve a problem. One use I intuited was parsing regex or a language. Apparently it is useful there.
What I am learning is that a lot of these interview questions are really test to see if you can comprehend instructions when stressed. Or you will ask questions to clarify the task. It doesn't necessarily test your ability to solve hard problems.
One thing that perplexes me. If inverting a tree is swapping nodes left<->right, then why not leave data in place and just swap roles in the functions. Maybe I completely misunderstood what inversion means or why it would be done. I guess if this is not inverting I have the structure to try other methods now.2 -
The cost cutting at my previous company continues....my ex-colleague said the company has no budget for a Christmas tree this year so:2
-
I recently went through a very detailed and well-explained Python-based project/lesson by Karpathy which is called micrograd. This is a tiny scalar-valued autograd engine and a neural net on top of it.
The project above is, as expected, built on Python. For learning purposes, I wanted to see how such a network may be implemented in TypeScript and came up with a 🤖 micrograd-ts - https://github.com/trekhleb/... repository (and also with a demo - https://trekhleb.dev/micrograd-ts/ of how the network may be trained).
Trying to build anything on your own very often gives you a much better understanding of a topic. So, this was a good exercise, especially taking into account that the whole code is just ~200 lines of TS code with no external dependencies.
The micrograd-ts repository might be useful for those who want to get a basic understanding of how neural networks work, using a TypeScript environment for experimentation.
With that being said, let me give you some more information about the project.
## Project structure
- [micrograd/](https://github.com/trekhleb/...) — this folder is the core/purpose of the repo
- [engine.ts](https://github.com/trekhleb/...) — the scalar `Value` class that supports basic math operations like `add`, `sub`, `div`, `mul`, `pow`, `exp`, `tanh` and has a `backward()` method that calculates a derivative of the expression, which is required for back-propagation flow.
- [nn.ts](https://github.com/trekhleb/...) — the `Neuron`, `Layer`, and `MLP` (multi-layer perceptron) classes that implement a neural network on top of the differentiable scalar `Values`.
- [demo/](https://github.com/trekhleb/...) - demo React application to experiment with the micrograd code
- [src/demos/](https://github.com/trekhleb/...) - several playgrounds where you can experiment with the `Neuron`, `Layer`, and `MLP` classes.
Demo (online)
---------------------
To see the online demo/playground, check the following link:
🔗 https://trekhleb.dev/micrograd-ts3 -
Just had an interview on a CS graduate from a top university with several years industrial experience who cannot even write pseudocode to rotate a binary tree. What is wrong with this world?4
-
Best shell (bash) utilities to install? Looking to pimp up my headless server. So far I have tree (path visualizer), tmux, and nnn (disk space tool)8
-
Goodjob Self, you fucked up your Git local repo.
```
[ git checkout master || git stash ]
fatal: git-write-tree: error building trees
Cannot save the current index state
```2 -
Critical bug in production? Sorry, can't fix it right now: We've got a build running with 1 hour of build time left, 8 hours of automatic tests, 3 days of manual testing, and a partridge in a pear tree. Your fix can be in the next release.
-
If you think root is at the top of the tree not at the bottom then you're already my close friend.
#CodingForLife -
https://i.postimg.cc/4ycRFNZf/...
The factorization shit I'm always ranting about? I decided for once to explain it visually in this handy dandy little infographic.
We're essentially transforming the product from an unsmooth set of potential factors in its factor tree, to a factorization tree that guarantees first that the set of potential factors are all 2, 3, 5, and a or b of p, and second, that all the factors are *smooth integers* of a or b.
This is basically what Adi Shamir was trying to do with TWINKLE and TWIRL, despite checking a hundred thousand+ potential primes.
I did it in four.7 -
the most interesting question tech interveiwers should ask a job applicant should be "we want you to balance a red and black tree using bash"2
-
React: I'm the best! From FaceBook
Vue: I'm simpler and better! From Community
Angular: I'm the best! From Google
jQuery: LOL kids! I simplify HTML DOM tree traversal and manipulation... I'm immortal.
React, Angular and Vue: You are right jQuery! But the trash can is across the door. Ciao!1 -
I thought this was good.
http://raganwald.com/2019/02/...
It’s also strange that by opening up Chrome’s Dev Tool’s Console you can pretty much write old school C/Basic like code from when programs were transferred via a bound dead tree medium. -
It is Saturday 19:30 and I am spending my time writing functions for save/load data in a binary tree. Recursion and fscanf are not a good combo so far, but that is the task. When the code is done I have to get some math done.
-
My First ever VSCode extension is live.
https://marketplace.visualstudio.com/...
A symbols tree view provider that supports PHP/TS/JS only (for now). Any suggestions/recommendations are welcomed !!!
Boy, does it feel good to feel like a real developer again 😎8 -
i just tried source tree to easily clone my repositories and wasn't able to login it appears they are using Internet explorer for the login part. and guess what ? ... yup it doesn't fucking work.
WHY WOULD ANYONE USE INTERNET EXPLORER FUCKING PIECE OF GARBAGE. ANYONE STILL USING THAT SHIT SHOULD BE BANNED FROM THE INTERNET FOREVER ESPECIALLY A PROGRAMMER -
I can invert Arne Andersson tree in 5 minutes.
Do you think you can beat me in a battle?
Okay, this is AA tree: https://iq.opengenus.org/aa-trees/2 -
My favorite tools include:
Source tree(git life saver)
Stickies on my dock(I can randomly put any shit on it and keep it for months)
Android studio(love shorcuts except gradle)
My moto x smartphone (helps me in debugging) -
Thanks to one of my colleagues, I have learned that there is a git command that convert HEADless piece of tree into a branch. Thank you git switch. Also, thank you colleague.1
-
self refrencing tables awesome concept but it pisses me off that mysql doesnt support "select with" query i had to think about writing recusive functions that builds a tree of n level i must say im kinda proud :p2
-
Tried to change a overriding method in my C++ class to override another method using "refactor - rename" from my IDE, ended up changing the header of the parent class which is not even in my source tree.
-
Data scientist life begins when for him:
Forest becomes Random Forest and Tree becomes a Decision tree.1 -
TSA questions for screening software engineers: Sunday an engineer from Nigeria got screened on if they were really a coder with googled questions like "write a function to check if a Binary Search Tree is balanced." What questions should they really be asking?7
-
Can you take this JavaScript file and make it TypeScript with tree shaking. Step one pass week to understand TypeScript and webpackShit compilers and try to importe it in a basic chrome windows ... What a mess10
-
I was filling a questionnaire through SAP Ariba ..
The loading time, the way you can upload files. The tree structure of the questionnaire, and their date picker. Everything is perfect no struggle with it at all.
PS: I spent about 2 hours filling it and I am not done yet! -
Adding opportunistic move to a large recursive tree processor is not a fun exercise, I would advise anyone who intends to dabble in interpreters to design with opportunistic move from the get go.2
-
Can JS events bubble in trees of objects other than DOM nodes? If so, what properties do I need?
I tried to read this: https://dom.spec.whatwg.org//... but it's stupid long, references a bunch of other functions and I got lost in between the variables.
I'm kinda confused because it often uses type checks (i.e. if target is a Node or a Window object), which goes against the very point of duck typing.
I could technically make my nodes into DOM nodes, but I'd rather have them inherit from Worker.1 -
I guess I'll just trouble shoot this controller for an hour or so before I check the file-tree and find out that I'm editing a stale file of the same name in the root instead of the nested file...
-
fuck gradle
i have dependency tree like this
±--com.vincent.filepicker:MultiTypeFilePicker:1.0.5
±--com.github.bumptech.glide:glide:3.7.0 -> 4.3.1
±--com.github.bumptech.glide:glide:4.3.1 (*)
glide.3.7.0 as transitive dependency got fucking overridden by glide:4.3.1 how do i fucking keep glide:3.7.0 from getting overridden, been search for a day and no solution worked, fuck gradle how come shit like this doesnt have straight forward solution ?3 -
So today I learned how tree shaking works and I was just about to publish patches to my NPM modules when the registry gave up.10
-
Hie Dev to python and PyQt5 devs
Could you please help on a issue
I am working on a GUI app for converting UI to py
I've designed 2 more windows
And I need to hook them up
I am importing them
Link below:
https://github.com/TaqsBlaze/...
Please don't bite me for this -
Is there a simple CPP equivalent to a tree node in Java that has a parent and a arraylist of children? Or will I have to write out a 500+ line class to get the same functionality? 🤔12
-
This is kind of an issue for my family tree website. I'll have to ban you, Tylerjoke/meme racist black humor javascript null just kidding ok calm down meme undefined tyler error black
-
Create an animation of tree traversals.
I could use any framework or library, but I just used plain html/css/js.
It was fun.2 -
....that moment, late at night, when you've just closed that remote terminal to your network media server, tweaking that custom tree listing script, and then you put your phone down and roll over.
:|2 -
A compiler and assembler set for bootstrapping the whole gcc Code tree and cross compiling each level1
-
I have this love-hate relationship with strong typing.
Right now, the types are shared between:
Postgres <-> DB Data Models <-> GraphQL <-> TypeScript <-> MobX-State-Tree2 -
found this interesting snippet tool for all javascript devs out there: https://github.com/30-seconds/...
found it useful! -
It's kinda hard if you're a beginner and don't know if you're doing things with good practice...
I would really appreciate if someone could review my code and tell me if I'm on the right track: https://github.com/Dollique/...
For Info: I'm doing this all by myself for a learning purpose and I know I could easily use a finished framework :)
Thanks!1 -
Why in gods name is vscode if installed over APT, pull in perl modules?
I checked the dependency tree of it, and saw a lot of perl as a deep dependency.
Perl is one of the least efficient language, similiar to PHP.7 -
Is there a good tree view js plugin similar to jQuery.fancytree ?
I found alternatives that would work with react, Vue, etc but I'm looking for a framework free plugin. -
I've done tons of tree and graph interviews lately. Then in the final stage with a Big N company I'm asked something I was totally not in the right head space to answer. Darn.
-
Hi everyone! I'm in need of some help regarding the approach to my bachelor thesis.
The practical stuff is basically clickstream/task and usability analysis on an existing platform and creating mockup improvements for some processes. I was thinking about using a spider to generate a tree (or another datastructure) regarding all the different tasks available and then trying to optimise said tree, thus automatically optimising the processes within. I'm having however issues imagining how this optimisation might be generalised for more than this one platform.
Basically, I'm a bit lost and grasping for any pointers in any direction regarding these ideas.3 -
I know using Composition is a good way of reusing components. Works like a charm and sends data down the tree like a waterfall.
But in our codebase it's applied to bugs. Fix one, get two more, fix two get four more.
I want to cry :'(( -
PHP is like the black sheep on every family tree. Lots of work revolves around him. It's prone to failure, break up easily, does things in an inefficient manner, and gets all kind of disease. So I'm using other family memebers, C++ and Go, to keep him on track.8
-
holy crap patch-package is such an amazing tool
i forget about it all the time
lovely when there is a dependency tree and one of the dependencies was last updated 7 years ago
🤡1 -
Consider an API that uses the HTTP path to represent position in a tree that literally represents a file tree with minimal constraints, and GET/PUT/DELETE methods to read, write and destroy the nodes. How would you encode read/write operations to per-node metadata? The kinds of metadata are static and around 4, so inventing HTTP verbs for each of them is infeasible but filtering is not necessary.
Options considered so far:
- toplevel resources alongside a namespaced /data such as /acl, /lock
- magic keywords to the Range header (this is apparently compliant)
- mimetypes such as text/plain+acl
- SETPROP / PROP methods in the spirit of WebDAV
- headers (I worry this may become an immitigable bottleneck really fast)
I'm looking for any kind of suggestion or insight, not perfect answers.
I read the WebDAV specification and I won't even suggest that I'm trying to align with it, the only protocol I'd seen in the past with comparable scope bloat is WebRTC.22 -
I've spent a whole day writing date helpers that already exist in moment.js and cover many more cases than mine.
Webpack tree shaking is a thing, you know? Library size doesn't matter anymore <__< -
The countdown for Hacktoberfest has started, the only difference is that this time you can opt-out of taking the Hacktober fest tshirt and help plant a tree instead.2
-
Once upon a time there was a dishonest fox and a vain crow. One day the crow was sitting in his tree, holding a piece of cheese in his mouth. He noticed that he was holding the piece of cheese. He became hungry and swallowed the cheese. The fox walked over to the crow. The end.3
-
So my latest assignment's having me write a recursive method that can traverse a binary tree and return the data in a List. The catch? I can't pass anything in and I can't make any new instance variables.
How and why -
I found Server-Side Rendering in Next.js & astro a difficult sell (and I'm not a JS framework enthusiast), but this Solid JS SSR guide makes me want to consider it, maybe: https://solidjs.com/guides/server/. I really like the philosophy of one of their subpackages: https://github.com/solidjs/solid/...
This could inspire future enhancements to the foundations of my SSG, metalsmith. -
How do case insensitive searches work?
Usually if I needed case insensitivity, I'd probably just store all the keys in lowercase and for searches convert whatever is typed to lowercase.
But what about Google. Can't convert everything to lower.
And if need to check the lower and upper case of each letter, like in a Tree, you would need to go down 2^N paths?20 -
I want to continue learning coding is team tree house a good place to learn coding? I also want a job in coding as soon as possible so what's the quickest path to getting hired. What languages should I learn and in what order?
Thanks for your replies guys!1 -
Do all devs know how to write these Goolgle/Amazonesq algorithms off the top of their heads? ex: build singly linked list from scratch / pre or post binary tree traversals etc..5
-
That guy that made those videos of better programming experiences. With the live update of the pink flower tree, the game with different physics states simulated
-
I hate to say it, but planting trees won’t help us remove carbon from the atmosphere. Every single last bit of carbon dioxide that the tree consumed will be put back into the atmosphere when the tree dies and decomposes. Artificial tree plantations are not forests. They have no animals, no birds, nothing. Trees don’t live long there.
Team Trees might be a good awareness project, but it has a layer of toxic positivity to it. It most definitely serves as an emotional band-aid at best, and deters people from working on real solutions at worst. Large things like climate are never that easy.5 -
Fuck this shit... how hard can it be to build a fucking Thread safe tree with links to parent??? This is madness. Deadlock hell... aaaaaaaargh
I am close to switching languages for this project3 -
Any way to increase tab font size in xcode 12? Or Apple only gave an option to increase navigator font size (well three options instead of customizable font size .... but at least I can now better read dir tree of my project lol)
-
I know it a strange thing to ask but I need help with English grammar ( I am not a English native)
I am doing an assignment on context free grammar program.
What the program need to do it "Produce a grammar tree based on the rule"
For example a sentence "Jame sat.", It will need to produce a grammar tree like this.
S
_____|___
NP VP
| |
N V
| |
holmes sat
The only thing I need to do it give a grammar rule to the program like this
S -> NP VP
NP -> N | Det N
VP -> V | NP
What the above rule said is that the sentence is composed of Noun Phrase and Verb Phrase and Noun Phrase is either is a Noun or a determiner and Noun.
Now here is the meat of the question.
I am having trouble parsing a grammar tree for this sentence "She never said a word until we were at the door here"
I have provided my grammar rule below. I think I forget to add some grammar rule or some of my grammar rule are incorrect. I am not a native English speaker so I am having trouble on it.
The search engine have fail me (I have look up various grammar tree) so I am asking for help on devrant. Grammar nazi are warmly welcome :)
S -> NP VP | S Conj VP | S Conj S
NP -> N | Det NP | N PP | Adj N | Det Adj N | Det N
PP | Det NOM | Det N PP
VP -> V | V NP | V NP PP | V PP | V NP PP Adv
VP -> Adv V NP | VP PP | VP AVP | V PP PP | V
ADJP
PP -> P NP
AVP -> Adv | Adv Adj | Adv AVP
NOM -> Adj Adj N | Adj N | Adj NP
ADJP -> Adj | Adj PP
**I am not sure about these two clause below**
VP -> V | Adv
NP -> Adj Adj N22 -
function woodo {
if [[ $EUID > 0 ]]; then
echo "It's a wierd tree"
else
echo "The wierd tree doesn't like the squirtbottle."
echo "The wierd tree attacked!"
fi
} -
Is there any JS framework by which i can make tree structure in frontend and where each node is input box, also addition of node(input box) should happen dynamically(with click)5